Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Manufacturing
Entity: mrp.workorder
Compute Method: _compute_is_produced
| Inputs | Method | Outputs |
|---|---|---|
|
self.is_produced = False - for order in self.filtered(lambda p: p.production_id and p.production_id.product_uom_id): - order.is_produced = order.production_id.product_uom_id.compare(order.qty_produced, order.qty_production) >= 0 + for order in self.filtered(lambda p: p.production_id and p.production_id.uom_id): + order.is_produced = order.production_id.uom_id.compare(order.qty_produced, order.qty_production) >= 0 |
|
