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

Module: Lunch

Entity: lunch.order

Compute Method: _compute_display_reorder_button

Inputs Method Outputs
show_button = self.env.context.get('show_reorder_button')
for order in self:
            order.display_reorder_button = show_button and order.state == 'confirmed' and order.supplier_id.available_today

Back to entity