2
0

[13.0][FIX]account_chart_update inactive taxes false positives

This commit is contained in:
Luc De Meyer 2020-09-07 09:52:31 +02:00 committed by Luis J. Salvatierra
parent 796b056c9b
commit 5662dfe483

View File

@ -722,10 +722,10 @@ class WizardUpdateChartsAccounts(models.TransientModel):
result.append(
_("Differences in these fields: %s.") % ", ".join(different_fields)
)
# Special for taxes
if template._name == "account.tax.template":
if not real.active:
result.append(_("Tax is disabled."))
# Special for taxes
if template._name == "account.tax.template":
if not real.active:
result.append(_("Tax is disabled."))
return "\n".join(result)
@tools.ormcache("self", "template", "real_obj")