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
| Inputs | Method | Outputs |
|---|---|---|
|
+ 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) + ) |
|
