odoo-addon-base-report-to-printer 16.0.1.1.8.2__py3-none-any.whl → 16.0.1.2.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of odoo-addon-base-report-to-printer might be problematic. Click here for more details.

Files changed (42) hide show
  1. odoo/addons/base_report_to_printer/README.rst +13 -1
  2. odoo/addons/base_report_to_printer/__manifest__.py +2 -1
  3. odoo/addons/base_report_to_printer/i18n/am.po +25 -2
  4. odoo/addons/base_report_to_printer/i18n/base_report_to_printer.pot +25 -2
  5. odoo/addons/base_report_to_printer/i18n/bg.po +25 -2
  6. odoo/addons/base_report_to_printer/i18n/ca.po +25 -2
  7. odoo/addons/base_report_to_printer/i18n/de.po +25 -2
  8. odoo/addons/base_report_to_printer/i18n/el_GR.po +25 -2
  9. odoo/addons/base_report_to_printer/i18n/es.po +28 -5
  10. odoo/addons/base_report_to_printer/i18n/es_AR.po +25 -2
  11. odoo/addons/base_report_to_printer/i18n/es_ES.po +25 -2
  12. odoo/addons/base_report_to_printer/i18n/fi.po +25 -2
  13. odoo/addons/base_report_to_printer/i18n/fr.po +26 -7
  14. odoo/addons/base_report_to_printer/i18n/gl.po +25 -2
  15. odoo/addons/base_report_to_printer/i18n/hr.po +25 -2
  16. odoo/addons/base_report_to_printer/i18n/hr_HR.po +25 -2
  17. odoo/addons/base_report_to_printer/i18n/it.po +32 -4
  18. odoo/addons/base_report_to_printer/i18n/nl.po +25 -2
  19. odoo/addons/base_report_to_printer/i18n/nl_NL.po +25 -2
  20. odoo/addons/base_report_to_printer/i18n/pt.po +25 -2
  21. odoo/addons/base_report_to_printer/i18n/pt_BR.po +25 -2
  22. odoo/addons/base_report_to_printer/i18n/pt_PT.po +25 -2
  23. odoo/addons/base_report_to_printer/i18n/sl.po +25 -2
  24. odoo/addons/base_report_to_printer/i18n/sv.po +25 -2
  25. odoo/addons/base_report_to_printer/i18n/tr.po +25 -2
  26. odoo/addons/base_report_to_printer/i18n/zh_CN.po +25 -2
  27. odoo/addons/base_report_to_printer/models/ir_actions_report.py +32 -1
  28. odoo/addons/base_report_to_printer/models/printing_printer.py +10 -2
  29. odoo/addons/base_report_to_printer/models/printing_server.py +6 -0
  30. odoo/addons/base_report_to_printer/readme/CONTRIBUTORS.rst +5 -0
  31. odoo/addons/base_report_to_printer/readme/ROADMAP.rst +3 -0
  32. odoo/addons/base_report_to_printer/security/ir.model.access.csv +2 -0
  33. odoo/addons/base_report_to_printer/static/description/index.html +31 -17
  34. odoo/addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js +57 -19
  35. odoo/addons/base_report_to_printer/tests/test_ir_actions_report.py +17 -0
  36. odoo/addons/base_report_to_printer/tests/test_printing_printer_tray.py +4 -3
  37. odoo/addons/base_report_to_printer/views/printing_printer.xml +1 -0
  38. odoo/addons/base_report_to_printer/views/printing_server.xml +1 -0
  39. {odoo_addon_base_report_to_printer-16.0.1.1.8.2.dist-info → odoo_addon_base_report_to_printer-16.0.1.2.0.1.dist-info}/METADATA +14 -2
  40. {odoo_addon_base_report_to_printer-16.0.1.1.8.2.dist-info → odoo_addon_base_report_to_printer-16.0.1.2.0.1.dist-info}/RECORD +42 -40
  41. {odoo_addon_base_report_to_printer-16.0.1.1.8.2.dist-info → odoo_addon_base_report_to_printer-16.0.1.2.0.1.dist-info}/WHEEL +0 -0
  42. {odoo_addon_base_report_to_printer-16.0.1.1.8.2.dist-info → odoo_addon_base_report_to_printer-16.0.1.2.0.1.dist-info}/top_level.txt +0 -0
