Public release from ruodoo-project: 19.0 - 2026-05-10 21:19:01 UTC
This commit is contained in:
2
l10n_ru_act_rev/models/__init__.py
Normal file
2
l10n_ru_act_rev/models/__init__.py
Normal file
@ -0,0 +1,2 @@
|
||||
from . import account_account
|
||||
from . import ir_actions_report
|
||||
7
l10n_ru_act_rev/models/account_account.py
Normal file
7
l10n_ru_act_rev/models/account_account.py
Normal file
@ -0,0 +1,7 @@
|
||||
from odoo import fields, models, _
|
||||
|
||||
|
||||
class AccountAccount(models.Model):
|
||||
_inherit = "account.account"
|
||||
|
||||
centralized = fields.Boolean(_("Централизованно"))
|
||||
10
l10n_ru_act_rev/models/ir_actions_report.py
Normal file
10
l10n_ru_act_rev/models/ir_actions_report.py
Normal file
@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user