mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[MIG] base_report_to_printer: Finish migration to 15.0
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user