odoo-addon-base-report-to-printer 17.0.1.1.1__py3-none-any.whl → 18.0.1.0.0.4__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 (54) hide show
  1. odoo/addons/base_report_to_printer/README.rst +52 -45
  2. odoo/addons/base_report_to_printer/__manifest__.py +1 -1
  3. odoo/addons/base_report_to_printer/data/printing_data.xml +5 -11
  4. odoo/addons/base_report_to_printer/i18n/am.po +0 -11
  5. odoo/addons/base_report_to_printer/i18n/base_report_to_printer.pot +1 -12
  6. odoo/addons/base_report_to_printer/i18n/bg.po +0 -11
  7. odoo/addons/base_report_to_printer/i18n/ca.po +0 -11
  8. odoo/addons/base_report_to_printer/i18n/de.po +0 -11
  9. odoo/addons/base_report_to_printer/i18n/el_GR.po +0 -11
  10. odoo/addons/base_report_to_printer/i18n/es.po +0 -11
  11. odoo/addons/base_report_to_printer/i18n/es_AR.po +0 -11
  12. odoo/addons/base_report_to_printer/i18n/es_ES.po +0 -11
  13. odoo/addons/base_report_to_printer/i18n/fi.po +0 -11
  14. odoo/addons/base_report_to_printer/i18n/fr.po +0 -11
  15. odoo/addons/base_report_to_printer/i18n/gl.po +0 -11
  16. odoo/addons/base_report_to_printer/i18n/hr.po +0 -11
  17. odoo/addons/base_report_to_printer/i18n/hr_HR.po +0 -11
  18. odoo/addons/base_report_to_printer/i18n/it.po +1 -12
  19. odoo/addons/base_report_to_printer/i18n/nl.po +0 -11
  20. odoo/addons/base_report_to_printer/i18n/nl_NL.po +0 -11
  21. odoo/addons/base_report_to_printer/i18n/pt.po +0 -11
  22. odoo/addons/base_report_to_printer/i18n/pt_BR.po +0 -11
  23. odoo/addons/base_report_to_printer/i18n/pt_PT.po +0 -11
  24. odoo/addons/base_report_to_printer/i18n/sl.po +0 -11
  25. odoo/addons/base_report_to_printer/i18n/sv.po +0 -11
  26. odoo/addons/base_report_to_printer/i18n/tr.po +0 -11
  27. odoo/addons/base_report_to_printer/i18n/zh_CN.po +0 -11
  28. odoo/addons/base_report_to_printer/models/ir_actions_report.py +6 -5
  29. odoo/addons/base_report_to_printer/models/printing_action.py +2 -2
  30. odoo/addons/base_report_to_printer/models/printing_printer.py +1 -1
  31. odoo/addons/base_report_to_printer/models/printing_report_xml_action.py +1 -1
  32. odoo/addons/base_report_to_printer/models/res_users.py +11 -3
  33. odoo/addons/base_report_to_printer/readme/CONTRIBUTORS.md +1 -0
  34. odoo/addons/base_report_to_printer/readme/CREDITS.md +1 -0
  35. odoo/addons/base_report_to_printer/static/description/index.html +16 -9
  36. odoo/addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js +2 -2
  37. odoo/addons/base_report_to_printer/tests/test_ir_actions_report.py +121 -86
  38. odoo/addons/base_report_to_printer/tests/test_printing_job.py +16 -9
  39. odoo/addons/base_report_to_printer/tests/test_printing_printer.py +50 -34
  40. odoo/addons/base_report_to_printer/tests/test_printing_printer_tray.py +9 -9
  41. odoo/addons/base_report_to_printer/tests/test_printing_printer_wizard.py +15 -9
  42. odoo/addons/base_report_to_printer/tests/test_printing_server.py +38 -27
  43. odoo/addons/base_report_to_printer/tests/test_report.py +41 -20
  44. odoo/addons/base_report_to_printer/views/printing_job.xml +2 -2
  45. odoo/addons/base_report_to_printer/views/printing_printer.xml +3 -3
  46. odoo/addons/base_report_to_printer/views/printing_report.xml +2 -2
  47. odoo/addons/base_report_to_printer/views/printing_server.xml +3 -3
  48. odoo/addons/base_report_to_printer/wizards/print_attachment_report.xml +2 -2
  49. odoo/addons/base_report_to_printer/wizards/printing_printer_update_wizard.py +1 -1
  50. {odoo_addon_base_report_to_printer-17.0.1.1.1.dist-info → odoo_addon_base_report_to_printer-18.0.1.0.0.4.dist-info}/METADATA +55 -48
  51. odoo_addon_base_report_to_printer-18.0.1.0.0.4.dist-info/RECORD +77 -0
  52. odoo_addon_base_report_to_printer-17.0.1.1.1.dist-info/RECORD +0 -76
  53. {odoo_addon_base_report_to_printer-17.0.1.1.1.dist-info → odoo_addon_base_report_to_printer-18.0.1.0.0.4.dist-info}/WHEEL +0 -0
  54. {odoo_addon_base_report_to_printer-17.0.1.1.1.dist-info → odoo_addon_base_report_to_printer-18.0.1.0.0.4.dist-info}/top_level.txt +0 -0