@@ -176,7 +176,7 @@ msgstr ""
176
176
  #. odoo-javascript
177
177
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
178
178
  #, python-format
179
- msgid "Could not send to printer!"
179
+ msgid "Could not sent to printer!"
180
180
  msgstr ""
181
181
 
182
182
  #. module: base_report_to_printer
@@ -396,6 +396,13 @@ msgstr ""
396
396
  msgid "If checked, this server is useable."
397
397
  msgstr ""
398
398
 
399
+ #. module: base_report_to_printer
400
+ #. odoo-javascript
401
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
402
+ #, python-format
403
+ msgid "Issue on"
404
+ msgstr ""
405
+
399
406
  #. module: base_report_to_printer
400
407
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.printing_job_view_form
401
408
  msgid "Job"
@@ -481,6 +488,12 @@ msgstr ""
481
488
  msgid "Model"
482
489
  msgstr ""
483
490
 
491
+ #. module: base_report_to_printer
492
+ #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer__multi_thread
493
+ #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server__multi_thread
494
+ msgid "Multi Thread"
495
+ msgstr ""
496
+
484
497
  #. module: base_report_to_printer
485
498
  #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_action__name
486
499
  #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job__name
@@ -564,8 +577,11 @@ msgid "Port of the server."
564
577
  msgstr ""
565
578
 
566
579
  #. module: base_report_to_printer
580
+ #. odoo-javascript
581
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
567
582
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.act_report_xml_view
568
583
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.wizard_print_attachment_form
584
+ #, python-format
569
585
  msgid "Print"
570
586
  msgstr ""
571
587
 
@@ -845,7 +861,7 @@ msgstr ""
845
861
  #. odoo-javascript
846
862
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
847
863
  #, python-format
848
- msgid "The printer couldn't be reached. Downloading document instead"
864
+ msgid "The report"
849
865
  msgstr ""
850
866
 
851
867
  #. module: base_report_to_printer
@@ -947,6 +963,13 @@ msgstr ""
947
963
  msgid "Wizard"
948
964
  msgstr ""
949
965
 
966
+ #. module: base_report_to_printer
967
+ #. odoo-javascript
968
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
969
+ #, python-format
970
+ msgid "couldn't be printed. Click on the button below to download it"
971
+ msgstr ""
972
+
950
973
  #. module: base_report_to_printer
951
974
  #. odoo-python
952
975
  #: code:addons/base_report_to_printer/wizards/print_attachment_report.py:0
@@ -177,7 +177,7 @@ msgstr ""
177
177
  #. odoo-javascript
178
178
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
179
179
  #, python-format
180
- msgid "Could not send to printer!"
180
+ msgid "Could not sent to printer!"
181
181
  msgstr ""
182
182
 
183
183
  #. module: base_report_to_printer
@@ -397,6 +397,13 @@ msgstr ""
397
397
  msgid "If checked, this server is useable."
398
398
  msgstr ""
399
399
 
400
+ #. module: base_report_to_printer
401
+ #. odoo-javascript
402
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
403
+ #, python-format
404
+ msgid "Issue on"
405
+ msgstr ""
406
+
400
407
  #. module: base_report_to_printer
401
408
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.printing_job_view_form
402
409
  msgid "Job"
@@ -482,6 +489,12 @@ msgstr ""
482
489
  msgid "Model"
483
490
  msgstr ""
484
491
 
492
+ #. module: base_report_to_printer
493
+ #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer__multi_thread
494
+ #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server__multi_thread
495
+ msgid "Multi Thread"
496
+ msgstr ""
497
+
485
498
  #. module: base_report_to_printer
