Amit Dodiya (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-573224-ado into
lp:openobject-addons/6.0.
Requested reviews:
Naresh(OpenERP) (nch-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-573224-ado/+merge/99885
Hello,
"[FIX] Bad unit conversion while using Average Price"
Steps:
1). For product Wood 2mm change the default uom = meter, set costing method =
average with real-time inventory evaluation.
2). Create purchase order and buy the above product in kilometre uom
3). Create a picking and validate it.
The journal entry is created with 5000000 amount instead of 5,000 amount.
Regards,
Amit
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-573224-ado/+merge/99885
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-573224-ado.
=== modified file 'stock/stock.py'
--- stock/stock.py 2012-03-27 08:23:08 +0000
+++ stock/stock.py 2012-03-29 07:35:22 +0000
@@ -2065,7 +2065,7 @@
# if product is set to average price and a specific value was entered in the picking wizard,
# we use it
if move.product_id.cost_method == 'average' and move.price_unit:
- reference_amount = qty * move.price_unit
+ reference_amount = move.product_qty * move.price_unit
reference_currency_id = move.price_currency_id.id or reference_currency_id
# Otherwise we default to the company's valuation price type, considering that the values of the
_______________________________________________
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