@@ -173,7 +173,6 @@ msgstr "Kopior"
173
173
  #. module: base_report_to_printer
174
174
  #. odoo-javascript
175
175
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
176
- #, python-format
177
176
  msgid "Could not sent to printer!"
178
177
  msgstr "Det gick inte att skicka till skrivaren!"
179
178
 
@@ -320,7 +319,6 @@ msgstr "Fel i dokumentet"
320
319
  #. module: base_report_to_printer
321
320
  #. odoo-python
322
321
  #: code:addons/base_report_to_printer/models/printing_server.py:0
323
- #, python-format
324
322
  msgid ""
325
323
  "Failed to connect to the CUPS server on %(address)s:%(port)s. Check that the "
326
324
  "CUPS server is running and that you can reach it from the Odoo server."
@@ -341,7 +339,6 @@ msgstr "Filer mottogs inte i sin helhet"
341
339
  #. module: base_report_to_printer
342
340
  #. odoo-python
343
341
  #: code:addons/base_report_to_printer/wizards/print_attachment_report.py:0
344
- #, python-format
345
342
  msgid ""
346
343
  "Following attachments could not be printed:\n"
347
344
  "\n"
@@ -402,7 +399,6 @@ msgstr "Om rutan är ikryssad är servern användbar."
402
399
  #. module: base_report_to_printer
403
400
  #. odoo-javascript
404
401
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
405
- #, python-format
406
402
  msgid "Issue on"
407
403
  msgstr ""
408
404
 
@@ -501,7 +497,6 @@ msgstr "Ingen data har mottagits"
501
497
  #. module: base_report_to_printer
502
498
  #. odoo-python
503
499
  #: code:addons/base_report_to_printer/models/ir_actions_report.py:0
504
- #, python-format
505
500
  msgid "No printer configured to print this report."
506
501
  msgstr "Ingen skrivare har konfigurerats för att skriva ut den här rapporten."
507
502
 
@@ -566,7 +561,6 @@ msgstr "Serverns port."
566
561
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
567
562
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.act_report_xml_view
568
563
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.wizard_print_attachment_form
569
- #, python-format
570
564
  msgid "Print"
571
565
  msgstr "Skriv ut"
572
566
 
@@ -810,7 +804,6 @@ msgstr "Statusmeddelande"
810
804
  #. module: base_report_to_printer
811
805
  #. odoo-javascript
812
806
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
813
- #, python-format
814
807
  msgid "Successfully sent to printer!"
815
808
  msgstr "Framgångsrikt skickat till skrivaren!"
816
809
 
