Atik Agewan(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-845333-aag into 
lp:openobject-addons.

Requested reviews:
  Rucha (Open ERP) (rpa-openerp)
Related bugs:
  Bug #845333 in OpenERP Addons: "Physical Inventories: Import Inventory fails 
to use the correct UoM in some cases"
  https://bugs.launchpad.net/openobject-addons/+bug/845333

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-845333-aag/+merge/75127


Hello,
  
  Stock:When import Physical Inventories it calculate currect Qty in Default 
UOM.

Thanks,
 AtiK
   
 
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-845333-aag/+merge/75127
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-845333-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-09-13 07:22:24 +0000
@@ -96,7 +96,7 @@
             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
+                qty = move.product_qty * (move.product_id.uom_id.factor / move.product_uom.factor)
 
                 if datas.get((prod_id, lot_id)):
                     qty += datas[(prod_id, lot_id)]['product_qty']

_______________________________________________
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

Reply via email to