From df343137cc7ea5e44c9856fdb9fbf8cd9a177822 Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Mon, 28 Aug 2017 14:15:29 -0700 Subject: [PATCH] [FIX] mrp: set product_uom_qty instead of product_qty product_qty has been changed to be a computed field. --- addons/mrp/models/mrp_workorder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mrp/models/mrp_workorder.py b/addons/mrp/models/mrp_workorder.py index 99a7872a5e4..723f4c8f75a 100644 --- a/addons/mrp/models/mrp_workorder.py +++ b/addons/mrp/models/mrp_workorder.py @@ -325,7 +325,7 @@ class MrpWorkorder(models.Model): if production_move.has_tracking != 'none': move_line = production_move.move_line_ids.filtered(lambda x: x.lot_id.id == self.final_lot_id.id) if move_line: - move_line.product_qty += self.qty_producing + move_line.product_uom_qty += self.qty_producing else: move_line.create({'move_id': production_move.id, 'product_id': production_move.product_id.id,