Update context when is ImmutableDict

#156773
This commit is contained in:
Raimon Esteve 2023-04-25 16:04:19 +02:00
parent c59a2c94df
commit d3020f360e
2 changed files with 2 additions and 2 deletions

View File

@ -460,7 +460,7 @@ class GeneralLedgerReport(HTMLReport):
with Transaction().set_context(active_test=False):
records, parameters = cls.prepare(data)
context = Transaction().context
context = Transaction().context.copy()
context['report_lang'] = Transaction().language
context['report_translations'] = os.path.join(
os.path.dirname(__file__), 'translations')

View File

@ -359,7 +359,7 @@ class TaxesByInvoiceReport(HTMLReport):
with Transaction().set_context(active_test=False):
records, parameters = cls.prepare(data)
context = Transaction().context
context = Transaction().context.copy()
context['report_lang'] = Transaction().language
context['report_translations'] = os.path.join(
os.path.dirname(__file__), 'translations')