[IMP] base_report_to_printer: Avoid writing on printing printers/jobs if no change

The cron (by default) every minute, updates the printing.printer and
printing.job records from the cups server. The field values rarely
change, so we can prevent many updates in database.

Also, writing on `printing_printer.server_id` triggers another update
on the printing.job records as the model has a stored related field.
This commit is contained in:
Guewen Baconnier
2021-02-04 13:54:13 +01:00
committed by John Herholz
parent 10ed2b6d3f
commit 002c8421cd
3 changed files with 44 additions and 26 deletions

View File

@@ -7,7 +7,7 @@
{
"name": "Report to printer",
"version": "14.0.1.0.0",
"version": "14.0.1.0.1",
"category": "Generic Modules/Base",
"author": "Agile Business Group & Domsense, Pegueroles SCP, NaN,"
" LasLabs, Camptocamp, Odoo Community Association (OCA),"