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

Module: Inventory

Entity: stock.picking

Compute Method: _compute_validate_button_style

Inputs Method Outputs
for picking in self:
            if picking.state in ('done', 'cancel'):
                picking.validate_button_style = 'invisible'
            elif picking.state in ('waiting', 'assigned'):
                picking.validate_button_style = 'primary'
            else:
                picking.validate_button_style = 'secondary'

Back to entity