Merge lp:~openerp-dev/openobject-addons/trunk-bug-996512-amb into lp:openobject-addons

Proposed by Amit Bhavsar (Open ERP)
Status: Work in progress
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-996512-amb
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
sale/sale.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-996512-amb
Reviewer Review Type Date Requested Status
Amit Parik (community) Approve
OpenERP Core Team Pending
Review via email: mp+106111@code.launchpad.net

Description of the change

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

To post a comment you must log in.
Revision history for this message
Amit Parik (amit-parik) :
review: Approve
6798. By Amit Bhavsar (Open ERP)

Merge with latest addons.

Unmerged revisions

6798. By Amit Bhavsar (Open ERP)

Merge with latest addons.

6797. By Nicolas Bessi

[FIX] sale : Fixes the sale order line th_weight

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'sale/sale.py'
--- sale/sale.py 2012-08-23 12:19:52 +0000
+++ sale/sale.py 2012-08-24 10:54:40 +0000
@@ -1280,7 +1280,7 @@
1280 try:1280 try:
1281 value.update({1281 value.update({
1282 'product_uom_qty': product_uos_qty / product.uos_coeff,1282 'product_uom_qty': product_uos_qty / product.uos_coeff,
1283 'th_weight': product_uos_qty / product.uos_coeff * product.weight1283 'th_weight': (product_uos_qty / product.uos_coeff) * product.weight
1284 })1284 })
1285 except ZeroDivisionError:1285 except ZeroDivisionError:
1286 pass1286 pass

Subscribers

People subscribed via source and target branches

to all changes: