[MIG] : Migration to 14.0

This commit is contained in:
Cyril VINH-TUNG
2022-10-12 11:34:17 -10:00
parent e405538571
commit 277eff719c
7 changed files with 105 additions and 57 deletions

View File

@@ -8,7 +8,9 @@ from odoo.exceptions import UserError
class ReportAction(models.Model):
_inherit = "ir.actions.report"
report_type = fields.Selection(selection_add=[("fillpdf", "PDF Filler")])
report_type = fields.Selection(
selection_add=[("fillpdf", "PDF Filler")], ondelete={"fillpdf": "set default"}
)
@api.model
def render_fillpdf(self, docids, data):