mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[14.0][MIG] report_py3o: Migration to 14.0
This commit is contained in:
@@ -47,7 +47,13 @@ class IrActionsReport(models.Model):
|
||||
selections.append((name, description))
|
||||
return selections
|
||||
|
||||
report_type = fields.Selection(selection_add=[("py3o", "py3o")])
|
||||
report_type = fields.Selection(
|
||||
selection_add=[("py3o", "py3o")],
|
||||
ondelete={
|
||||
'py3o': 'cascade',
|
||||
},
|
||||
)
|
||||
|
||||
py3o_filetype = fields.Selection(
|
||||
selection="_get_py3o_filetypes", string="Output Format"
|
||||
)
|
||||
@@ -65,7 +71,6 @@ class IrActionsReport(models.Model):
|
||||
"or an absolute path on your server."
|
||||
),
|
||||
)
|
||||
report_type = fields.Selection(selection_add=[("py3o", "Py3o")])
|
||||
py3o_multi_in_one = fields.Boolean(
|
||||
string="Multiple Records in a Single Report",
|
||||
help="If you execute a report on several records, "
|
||||
@@ -155,7 +160,7 @@ class IrActionsReport(models.Model):
|
||||
[("report_name", "=", report_name), ("report_type", "=", report_type)]
|
||||
)
|
||||
|
||||
def render_py3o(self, res_ids, data):
|
||||
def _render_py3o(self, res_ids, data):
|
||||
self.ensure_one()
|
||||
if self.report_type != "py3o":
|
||||
raise RuntimeError(
|
||||
|
||||
Reference in New Issue
Block a user