Re-browse account updated to get inactive context
issue9473 review307941002
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user