[trunk / 6.1] sale order line th_weight is not correct
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Low
|
OpenERP R&D Addons Team 3 |
Bug Description
There is a little error in sale order line th_weight it is not computed correctly with qty > 1
It seems that a parenthesis is missing. But is also dot not take in account SoLine UOS but and use product coef.
The FixME should be Fixed
=== modified file 'sale/sale.py'
--- sale/sale.py 2012-02-16 16:52:53 +0000
+++ sale/sale.py 2012-05-08 11:53:37 +0000
@@ -1127,7 +1127,7 @@
try:
- 'th_weight': product_uos_qty / product.uos_coeff * product.weight
+ 'th_weight': (product_uos_qty / product.uos_coeff) * product.weight
})
except ZeroDivisionError:
pass
Related branches
- Amit Parik (community): Approve
- OpenERP Core Team: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedsale/sale.py (+1/-1)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
Seems bug is obsolete in last revision.
Regards
Nicolas