Atik Agewan(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-797772-aag into
lp:openobject-addons.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
Related bugs:
Bug #797772 in OpenERP Addons: "fill inventory wizard computes wrong
quantities"
https://bugs.launchpad.net/openobject-addons/+bug/797772
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-797772-aag/+merge/64959
Hello
stock:Fill inventory wizard computes True quantities of Related stock.
Thanks
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-797772-aag/+merge/64959
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-797772-aag.
=== modified file 'stock/wizard/stock_fill_inventory.py'
--- stock/wizard/stock_fill_inventory.py 2011-05-02 18:46:43 +0000
+++ stock/wizard/stock_fill_inventory.py 2011-06-17 10:12:44 +0000
@@ -96,11 +96,8 @@
for move in move_obj.browse(cr, uid, move_ids, context=context):
lot_id = move.prodlot_id.id
prod_id = move.product_id.id
- qty = move.product_qty
-
- if datas.get((prod_id, lot_id)):
- qty += datas[(prod_id, lot_id)]['product_qty']
-
+ uom = move.product_uom.id
+ qty = location_obj._product_get(cr, uid, location, [move.product_id.id], {'uom': uom})[move.product_id.id]
datas[(prod_id, lot_id)] = {'product_id': prod_id, 'location_id': location, 'product_qty': qty, 'product_uom': move.product_id.uom_id.id, 'prod_lot_id': lot_id}
if datas:
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp