← Back to team overview

openerp-india team mailing list archive

[Bug 996512] [NEW] [6.1] sale order line th_weight is not correct

 

Public bug reported:

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:
             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

** Affects: openobject-addons
     Importance: Undecided
         Status: Invalid

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/996512

Title:
  [6.1] sale order line th_weight is not correct

Status in OpenERP Addons (modules):
  Invalid

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:
               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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/996512/+subscriptions


Follow ups

References