486
499
  #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_action__name
487
500
  #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job__name
@@ -565,8 +578,11 @@ msgid "Port of the server."
565
578
  msgstr ""
566
579
 
567
580
  #. module: base_report_to_printer
581
+ #. odoo-javascript
582
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
568
583
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.act_report_xml_view
569
584
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.wizard_print_attachment_form
585
+ #, python-format
570
586
  msgid "Print"
571
587
  msgstr ""
572
588
 
@@ -846,7 +862,7 @@ msgstr ""
846
862
  #. odoo-javascript
847
863
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
848
864
  #, python-format
849
- msgid "The printer couldn't be reached. Downloading document instead"
865
+ msgid "The report"
850
866
  msgstr ""
851
867
 
852
868
  #. module: base_report_to_printer
@@ -948,6 +964,13 @@ msgstr ""
948
964
  msgid "Wizard"
949
965
  msgstr ""
950
966
 
967
+ #. module: base_report_to_printer
968
+ #. odoo-javascript
969
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
970
+ #, python-format
971
+ msgid "couldn't be printed. Click on the button below to download it"
972
+ msgstr ""
973
+
951
974
  #. module: base_report_to_printer
952
975
  #. odoo-python
953
976
  #: code:addons/base_report_to_printer/wizards/print_attachment_report.py:0
@@ -177,7 +177,7 @@ msgstr ""
177
177
  #. odoo-javascript
178
178
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
179
179
  #, python-format
180
- msgid "Could not send to printer!"
180
+ msgid "Could not sent to printer!"
181
181
  msgstr ""
182
182
 
183
183
  #. module: base_report_to_printer
@@ -397,6 +397,13 @@ msgstr ""
397
397
  msgid "If checked, this server is useable."
398
398
  msgstr ""
399
399
 
400
+ #. module: base_report_to_printer
401
+ #. odoo-javascript
402
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
403
+ #, python-format
404
+ msgid "Issue on"
405
+ msgstr ""
406
+
400
407
  #. module: base_report_to_printer
401
408
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.printing_job_view_form
402
409
  msgid "Job"
@@ -482,6 +489,12 @@ msgstr ""
482
489
  msgid "Model"
483
490
  msgstr ""
484
491
 
492
+ #. module: base_report_to_printer
493
+ #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer__multi_thread
494
+ #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server__multi_thread
495
+ msgid "Multi Thread"
496
+ msgstr ""
497
+
485
498
  #. module: base_report_to_printer
486
499
  #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_action__name
487
500
  #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job__name
@@ -565,8 +578,11 @@ msgid "Port of the server."
565
578
  msgstr ""
566
579
 
567
580
  #. module: base_report_to_printer
581
+ #. odoo-javascript
582
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
568
583
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.act_report_xml_view
569
584
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.wizard_print_attachment_form
585
+ #, python-format
570
586
  msgid "Print"
571
587
  msgstr ""
572
588
 
@@ -846,7 +862,7 @@ msgstr ""
846
862
  #. odoo-javascript
847
863
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
848
864
  #, python-format
849
- msgid "The printer couldn't be reached. Downloading document instead"
865
+ msgid "The report"
850
866
  msgstr ""
851
867
 
852
868
  #. module: base_report_to_printer
@@ -948,6 +964,13 @@ msgstr ""
948
964
  msgid "Wizard"
949
965
  msgstr ""
950
966
 
967
+ #. module: base_report_to_printer
968
+ #. odoo-javascript
969
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
970
+ #, python-format
971
+ msgid "couldn't be printed. Click on the button below to download it"
972
+ msgstr ""
973
+
951
974
  #. module: base_report_to_printer
952
975
  #. odoo-python
953
976
  #: code:addons/base_report_to_printer/wizards/print_attachment_report.py:0
@@ -177,7 +177,7 @@ msgstr ""
177
177
  #. odoo-javascript
178
178
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
179
179
  #, python-format
180
- msgid "Could not send to printer!"
180
+ msgid "Could not sent to printer!"
181
181
  msgstr ""
182
182
 
183
183
  #. module: base_report_to_printer
@@ -397,6 +397,13 @@ msgstr ""
397
397
  msgid "If checked, this server is useable."
398
398
  msgstr ""
399
399
 
400
+ #. module: base_report_to_printer
401
+ #. odoo-javascript
402
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
403
+ #, python-format
404
+ msgid "Issue on"
405
+ msgstr ""
406
+
400
407
  #. module: base_report_to_printer
401
408
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.printing_job_view_form
402
409
  msgid "Job"
@@ -482,6 +489,12 @@ msgstr ""
482
489
  msgid "Model"
483
490
  msgstr ""
484
491
 
492
+ #. module: base_report_to_printer
493
+ #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer__multi_thread
494
+ #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server__multi_thread
495
+ msgid "Multi Thread"
496
+ msgstr ""
497
+
485
498
  #. module: base_report_to_printer
486
499
  #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_action__name
487
500
  #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job__name
@@ -565,8 +578,11 @@ msgid "Port of the server."
565
578
  msgstr ""
566
579
 
567
580
  #. module: base_report_to_printer
581
+ #. odoo-javascript
582
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
568
583
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.act_report_xml_view
569
584
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.wizard_print_attachment_form
585
+ #, python-format
570
586
  msgid "Print"
571
587
  msgstr ""
572
588
 
@@ -846,7 +862,7 @@ msgstr ""
846
862
  #. odoo-javascript
847
863
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
848
864
  #, python-format
849
- msgid "The printer couldn't be reached. Downloading document instead"
865
+ msgid "The report"
850
866
  msgstr ""
851
867
 
852
868
  #. module: base_report_to_printer
@@ -948,6 +964,13 @@ msgstr ""
948
964
  msgid "Wizard"
949
965
  msgstr ""
950
966
 
967
+ #. module: base_report_to_printer
968
+ #. odoo-javascript
969
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
970
+ #, python-format
971
+ msgid "couldn't be printed. Click on the button below to download it"
972
+ msgstr ""
973
+
951
974
  #. module: base_report_to_printer
952
975
  #. odoo-python
953
976
  #: code:addons/base_report_to_printer/wizards/print_attachment_report.py:0
@@ -174,7 +174,7 @@ msgstr ""
174
174
  #. odoo-javascript
175
175
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
176
176
  #, python-format
177
- msgid "Could not send to printer!"
177
+ msgid "Could not sent to printer!"
178
178
  msgstr ""
179
179
 
180
180
  #. module: base_report_to_printer
@@ -394,6 +394,13 @@ msgstr "Serverns IP-adress eller värdnamn"
394
394
  msgid "If checked, this server is useable."
395
395
  msgstr "Om rutan är ikryssad är servern användbar."
396
396
 
397
+ #. module: base_report_to_printer
398
+ #. odoo-javascript
399
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
400
+ #, python-format
401
+ msgid "Issue on"
402
+ msgstr ""
403
+
397
404
  #. module: base_report_to_printer
398
405
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.printing_job_view_form
399
406
  msgid "Job"
@@ -479,6 +486,12 @@ msgstr "Medieframsteg"
479
486
  msgid "Model"
480
487
  msgstr "Modell"
481
488
 
489
+ #. module: base_report_to_printer
490
+ #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer__multi_thread
491
+ #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server__multi_thread
492
+ msgid "Multi Thread"
493
+ msgstr ""
494
+
482
495
  #. module: base_report_to_printer
483
496
  #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_action__name
484
497
  #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job__name
@@ -562,8 +575,11 @@ msgid "Port of the server."
562
575
  msgstr "Serverns port."
563
576
 
564
577
  #. module: base_report_to_printer
578
+ #. odoo-javascript
579
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
565
580
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.act_report_xml_view
566
581
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.wizard_print_attachment_form
582
+ #, python-format
567
583
  msgid "Print"
