← Back to team overview

openerp-india team mailing list archive

[Bug 1025649] [NEW] [6.1] rounding issue with account taxes

 

Public bug reported:

Related to the fix introduced following that bug
https://bugs.launchpad.net/openobject-addons/+bug/882036

the new rounding method created in the server should be used in the
addons.

For instance, the rounding of the tax is performed in the account module
with the python round method. The float_round method should be used in
order to properly compute the taxes.

=== modified file 'account/account.py'
--- account/account.py 2012-03-22 12:24:19 +0000
+++ account/account.py 2012-07-17 11:17:12 +0000
@@ -29,6 +29,7 @@
 from osv import fields, osv
 import decimal_precision as dp
 from tools.translate import _
+from tools import float_round as round

 def check_cycle(self, cr, uid, ids, context=None):
     """ climbs the ``self._table.parent_id`` chains for 100 levels or

=== modified file 'account/account_bank_statement.py'
--- account/account_bank_statement.py 2012-03-22 11:39:59 +0000
+++ account/account_bank_statement.py 2012-07-17 11:23:22 +0000
@@ -24,6 +24,7 @@
 from osv import fields, osv
 from tools.translate import _
 import decimal_precision as dp
+from tools import float_round as round

 class account_bank_statement(osv.osv):

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

-- 
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/1025649

Title:
  [6.1] rounding issue with account taxes

Status in OpenERP Addons (modules):
  New

Bug description:
  Related to the fix introduced following that bug
  https://bugs.launchpad.net/openobject-addons/+bug/882036

  the new rounding method created in the server should be used in the
  addons.

  For instance, the rounding of the tax is performed in the account
  module with the python round method. The float_round method should be
  used in order to properly compute the taxes.

  === modified file 'account/account.py'
  --- account/account.py 2012-03-22 12:24:19 +0000
  +++ account/account.py 2012-07-17 11:17:12 +0000
  @@ -29,6 +29,7 @@
   from osv import fields, osv
   import decimal_precision as dp
   from tools.translate import _
  +from tools import float_round as round

   def check_cycle(self, cr, uid, ids, context=None):
       """ climbs the ``self._table.parent_id`` chains for 100 levels or

  === modified file 'account/account_bank_statement.py'
  --- account/account_bank_statement.py 2012-03-22 11:39:59 +0000
  +++ account/account_bank_statement.py 2012-07-17 11:23:22 +0000
  @@ -24,6 +24,7 @@
   from osv import fields, osv
   from tools.translate import _
   import decimal_precision as dp
  +from tools import float_round as round

   class account_bank_statement(osv.osv):

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


Follow ups

References