changeset c6b5ef51242b in modules/account:default
details: https://hg.tryton.org/modules/account?cmd=changeset;node=c6b5ef51242b
description:
Re-browse account updated to get inactive context
issue9473
review307941002
diffstat:
account.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 14efcce5d82c -r c6b5ef51242b account.py
--- a/account.py Mon Jul 20 16:53:44 2020 +0200
+++ b/account.py Fri Jul 24 09:55:35 2020 +0200
@@ -2407,6 +2407,7 @@
@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 @@
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