Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REQUEST: Checker for Odoo warning "The model {model_name} has no _description" #482

Open
espo-tony opened this issue Jan 9, 2024 · 4 comments

Comments

@espo-tony
Copy link

Hi,

Odoo throws a WARNING if a model is defined with no _description attribute.
It would be nice to have a checker for this as well.

@antonag32
Copy link
Contributor

For reference, _description is only required if the class defines a _name attribute which means a new model is being declared. Am I missing some other cases @luisg123v ?

@espo-tony
Copy link
Author

@antonag32
Correct: _description is only required when a new model is being declared.
This is when the class defines a _name attribute and that _name is not in the _inherit attribute.

Copy link

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 18, 2024
@luisg123v
Copy link
Contributor

Hi,

Not sure if this would be possible. What about if it's an inherited model and the model name is not in the _description attribute? That's a valid model declaration AFAIK and it would be detected as a new model.

On the other hand, since it's already covered by Odoo, I wouldn't consider it as important.

Regards,

@github-actions github-actions bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants