mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[FIX] base_report_to_printer: related field not readonly provokes unneeded writes
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user