[FIX] base_report_to_printer: related field not readonly provokes unneeded writes

This commit is contained in:
Pedro M. Baeza
2018-05-30 20:18:04 +02:00
parent f7f3f4a64e
commit 51e80f08af
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ class PrintingJob(models.Model):
help='CUPS id for this job.')
server_id = fields.Many2one(
comodel_name='printing.server', string='Server',
related='printer_id.server_id', store=True,
related='printer_id.server_id', store=True, readonly=True,
help='Server which hosts this job.')
printer_id = fields.Many2one(
comodel_name='printing.printer', string='Printer', required=True,