base_usabilty: translate=False on print_report_name
This commit is contained in:
@@ -4,4 +4,5 @@ from . import res_partner_bank
|
|||||||
from . import res_partner_category
|
from . import res_partner_category
|
||||||
from . import res_company
|
from . import res_company
|
||||||
from . import ir_mail_server
|
from . import ir_mail_server
|
||||||
|
from . import ir_actions_report
|
||||||
from . import ir_model
|
from . import ir_model
|
||||||
|
|||||||
15
base_usability/models/ir_actions_report.py
Normal file
15
base_usability/models/ir_actions_report.py
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Copyright 2021 Akretion France (http://www.akretion.com/)
|
||||||
|
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
from odoo import fields, models
|
||||||
|
|
||||||
|
|
||||||
|
class IrActionsReport(models.Model):
|
||||||
|
_inherit = "ir.actions.report"
|
||||||
|
|
||||||
|
# since v13, print_report_name is a translatable field
|
||||||
|
# It means that you can't set the value via an inherit of
|
||||||
|
# ir.actions.report as XML
|
||||||
|
# I think it was easier when this field was not translatable
|
||||||
|
print_report_name = fields.Char(translate=False)
|
||||||
Reference in New Issue
Block a user