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

Module: Repairs

Entity: repair.order

Compute Method: _compute_validate_button_style

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

Back to entity