From 46c85b4a821a7b9d62ec9ab81bd9e1450fcd5fce Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 2 Jun 2017 11:21:44 +0200 Subject: [PATCH] [FIX] product_extended: time cycle Use the field `time_cycle` for cost computation, which takes into account the routing configuration (fixed time of computed based on previous operations). --- addons/product_extended/models/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product_extended/models/product.py b/addons/product_extended/models/product.py index e2cf9ff3684..f0f886b66d4 100644 --- a/addons/product_extended/models/product.py +++ b/addons/product_extended/models/product.py @@ -43,7 +43,7 @@ class ProductProduct(models.Model): if bom.routing_id: total_cost = 0.0 for order in bom.routing_id.operation_ids: - total_cost += (order.time_cycle_manual/60) * order.workcenter_id.costs_hour + total_cost += (order.time_cycle/60) * order.workcenter_id.costs_hour price += bom.product_uom_id._compute_price(total_cost, bom.product_id.uom_id) # Convert on product UoM quantities if price > 0: