From bdcc82beea5bc07b77a03dca220b4cfca4700938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 24 Jul 2020 09:55:35 +0200 Subject: [PATCH] Re-browse account updated to get inactive context issue9473 review307941002 --- account.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/account.py b/account.py index 567e02c21e..1ead077c7d 100644 --- a/account.py +++ b/account.py @@ -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