568
584
  msgstr "Skriv ut"
569
585
 
@@ -843,7 +859,7 @@ msgstr "Jobbets ID måste vara unikt per server !"
843
859
  #. odoo-javascript
844
860
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
845
861
  #, python-format
846
- msgid "The printer couldn't be reached. Downloading document instead"
862
+ msgid "The report"
847
863
  msgstr ""
848
864
 
849
865
  #. module: base_report_to_printer
@@ -949,6 +965,13 @@ msgstr ""
949
965
  msgid "Wizard"
950
966
  msgstr ""
951
967
 
968
+ #. module: base_report_to_printer
969
+ #. odoo-javascript
970
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
971
+ #, python-format
972
+ msgid "couldn't be printed. Click on the button below to download it"
973
+ msgstr ""
974
+
952
975
  #. module: base_report_to_printer
953
976
  #. odoo-python
954
977
  #: code:addons/base_report_to_printer/wizards/print_attachment_report.py:0
@@ -176,7 +176,7 @@ msgstr ""
176
176
  #. odoo-javascript
177
177
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
178
178
  #, python-format
179
- msgid "Could not send to printer!"
179
+ msgid "Could not sent to printer!"
180
180
  msgstr ""
181
181
 
182
182
  #. module: base_report_to_printer
@@ -396,6 +396,13 @@ msgstr ""
396
396
  msgid "If checked, this server is useable."
397
397
  msgstr ""
398
398
 
399
+ #. module: base_report_to_printer
400
+ #. odoo-javascript
401
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
402
+ #, python-format
403
+ msgid "Issue on"
404
+ msgstr ""
405
+
399
406
  #. module: base_report_to_printer
400
407
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.printing_job_view_form
401
408
  msgid "Job"
@@ -481,6 +488,12 @@ msgstr ""
481
488
  msgid "Model"
482
489
  msgstr ""
483
490
 
491
+ #. module: base_report_to_printer
492
+ #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer__multi_thread
493
+ #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server__multi_thread
494
+ msgid "Multi Thread"
495
+ msgstr ""
496
+
484
497
  #. module: base_report_to_printer
485
498
  #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_action__name
486
499
  #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job__name
@@ -564,8 +577,11 @@ msgid "Port of the server."
564
577
  msgstr ""
565
578
 
566
579
  #. module: base_report_to_printer
580
+ #. odoo-javascript
581
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
567
582
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.act_report_xml_view
568
583
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.wizard_print_attachment_form
584
+ #, python-format
569
585
  msgid "Print"
570
586
  msgstr ""
571
587
 
@@ -845,7 +861,7 @@ msgstr ""
845
861
  #. odoo-javascript
846
862
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
847
863
  #, python-format
848
- msgid "The printer couldn't be reached. Downloading document instead"
864
+ msgid "The report"
849
865
  msgstr ""
850
866
 
851
867
  #. module: base_report_to_printer
@@ -947,6 +963,13 @@ msgstr ""
947
963
  msgid "Wizard"
948
964
  msgstr ""
949
965
 
966
+ #. module: base_report_to_printer
967
+ #. odoo-javascript
968
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
969
+ #, python-format
970
+ msgid "couldn't be printed. Click on the button below to download it"
971
+ msgstr ""
972
+
950
973
  #. module: base_report_to_printer
951
974
  #. odoo-python
952
975
  #: code:addons/base_report_to_printer/wizards/print_attachment_report.py:0
@@ -177,7 +177,7 @@ msgstr ""
177
177
  #. odoo-javascript
178
178
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
179
179
  #, python-format
180
- msgid "Could not send to printer!"
180
+ msgid "Could not sent to printer!"
181
181
  msgstr ""
182
182
 
183
183
  #. module: base_report_to_printer
@@ -397,6 +397,13 @@ msgstr ""
397
397
  msgid "If checked, this server is useable."
398
398
  msgstr ""
399
399
 
