[MIG] base_report_to_printer: Finish migration to 15.0

This commit is contained in:
matiasperalta1
2022-08-25 11:11:14 -03:00
committed by trisdoan
parent b21121de86
commit f077a8186b
6 changed files with 44 additions and 65 deletions

View File

@@ -24,11 +24,16 @@ class ResUsers(models.Model):
comodel_name="printing.printer", string="Default Printer"
)
@api.model
def _register_hook(self):
super()._register_hook()
self.SELF_WRITEABLE_FIELDS.extend(["printing_action", "printing_printer_id"])
self.SELF_READABLE_FIELDS.extend(["printing_action", "printing_printer_id"])
@property
def SELF_READABLE_FIELDS(self):
return super().SELF_READABLE_FIELDS + ["printing_action", "printing_printer_id"]
@property
def SELF_WRITEABLE_FIELDS(self):
return super().SELF_WRITEABLE_FIELDS + [
"printing_action",
"printing_printer_id",
]
printer_tray_id = fields.Many2one(
comodel_name="printing.tray",