trunk-wms (future WMS in v8) does it this way:
                uom_reference = inventory_line.product_id.uom_id
                real_qty = uom_obj._compute_qty_obj(cr, uid, 
inventory_line.product_uom_id, inventory_line.product_qty, uom_reference)
                th_line['product_qty'] -= real_qty

-- 
https://code.launchpad.net/~credativ/ocb-addons/7.0-rounding-fix-posting-inventory/+merge/212196
Your team credativ is subscribed to branch 
lp:~credativ/ocb-addons/7.0-rounding-fix-posting-inventory.

-- 
Mailing list: https://launchpad.net/~credativ
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~credativ
More help   : https://help.launchpad.net/ListHelp

Reply via email to