400
+ #. module: base_report_to_printer
401
+ #. odoo-javascript
402
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
403
+ #, python-format
404
+ msgid "Issue on"
405
+ msgstr ""
406
+
400
407
  #. module: base_report_to_printer
401
408
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.printing_job_view_form
402
409
  msgid "Job"
@@ -482,6 +489,12 @@ msgstr ""
482
489
  msgid "Model"
483
490
  msgstr ""
484
491
 
492
+ #. module: base_report_to_printer
493
+ #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_printer__multi_thread
494
+ #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_server__multi_thread
495
+ msgid "Multi Thread"
496
+ msgstr ""
497
+
485
498
  #. module: base_report_to_printer
486
499
  #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_action__name
487
500
  #: model:ir.model.fields,field_description:base_report_to_printer.field_printing_job__name
@@ -565,8 +578,11 @@ msgid "Port of the server."
565
578
  msgstr ""
566
579
 
567
580
  #. module: base_report_to_printer
581
+ #. odoo-javascript
582
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
568
583
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.act_report_xml_view
569
584
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.wizard_print_attachment_form
585
+ #, python-format
570
586
  msgid "Print"
571
587
  msgstr ""
572
588
 
@@ -846,7 +862,7 @@ msgstr ""
846
862
  #. odoo-javascript
847
863
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
848
864
  #, python-format
849
- msgid "The printer couldn't be reached. Downloading document instead"
865
+ msgid "The report"
850
866
  msgstr ""
851
867
 
852
868
  #. module: base_report_to_printer
@@ -948,6 +964,13 @@ msgstr ""
948
964
  msgid "Wizard"
949
965
  msgstr ""
950
966
 
967
+ #. module: base_report_to_printer
968
+ #. odoo-javascript
969
+ #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
970
+ #, python-format
971
+ msgid "couldn't be printed. Click on the button below to download it"
972
+ msgstr ""
973
+
951
974
  #. module: base_report_to_printer
952
975
  #. odoo-python
953
976
  #: code:addons/base_report_to_printer/wizards/print_attachment_report.py:0
@@ -3,9 +3,11 @@
3
3
  # Copyright (C) 2011 Agile Business Group sagl (<http://www.agilebg.com>)
4
4
  # Copyright (C) 2011 Domsense srl (<http://www.domsense.com>)
5
5
  # Copyright (C) 2013-2014 Camptocamp (<http://www.camptocamp.com>)
6
+ # Copyright 2024 Tecnativa - Sergio Teruel
6
7
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
8
+ import threading
7
9
 
8
- from odoo import _, api, exceptions, fields, models
10
+ from odoo import _, api, exceptions, fields, models, registry
9
11
  from odoo.tools.safe_eval import safe_eval, time
10
12
 
11
13
  REPORT_TYPES = {"qweb-pdf": "pdf", "qweb-text": "text"}
@@ -57,6 +59,8 @@ class IrActionsReport(models.Model):
57
59
  "skip_printer_exception"
58
60
  ):
59
61
  serializable_result["printer_exception"] = True
62
+ if self.env.context.get("force_print_to_client"):
63
+ serializable_result["action"] = "client"
60
64
  return serializable_result
61
65
 
62
66
  def _get_user_default_print_behaviour(self):
@@ -118,6 +122,32 @@ class IrActionsReport(models.Model):
118
122
  result["printer_exception"] = True
119
123
  return result
120
124
 
125
+ def print_document_client_action(self, record_ids, data=None):
126
+ behaviour = self.behaviour()
127
+ printer = behaviour.pop("printer", None)
128
+ if printer.multi_thread:
129
+
130
+ @self.env.cr.postcommit.add
131
+ def _launch_print_thread():
132
+ threaded_calculation = threading.Thread(
133
+ target=self.print_document_threaded,
134
+ args=(self.id, record_ids, data),
135
+ )
136
+ threaded_calculation.start()
137
+
138
+ return True
139
+ else:
140
+ try:
141
+ return self.print_document(record_ids, data=data)
142
+ except Exception:
143
+ return
144
+
145
+ def print_document_threaded(self, report_id, record_ids, data):
146
+ with registry(self._cr.dbname).cursor() as cr:
147
+ self = self.with_env(self.env(cr=cr))
148
+ report = self.env["ir.actions.report"].browse(report_id)
149
+ report.print_document(record_ids, data)
150
+
121
151
  def print_document(self, record_ids, data=None):
