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

Module: Purchase

Entity: purchase.order

Compute Method: _compute_date_calendar_start

View 17.0 View 20.0
Inputs Method Outputs
  • state
  • date_approve
  • date_order
for order in self:
-             order.date_calendar_start = order.date_approve if (order.state in ['purchase', 'done']) else order.date_order
+             order.date_calendar_start = order.date_approve if (order.state == 'purchase') else order.date_order
  • date_calendar_start

Back to entity