[WIP] Commit before rebase on latest #109 for user and view updates

Migration of printer_tray to v11 and integration with base_report_to_printer
This commit is contained in:
Graeme Gellatly
2017-10-06 01:16:33 +13:00
committed by trisdoan
parent 6380ffbb37
commit 98feb8aac2
44 changed files with 2619 additions and 767 deletions

View File

@@ -37,3 +37,15 @@ class ResUsers(models.Model):
'printing_action',
'printing_printer_id',
])
printer_tray_id = fields.Many2one(
comodel_name='printing.tray',
string='Default Printer Paper Source',
domain="[('printer_id', '=', printing_printer_id)]",
)
@api.onchange('printing_printer_id')
def onchange_printing_printer_id(self):
""" Reset the tray when the printer is changed """
self.printer_tray_id = False