[MIG] report_xml: Migration to 14.0

This commit is contained in:
Francisco Ivan Anton Prieto
2021-01-25 12:15:59 +01:00
committed by Enric Tobella
parent 09d1d54ee6
commit 98262b1445
8 changed files with 19 additions and 19 deletions

View File

@@ -7,7 +7,9 @@ from odoo import fields, models
class IrActionsReport(models.Model):
_inherit = "ir.actions.report"
report_type = fields.Selection(selection_add=[("qweb-xml", "XML")])
report_type = fields.Selection(
selection_add=[("qweb-xml", "XML")], ondelete={"qweb-xml": "set default"}
)
xsd_schema = fields.Binary(
string="XSD Validation Schema",
attachment=True,
@@ -34,7 +36,7 @@ class IrActionsReport(models.Model):
),
)
def render_qweb_xml(self, docids, data=None):
def _render_qweb_xml(self, docids, data=None):
"""
Call `generate_report` method of report abstract class
`report.<report technical name>` or of standard class for XML report