Re-browse account updated to get inactive context

issue9473
review307941002
This commit is contained in:
Cédric Krier
2020-07-24 09:55:35 +02:00
parent ad2d979cd2
commit bdcc82beea
+3 -1
View File
@@ -2407,6 +2407,7 @@ class UpdateChart(Wizard):
@inactive_records
def transition_update(self):
pool = Pool()
Account = pool.get('account.account')
TaxCode = pool.get('account.tax.code')
TaxCodeTemplate = pool.get('account.tax.code.template')
TaxCodeLine = pool.get('account.tax.code.line')
@@ -2419,7 +2420,8 @@ class UpdateChart(Wizard):
TaxRuleLineTemplate = \
pool.get('account.tax.rule.line.template')
account = self.start.account
# re-browse to have inactive context
account = Account(self.start.account.id)
company = account.company
# Update account types