2
0

[FIX] account_chart_update: Clear caches before searching

If not, changes done in for example taxes are not reflected.
This commit is contained in:
Pedro M. Baeza 2020-01-30 22:26:56 +01:00 committed by Luis J. Salvatierra
parent f20f692994
commit 7f4622bb9b
2 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,7 @@
{
"name": "Detect changes and update the Account Chart from a template",
"summary": "Wizard to update a company's account chart from a template",
"version": "13.0.1.0.0",
"version": "13.0.1.0.1",
"author": "Tecnativa, BCIM, Okia, Odoo Community Association (OCA)",
"website": "http://github.com/OCA/account-financial-tools",
"depends": ["account"],

View File

@ -306,6 +306,7 @@ class WizardUpdateChartsAccounts(models.TransientModel):
def action_find_records(self):
"""Searchs for records to update/create and shows them."""
self.clear_caches()
self = self.with_context(lang=self.lang)
# Search for, and load, the records to create/update.
if self.update_tax: