Xavier ALT (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-381937-xal into
lp:openobject-addons/6.1.
Requested reviews:
OpenERP R&D Team (openerp-dev)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-381937-xal/+merge/95560
Hi,
This is a forward-port of v6.0 [OPW 381937].
The stock valuation of product having a price of 0 should 0, not 1
Thanks,
Xavier
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-381937-xal/+merge/95560
Your team OpenERP R&D Team is requested to review the proposed merge of
lp:~openerp-dev/openobject-addons/6.1-opw-381937-xal into
lp:openobject-addons/6.1.
=== modified file 'stock/stock.py'
--- stock/stock.py 2012-02-15 18:00:28 +0000
+++ stock/stock.py 2012-03-02 13:51:35 +0000
@@ -2165,7 +2165,7 @@
context = {}
currency_ctx = dict(context, currency_id = move.company_id.currency_id.id)
amount_unit = move.product_id.price_get('standard_price', context=currency_ctx)[move.product_id.id]
- reference_amount = amount_unit * qty or 1.0
+ reference_amount = amount_unit * qty
return reference_amount, reference_currency_id
_______________________________________________
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