Mayur Maheshwari(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-842758-mma into 
lp:openobject-addons.

Requested reviews:
  Rucha (Open ERP) (rpa-openerp)
Related bugs:
  Bug #842758 in OpenERP Addons: "UoM rounding precision doesn't work"
  https://bugs.launchpad.net/openobject-addons/+bug/842758

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-842758-mma/+merge/74549

Hello,

    product: Now UoM rounding precision is working

Thanks
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-842758-mma/+merge/74549
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-842758-mma.
=== modified file 'product/product.py'
--- product/product.py	2011-08-28 01:17:39 +0000
+++ product/product.py	2011-09-08 06:36:24 +0000
@@ -75,7 +75,7 @@
     _description = 'Product Unit of Measure'
 
     def _compute_factor_inv(self, factor):
-        return factor and round(1.0 / factor, 6) or 0.0
+        return factor and (1.0 / factor) or 0.0
 
     def _factor_inv(self, cursor, user, ids, name, arg, context=None):
         res = {}

_______________________________________________
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

Reply via email to