base_usabilty: translate=False on print_report_name

This commit is contained in:
Alexis de Lattre
2021-08-28 00:00:07 +02:00
parent 82b9a1e502
commit a28a853f45
2 changed files with 16 additions and 0 deletions

View File

@@ -4,4 +4,5 @@ from . import res_partner_bank
from . import res_partner_category
from . import res_company
from . import ir_mail_server
from . import ir_actions_report
from . import ir_model

View 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)