You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
@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.
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.
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.
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.
The text was updated successfully, but these errors were encountered: