The calculation of taxes in invoices doesnt honor the server switch "--price_accuracy"
Bug #407332 reported by
Numérigraphe
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
sme (OpenERP) | ||
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Using the current stable 5.0 branches from LP
If the server instance is started with "--price_
This makes it impossible to validate some invoices, because the resulting accounting moves are not balanced.
The patch proposed by Raphaël Valyi in Bug #328077 is a way to work around this problem, but probably not a solution - the same problem will arise with "--price_
Yours,
Lionel.
description: | updated |
summary: |
- The object account_invoice_tax doesnt honor the server switch "-- + The calculation of taxes in invoices doesnt honor the server switch "-- price_accuracy" |
Changed in openobject-addons: | |
assignee: | nobody → Anup (Open ERP) (ach-openerp) |
Changed in openobject-addons: | |
assignee: | Anup (Open ERP) (ach-openerp) → sme(Tiny/Axelor) (sme.tiny.axelor) |
Changed in openobject-addons: | |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Incomplete → In Progress |
Changed in openobject-addons: | |
importance: | Undecided → Medium |
To post a comment you must log in.
I addition to this bug, the same problem seems to show up in the class account_ payment_ term terms too, with the same ill effect of making the invoice unbalanced.
I worked it around it by changing rount(..., 2) to rount(..., 5) but this is not a clean soultion.
Lionel.
def compute(self, cr, uid, id, value, date_ref=False, context={}): value_amount, 2)
#...
if line.value == 'fixed':
amt = round(line.
elif line.value == 'procent':
amt = round(value * line.value_amount, 2)
elif line.value == 'balance':
amt = round(amount, 2)
#...t