From 36b4236e1c9ce2968fb74afb27b3784461d12783 Mon Sep 17 00:00:00 2001 From: "Dhruti Shastri (OpenERP)" Date: Thu, 7 Nov 2013 17:05:47 +0530 Subject: [PATCH] [stock] : Wrong Invoice generated due to product_uos_qty not updated (case ref:600277) bzr revid: dhs@tinyerp.com-20131107113547-d6o11hiu7d8y8g4g --- addons/stock/stock.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index f3efd8a353e..65c40250320 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -2204,6 +2204,7 @@ class stock_move(osv.osv): while res: r = res.pop(0) + product_uos_qty = self.pool.get('stock.move').onchange_quantity(cr, uid, ids, move.product_id.id, r[0], move.product_id.uom_id.id, move.product_id.uos_id.id)['value']['product_uos_qty'] move_id = self.copy(cr, uid, move.id, {'product_uos_qty': product_uos_qty, 'product_qty': r[0], 'location_id': r[1]}) done.append(move_id) if done: