[FIX] account: precision_get returns a number of digits
In other words, it returnes a precision digits, not a precision rounding
This commit is contained in:
parent
bc69e1812a
commit
03df412faf
|
@ -828,7 +828,7 @@ class account_invoice(osv.osv):
|
|||
raise osv.except_osv(_('Warning!'), _('Global taxes defined, but they are not in invoice lines !'))
|
||||
base = compute_taxes[key]['base']
|
||||
precision = self.pool.get('decimal.precision').precision_get(cr, uid, 'Account')
|
||||
if float_compare(abs(base - tax.base), company_currency.rounding, precision_rounding=precision) == 1:
|
||||
if float_compare(abs(base - tax.base), company_currency.rounding, precision_digits=precision) == 1:
|
||||
raise osv.except_osv(_('Warning!'), _('Tax base different!\nClick on compute to update the tax base.'))
|
||||
for key in compute_taxes:
|
||||
if not key in tax_key:
|
||||
|
|
Loading…
Reference in New Issue