diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index 9baa3f76342..25e6cbae0ec 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -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: