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_show_receive_button

View 20.0
Inputs Method Outputs
  • state
  • order_line
+ for order in self:
+             order.show_receive_button = (
+                 order.state == 'purchase'
+                 and any(line.qty_received < line.product_qty for line in order.order_line)
+                 and all(line.qty_received_method == "manual" for line in order.order_line)
+             )
  • show_receive_button

Back to entity