Ravish(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-977300-rmu into 
lp:openobject-addons.

Requested reviews:
  Amit Parik (OpenERP) (amp-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-977300-rmu/+merge/104208

Hello ,

I have improved rounding in invoice subtotal field due to different python 
version support.

Thanks!! 
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-977300-rmu/+merge/104208
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-977300-rmu.
=== modified file 'account/account.py'
--- account/account.py	2012-04-03 08:29:06 +0000
+++ account/account.py	2012-05-01 06:22:19 +0000
@@ -29,6 +29,7 @@
 from osv import fields, osv
 import decimal_precision as dp
 from tools.translate import _
+from tools import float_round
 
 def check_cycle(self, cr, uid, ids, context=None):
     """ climbs the ``self._table.parent_id`` chains for 100 levels or
@@ -2069,7 +2070,7 @@
             }
         """
         precision = self.pool.get('decimal.precision').precision_get(cr, uid, 'Account')
-        totalin = totalex = round(price_unit * quantity, precision)
+        totalin = totalex = float_round(price_unit * quantity, precision)
         tin = []
         tex = []
         for tax in taxes:

_______________________________________________
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