mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[MIG] report_xml: Migration to 14.0
This commit is contained in:
committed by
Enric Tobella
parent
09d1d54ee6
commit
98262b1445
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user