Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Manufacturing

Entity: mrp.production

Compute Method: _compute_validate_button_style

View 20.0
Inputs Method Outputs
  • state
+ for production in self:
+             if production.state in ('draft', 'done', 'cancel'):
+                 production.validate_button_style = 'invisible'
+             elif production.state in ('progress', 'to_close'):
+                 production.validate_button_style = 'primary'
+             else:
+                 production.validate_button_style = 'secondary'
  • validate_button_style

Back to entity