122
152
  """Print a document, do not return the document file"""
123
153
  report_type = REPORT_TYPES.get(self.report_type)
@@ -146,6 +176,7 @@ class IrActionsReport(models.Model):
146
176
  else:
147
177
  title = self.report_name
148
178
  behaviour["title"] = title
179
+ behaviour["res_ids"] = record_ids
149
180
  # TODO should we use doc_format instead of report_type
150
181
  return printer.print_document(
151
182
  self, document, doc_format=self.report_type, **behaviour
@@ -12,7 +12,7 @@ import logging
12
12
  import os
13
13
  from tempfile import mkstemp
14
14
 
15
- from odoo import fields, models
15
+ from odoo import api, fields, models
16
16
 
17
17
  _logger = logging.getLogger(__name__)
18
18
 
@@ -67,11 +67,19 @@ class PrintingPrinter(models.Model):
67
67
  tray_ids = fields.One2many(
68
68
  comodel_name="printing.tray", inverse_name="printer_id", string="Paper Sources"
69
69
  )
70
+ multi_thread = fields.Boolean(
71
+ compute="_compute_multi_thread", readonly=False, store=True
72
+ )
73
+
74
+ @api.depends("server_id.multi_thread")
75
+ def _compute_multi_thread(self):
76
+ for printer in self:
77
+ printer.multi_thread = printer.server_id.multi_thread
70
78
 
71
79
  def _prepare_update_from_cups(self, cups_connection, cups_printer):
72
80
  mapping = {3: "available", 4: "printing", 5: "error"}
73
81
  cups_vals = {
74
- "name": cups_printer["printer-info"],
82
+ "name": self.name or cups_printer["printer-info"],
75
83
  "model": cups_printer.get("printer-make-and-model", False),
76
84
  "location": cups_printer.get("printer-location", False),
77
85
  "uri": cups_printer.get("device-uri", False),
@@ -42,6 +42,7 @@ class PrintingServer(models.Model):
42
42
  string="Printers List",
43
43
  help="List of printers available on this server.",
44
44
  )
45
+ multi_thread = fields.Boolean()
45
46
 
46
47
  def _open_connection(self, raise_on_error=False):
47
48
  self.ensure_one()
@@ -121,6 +122,11 @@ class PrintingServer(models.Model):
121
122
  printer_values["server_id"] = server.id
122
123
 
123
124
  updated_printers.append(name)
125
+ # We want to keep any existing customized name over existing printer
126
+ # We want also to rely in the system name as a fallback to avoid
127
+ # empty names.
128
+ if not printer_values.get("name") and not printer.name:
129
+ printer_values["name"] = name
124
130
  if not printer:
125
131
  printer_values["system_name"] = name
126
132
  printer.create(printer_values)
@@ -15,3 +15,8 @@
15
15
  * Hughes Damry <hughes.damry@acsone.eu>
16
16
  * Akim Juillerat <akim.juillerat@camptocamp.com>
17
17
  * Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
18
+
19
+ * `Tecnativa <https://www.tecnativa.com>`_:
20
+
21
+ * Sergio Teruel
22
+ * David Vidal
@@ -0,0 +1,3 @@
1
+ - With threaded printing there's no download fallback when the issue isn't detected by
2
+ the CUPS Odoo backend. To able to do it, we would need to notify the bus or use
3
+ web_notify for it.
@@ -0,0 +1,2 @@
1
+ id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink
2
+ access_printing_printer_update_wizard,printers update,model_printing_printer_update_wizard,base.group_system,1,1,1,1