L10n_ru/act_revise/models/ir_actions_report.py
2024-10-30 11:04:20 +03:00

11 lines
328 B
Python

from odoo import api, models
class IrActionsReport(models.Model):
_inherit = "ir.actions.report"
@api.model
def _prepare_account_financial_report_context(self, data):
lang = data and data.get("account_financial_report_lang") or ""
return dict(self.env.context or {}, lang=lang) if lang else False