@@ -833,7 +826,6 @@ msgstr "Jobbets ID måste vara unikt per server !"
833
826
  #. module: base_report_to_printer
834
827
  #. odoo-javascript
835
828
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
836
- #, python-format
837
829
  msgid "The report"
838
830
  msgstr ""
839
831
 
@@ -855,7 +847,6 @@ msgstr ""
855
847
  #. module: base_report_to_printer
856
848
  #. odoo-python
857
849
  #: code:addons/base_report_to_printer/models/ir_actions_report.py:0
858
- #, python-format
859
850
  msgid "This report type (%s) is not supported by direct printing!"
860
851
  msgstr "Den här rapporttypen (%s) stöds inte av direktutskrift!"
861
852
 
@@ -942,14 +933,12 @@ msgstr "Guide"
942
933
  #. module: base_report_to_printer
943
934
  #. odoo-javascript
944
935
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
945
- #, python-format
946
936
  msgid "couldn't be printed. Click on the button below to download it"
947
937
  msgstr ""
948
938
 
949
939
  #. module: base_report_to_printer
950
940
  #. odoo-python
951
941
  #: code:addons/base_report_to_printer/wizards/print_attachment_report.py:0
952
- #, python-format
953
942
  msgid "{name} ({copies} copies)"
954
943
  msgstr "{name} ({copies} kopior)"
955
944
 
@@ -175,7 +175,6 @@ msgstr ""
175
175
  #. module: base_report_to_printer
176
176
  #. odoo-javascript
177
177
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
178
- #, python-format
179
178
  msgid "Could not sent to printer!"
180
179
  msgstr ""
181
180
 
@@ -322,7 +321,6 @@ msgstr ""
322
321
  #. module: base_report_to_printer
323
322
  #. odoo-python
324
323
  #: code:addons/base_report_to_printer/models/printing_server.py:0
325
- #, python-format
326
324
  msgid ""
327
325
  "Failed to connect to the CUPS server on %(address)s:%(port)s. Check that the "
328
326
  "CUPS server is running and that you can reach it from the Odoo server."
@@ -341,7 +339,6 @@ msgstr ""
341
339
  #. module: base_report_to_printer
342
340
  #. odoo-python
343
341
  #: code:addons/base_report_to_printer/wizards/print_attachment_report.py:0
344
- #, python-format
345
342
  msgid ""
346
343
  "Following attachments could not be printed:\n"
347
344
  "\n"
@@ -399,7 +396,6 @@ msgstr ""
399
396
  #. module: base_report_to_printer
400
397
  #. odoo-javascript
401
398
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
402
- #, python-format
403
399
  msgid "Issue on"
404
400
  msgstr ""
405
401
 
@@ -498,7 +494,6 @@ msgstr ""
498
494
  #. module: base_report_to_printer
499
495
  #. odoo-python
500
496
  #: code:addons/base_report_to_printer/models/ir_actions_report.py:0
501
- #, python-format
502
497
  msgid "No printer configured to print this report."
503
498
  msgstr ""
504
499
 
@@ -563,7 +558,6 @@ msgstr ""
563
558
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
564
559
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.act_report_xml_view
565
560
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.wizard_print_attachment_form
566
- #, python-format
567
561
  msgid "Print"
568
562
  msgstr ""
569
563
 
@@ -807,7 +801,6 @@ msgstr ""
807
801
  #. module: base_report_to_printer
808
802
  #. odoo-javascript
809
803
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
810
- #, python-format
811
804
  msgid "Successfully sent to printer!"
812
805
  msgstr ""
813
806
 
@@ -830,7 +823,6 @@ msgstr ""
830
823
  #. module: base_report_to_printer
831
824
  #. odoo-javascript
832
825
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
833
- #, python-format
834
826
  msgid "The report"
835
827
  msgstr ""
836
828
 
@@ -848,7 +840,6 @@ msgstr ""
848
840
  #. module: base_report_to_printer
849
841
  #. odoo-python
