[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
parent 4dcf26232d
commit d6500e4bfe
34 changed files with 383 additions and 622 deletions

View File

@@ -26,3 +26,14 @@ class ResUsers(models.Model):
)
printing_printer_id = fields.Many2one(comodel_name='printing.printer',
string='Default Printer')
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