It's also on my wishlist. A separate function for average price computation is necessary.
The current computation should also be improved: prices should not be rounded by the currency_obj.compute function. All the decimal precision available is needed in such computation (especially when your currency has no decimal...)
It's also on my wishlist. A separate function for average price computation is necessary.
The current computation should also be improved: prices should not be rounded by the currency_ obj.compute function. All the decimal precision available is needed in such computation (especially when your currency has no decimal...)
=== modified file 'stock/stock.py'
--- stock/stock.py 2011-11-29 14:23:09 +0000
+++ stock/stock.py 2011-12-06 04:23:09 +0000
@@ -1216,7 +1216,7 @@
- move_currency_id, product_price)
+ move_currency_id, product_price, False)
@@ -2457,7 +2457,7 @@
if qty > 0:
- move_currency_id, product_price)
+ move_currency_id, product_price, False)