Amit Bhavsar (Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-996512-amb into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #996512 in OpenERP Addons: "[6.1] sale order line th_weight is not
correct"
https://bugs.launchpad.net/openobject-addons/+bug/996512
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-996512-amb/+merge/106111
Hello,
Fixes the parenthesis problem at "th_weight: product_uos_qty /
product.uos_coeff * product.weight".
now,it's working fine when computed with qty > 1.
Thanks
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-996512-amb/+merge/106111
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-996512-amb.
=== modified file 'sale/sale.py'
--- sale/sale.py 2012-05-16 16:01:15 +0000
+++ sale/sale.py 2012-05-17 05:09:20 +0000
@@ -1177,7 +1177,7 @@
try:
value.update({
'product_uom_qty': product_uos_qty / product.uos_coeff,
- 'th_weight': product_uos_qty / product.uos_coeff * product.weight
+ 'th_weight': (product_uos_qty / product.uos_coeff) * product.weight
})
except ZeroDivisionError:
pass
_______________________________________________
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