[Trunk] rounding issue with account taxes
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Medium
|
OpenERP R&D Addons Team 3 | |||
Therp Backports (Deprecated) | Status tracked in Addons-6.1 | |||||
Addons-6.1 |
Fix Released
|
Undecided
|
Ronald Portier (Therp) |
Bug Description
Related to the fix introduced following that bug
https:/
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/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.
=== modified file 'account/
--- account/
+++ account/
@@ -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_
Related branches
- qdp (OpenERP): Needs Fixing
-
Diff: 740 lines (+83/-59)23 files modifiedaccount/account.py (+10/-9)
account/account_analytic_line.py (+2/-1)
account/account_invoice.py (+2/-1)
account_analytic_analysis/account_analytic_analysis.py (+16/-15)
analytic_user_function/analytic_user_function.py (+3/-2)
base_calendar/base_calendar.py (+3/-2)
hr_attendance/report/attendance_by_month.py (+2/-1)
hr_attendance/report/timesheet.py (+2/-1)
hr_timesheet_invoice/hr_timesheet_invoice.py (+2/-1)
hr_timesheet_invoice/report/account_analytic_profit.py (+2/-1)
l10n_be_coda/l10n_be_coda.py (+2/-1)
l10n_ch/wizard/bvr_import.py (+5/-4)
point_of_sale/point_of_sale.py (+3/-2)
project/project.py (+3/-2)
project_long_term/project_long_term.py (+2/-1)
resource/faces/task.py (+3/-1)
resource/resource.py (+2/-1)
sale/sale.py (+2/-1)
sale_margin/sale_margin.py (+3/-2)
survey/report/survey_analysis_report.py (+6/-5)
survey/report/survey_browse_response.py (+3/-2)
survey/report/survey_form.py (+3/-2)
survey/survey.py (+2/-1)
- Stefan Rijnhart (Opener) (community): Approve
-
Diff: 20 lines (+2/-1)1 file modifiedaccount/account.py (+2/-1)
Changed in openobject-addons: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
summary: |
- [6.1] rounding issue with account taxes + [Trunk] rounding issue with account taxes |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | In Progress → Fix Committed |
description: | updated |