850
842
  #: code:addons/base_report_to_printer/models/ir_actions_report.py:0
851
- #, python-format
852
843
  msgid "This report type (%s) is not supported by direct printing!"
853
844
  msgstr ""
854
845
 
@@ -935,13 +926,11 @@ msgstr ""
935
926
  #. module: base_report_to_printer
936
927
  #. odoo-javascript
937
928
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
938
- #, python-format
939
929
  msgid "couldn't be printed. Click on the button below to download it"
940
930
  msgstr ""
941
931
 
942
932
  #. module: base_report_to_printer
943
933
  #. odoo-python
944
934
  #: code:addons/base_report_to_printer/wizards/print_attachment_report.py:0
945
- #, python-format
946
935
  msgid "{name} ({copies} copies)"
947
936
  msgstr ""
@@ -177,7 +177,6 @@ msgstr "副本"
177
177
  #. module: base_report_to_printer
178
178
  #. odoo-javascript
179
179
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
180
- #, python-format
181
180
  msgid "Could not sent to printer!"
182
181
  msgstr "无法发送至打印机!"
183
182
 
@@ -324,7 +323,6 @@ msgstr "文档中的错误"
324
323
  #. module: base_report_to_printer
325
324
  #. odoo-python
326
325
  #: code:addons/base_report_to_printer/models/printing_server.py:0
327
- #, python-format
328
326
  msgid ""
329
327
  "Failed to connect to the CUPS server on %(address)s:%(port)s. Check that the "
330
328
  "CUPS server is running and that you can reach it from the Odoo server."
@@ -345,7 +343,6 @@ msgstr "文件未完全接收"
345
343
  #. module: base_report_to_printer
346
344
  #. odoo-python
347
345
  #: code:addons/base_report_to_printer/wizards/print_attachment_report.py:0
348
- #, python-format
349
346
  msgid ""
350
347
  "Following attachments could not be printed:\n"
351
348
  "\n"
@@ -406,7 +403,6 @@ msgstr "如果勾选,此服务器可用。"
406
403
  #. module: base_report_to_printer
407
404
  #. odoo-javascript
408
405
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
409
- #, python-format
410
406
  msgid "Issue on"
411
407
  msgstr ""
412
408
 
@@ -505,7 +501,6 @@ msgstr "没有接收到数据"
505
501
  #. module: base_report_to_printer
506
502
  #. odoo-python
507
503
  #: code:addons/base_report_to_printer/models/ir_actions_report.py:0
508
- #, python-format
509
504
  msgid "No printer configured to print this report."
510
505
  msgstr "没有配置打印机来打印此报告。"
511
506
 
@@ -570,7 +565,6 @@ msgstr "服务器的端口。"
570
565
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
571
566
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.act_report_xml_view
572
567
  #: model_terms:ir.ui.view,arch_db:base_report_to_printer.wizard_print_attachment_form
573
- #, python-format
574
568
  msgid "Print"
575
569
  msgstr "打印"
576
570
 
@@ -814,7 +808,6 @@ msgstr "状态消息"
814
808
  #. module: base_report_to_printer
815
809
  #. odoo-javascript
816
810
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
817
- #, python-format
818
811
  msgid "Successfully sent to printer!"
819
812
  msgstr "成功发送至打印机!"
820
813
 
@@ -837,7 +830,6 @@ msgstr "每个服务器的作业 ID 必须是唯一的!"
837
830
  #. module: base_report_to_printer
838
831
  #. odoo-javascript
839
832
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
840
- #, python-format
841
833
  msgid "The report"
842
834
  msgstr ""
843
835
 
@@ -855,7 +847,6 @@ msgstr "此过程将从当前 CUPS 服务器创建所有缺失的打印机。"
855
847
  #. module: base_report_to_printer
856
848
  #. odoo-python
857
849
  #: code:addons/base_report_to_printer/models/ir_actions_report.py:0
858
- #, python-format
859
850
  msgid "This report type (%s) is not supported by direct printing!"
860
851
  msgstr "直接打印不支持此报告类型 (%s)!"
861
852
 
@@ -942,14 +933,12 @@ msgstr "向导"
942
933
  #. module: base_report_to_printer
943
934
  #. odoo-javascript
944
935
  #: code:addons/base_report_to_printer/static/src/js/qweb_action_manager.esm.js:0
945
- #, python-format
946
936
  msgid "couldn't be printed. Click on the button below to download it"
947
937
  msgstr ""
948
938
 
949
939
  #. module: base_report_to_printer
950
940
  #. odoo-python
951
941
  #: code:addons/base_report_to_printer/wizards/print_attachment_report.py:0
952
- #, python-format
953
942
  msgid "{name} ({copies} copies)"
954
943
  msgstr "{name} ({copies} 副本)"
955
944
 
@@ -6,9 +6,10 @@
6
6
  # Copyright 2024 Tecnativa - Sergio Teruel
7
7
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
8
8
  import threading
9
+ from time import time
9
10
 
10
11
  from odoo import _, api, exceptions, fields, models, registry
11
- from odoo.tools.safe_eval import safe_eval, time
12
+ from odoo.tools.safe_eval import safe_eval
12
13
 
13
14
  REPORT_TYPES = {"qweb-pdf": "pdf", "qweb-text": "text"}
14
15
 
@@ -69,9 +70,9 @@ class IrActionsReport(models.Model):
69
70
  return dict(
70
71
  action=user.printing_action or "client",
71
72
  printer=user.printing_printer_id or printer_obj.get_default(),
72
- tray=str(user.printer_tray_id.system_name)
73
- if user.printer_tray_id
74
- else False,
73
+ tray=(
74
+ str(user.printer_tray_id.system_name) if user.printer_tray_id else False
75
+ ),
75
76
  )
76
77
 
77
78
  def _get_report_default_print_behaviour(self):
@@ -156,7 +157,7 @@ class IrActionsReport(models.Model):
156
157
  _("This report type (%s) is not supported by direct printing!")
157
158
  % str(self.report_type)
158
159
  )
159
- method_name = "_render_qweb_%s" % (report_type)
160
+ method_name = f"_render_qweb_{report_type}"
160
161
  document, doc_format = getattr(
161
162
  self.with_context(must_skip_send_to_printer=True), method_name
162
163
  )(self.report_name, record_ids, data=data)
@@ -5,14 +5,14 @@
5
5
  # Copyright (C) 2013-2014 Camptocamp (<http://www.camptocamp.com>)
6
6
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
7
7
 
8
- from odoo import api, fields, models
8
+ from odoo import fields, models
9
9
 
10
10
 
11
11
  class PrintingAction(models.Model):
12
12
  _name = "printing.action"
13
13
  _description = "Print Job Action"
14
14
 
15
- @api.model
15
+ @property
16
16
  def _available_action_types(self):
17
17
  return [
18
18
  ("server", "Send to Printer"),
@@ -178,7 +178,7 @@ class PrintingPrinter(models.Model):
178
178
  options = {}
179
179
  for option, value in print_opts.items():
180
180
  try:
181
- options.update(getattr(self, "_set_option_%s" % option)(report, value))
181
+ options.update(getattr(self, f"_set_option_{option}")(report, value))
182
182
  except AttributeError:
183
183
  options[option] = str(value)
184
184
  return options
@@ -22,7 +22,7 @@ class PrintingReportXmlAction(models.Model):
22
22
  comodel_name="res.users", string="User", required=True, ondelete="cascade"
23
23
  )
24
24
  action = fields.Selection(
25
- selection=lambda s: s.env["printing.action"]._available_action_types(),
25
+ selection=lambda s: s.env["printing.action"]._available_action_types,
26
26
  required=True,
27
27
  )
28
28
  printer_id = fields.Many2one(comodel_name="printing.printer", string="Printer")
@@ -11,19 +11,27 @@ from odoo import api, fields, models
11
11
  class ResUsers(models.Model):
12
12
  _inherit = "res.users"
13
13
 
14
- @api.model
14
+ @property
15
15
  def _user_available_action_types(self):
16
16
  return [
17
17
  (code, string)
18
- for code, string in self.env["printing.action"]._available_action_types()
18
+ for code, string in self.env["printing.action"]._available_action_types
19
19
  if code != "user_default"
20
20
  ]
21
21
 
22
- printing_action = fields.Selection(selection=_user_available_action_types)
22
+ printing_action = fields.Selection(
23
+ selection=lambda self: self._user_available_action_types
24
+ )
23
25
  printing_printer_id = fields.Many2one(
24
26
  comodel_name="printing.printer", string="Default Printer"
25
27
  )
26
28
 
29
+ @api.constrains("printing_action")
30
+ def _check_printing_action(self):
31
+ for rec in self:
32
+ if rec.printing_action == "user_default":
33
+ raise ValueError("user_default should not be available")
34
+
27
35
  @property
28
36
  def SELF_READABLE_FIELDS(self):
29
37
  return super().SELF_READABLE_FIELDS + ["printing_action", "printing_printer_id"]
@@ -15,3 +15,4 @@
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
+ - Tris Doan \<<tridm@trobz.com>\>
@@ -0,0 +1 @@
1
+ The migration of this module from 17.0 to 18.0 was financially supported by Camptocamp.
@@ -367,9 +367,9 @@ ul.auto-toc {
367
367
  !! This file is generated by oca-gen-addon-readme !!
368
368
  !! changes will be overwritten. !!
369
369
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
- !! source digest: sha256:617c8c00cdb15a695dde5b4ab62953885ca35720cf15abfdad4ad886bb5244c8
370
+ !! source digest: sha256:7761acf7bc8cae2f3c56913a0da0ebc3d646ee29311fb4682bde14452b3a69d8
371
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
- <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/report-print-send/tree/17.0/base_report_to_printer"><img alt="OCA/report-print-send" src="https://img.shields.io/badge/github-OCA%2Freport--print--send-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/report-print-send-17-0/report-print-send-17-0-base_report_to_printer"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/report-print-send&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372
+ <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/report-print-send/tree/18.0/base_report_to_printer"><img alt="OCA/report-print-send" src="https://img.shields.io/badge/github-OCA%2Freport--print--send-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/report-print-send-18-0/report-print-send-18-0-base_report_to_printer"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/report-print-send&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373
373
  <p>This module allows users to send reports to a printer attached to the
374
374
  server.</p>
375
375
  <p>It adds an optional behaviour on reports to send it directly to a
@@ -409,7 +409,8 @@ preprinted paper such as payment slip.</p>
409
409
  <li><a class="reference internal" href="#credits" id="toc-entry-9">Credits</a><ul>
410
410
  <li><a class="reference internal" href="#authors" id="toc-entry-10">Authors</a></li>
411
411
  <li><a class="reference internal" href="#contributors" id="toc-entry-11">Contributors</a></li>
412
- <li><a class="reference internal" href="#maintainers" id="toc-entry-12">Maintainers</a></li>
412
+ <li><a class="reference internal" href="#other-credits" id="toc-entry-12">Other credits</a></li>
413
+ <li><a class="reference internal" href="#maintainers" id="toc-entry-13">Maintainers</a></li>
413
414
  </ul>
414
415
  </li>
415
416
  </ul>
@@ -454,9 +455,9 @@ Printers from CUPS</em></li>
454
455
  <li>To print a report on a specific printer or tray, you can change
455
456
  these in <em>Settings &gt; Printing &gt; Reports</em> to define default
456
457
  behaviour.</li>
457
- <li>To print a report on a specific printer and/or tray for a user,
458
- you can change these in <em>Settings &gt; Printing &gt; Reports</em> in
459
- <em>Specific actions per user</em></li>
458
+ <li>To print a report on a specific printer and/or tray for a user, you
459
+ can change these in <em>Settings &gt; Printing &gt; Reports</em> in <em>Specific
460
+ actions per user</em></li>
460
461
  <li>Users may also select a default action, printer or tray in their
461
462
  preferences.</li>
462
463
  </ul>
@@ -492,7 +493,7 @@ need to notify the bus or use web_notify for it.</li>
492
493
  <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/report-print-send/issues">GitHub Issues</a>.
493
494
  In case of trouble, please check there if your issue has already been reported.
494
495
  If you spotted it first, help us to smash it by providing a detailed and welcomed
495
- <a class="reference external" href="https://github.com/OCA/report-print-send/issues/new?body=module:%20base_report_to_printer%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
496
+ <a class="reference external" href="https://github.com/OCA/report-print-send/issues/new?body=module:%20base_report_to_printer%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
496
497
  <p>Do not contact contributors directly about support or help with technical issues.</p>
497
498
  </div>
498
499
  <div class="section" id="credits">
@@ -528,10 +529,16 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
528
529
  <li>Hughes Damry &lt;<a class="reference external" href="mailto:hughes.damry&#64;acsone.eu">hughes.damry&#64;acsone.eu</a>&gt;</li>
529
530
  <li>Akim Juillerat &lt;<a class="reference external" href="mailto:akim.juillerat&#64;camptocamp.com">akim.juillerat&#64;camptocamp.com</a>&gt;</li>
530
531
  <li>Jacques-Etienne Baudoux (BCIM) &lt;<a class="reference external" href="mailto:je&#64;bcim.be">je&#64;bcim.be</a>&gt;</li>
532
+ <li>Tris Doan &lt;<a class="reference external" href="mailto:tridm&#64;trobz.com">tridm&#64;trobz.com</a>&gt;</li>
531
533
  </ul>
532
534
  </div>
535
+ <div class="section" id="other-credits">
536
+ <h2><a class="toc-backref" href="#toc-entry-12">Other credits</a></h2>
537
+ <p>The migration of this module from 17.0 to 18.0 was financially supported
538
+ by Camptocamp.</p>
539
+ </div>
533
540
  <div class="section" id="maintainers">
534
- <h2><a class="toc-backref" href="#toc-entry-12">Maintainers</a></h2>
541
+ <h2><a class="toc-backref" href="#toc-entry-13">Maintainers</a></h2>
535
542
  <p>This module is maintained by the OCA.</p>
536
543
  <a class="reference external image-reference" href="https://odoo-community.org">
537
544
  <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -539,7 +546,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
539
546
  <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
540
547
  mission is to support the collaborative development of Odoo features and
541
548
  promote its widespread use.</p>
542
- <p>This module is part of the <a class="reference external" href="https://github.com/OCA/report-print-send/tree/17.0/base_report_to_printer">OCA/report-print-send</a> project on GitHub.</p>
549
+ <p>This module is part of the <a class="reference external" href="https://github.com/OCA/report-print-send/tree/18.0/base_report_to_printer">OCA/report-print-send</a> project on GitHub.</p>
543
550
  <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
544
551
  </div>
545
552
  </div>
@@ -1,6 +1,5 @@
1
- /** @odoo-module */
2
- import {_t} from "@web/core/l10n/translation";
3
1
  import {markup} from "@odoo/owl";
2
+ import {_t} from "@web/core/l10n/translation";
4
3
  import {registry} from "@web/core/registry";
5
4
 
6
5
  async function cupsReportActionHandler(action, options, env) {
@@ -52,6 +51,7 @@ async function cupsReportActionHandler(action, options, env) {
52
51
  title: `${terms.issue_on} ${print_action.printer_name}`,
53
52
  type: "warning",
54
53
  sticky: true,
54
+ messageIsHtml: true,
55
55
  buttons: [
56
56
  {
57
57
  name: _t("Print"),