From dc7e66c5642ae6ef57a3607f8834364c82dc88e5 Mon Sep 17 00:00:00 2001 From: Jacques-Etienne Baudoux Date: Wed, 21 Jun 2023 10:04:22 +0200 Subject: [PATCH 01/16] [ADD] printing_auto_stock_picking --- printing_auto_stock_picking/README.rst | 94 ++++ printing_auto_stock_picking/__init__.py | 1 + printing_auto_stock_picking/__manifest__.py | 21 + .../models/__init__.py | 2 + .../models/stock_picking.py | 19 + .../models/stock_picking_type.py | 13 + .../readme/CONFIGURE.rst | 1 + .../readme/CONTRIBUTORS.rst | 4 + .../readme/DESCRIPTION.rst | 2 + .../security/ir.model.access.csv | 3 + .../static/description/index.html | 435 ++++++++++++++++++ printing_auto_stock_picking/tests/__init__.py | 1 + .../tests/test_printing_auto_stock.py | 41 ++ .../views/stock_picking.xml | 32 ++ .../views/stock_picking_type.xml | 13 + 15 files changed, 682 insertions(+) create mode 100644 printing_auto_stock_picking/README.rst create mode 100644 printing_auto_stock_picking/__init__.py create mode 100644 printing_auto_stock_picking/__manifest__.py create mode 100644 printing_auto_stock_picking/models/__init__.py create mode 100644 printing_auto_stock_picking/models/stock_picking.py create mode 100644 printing_auto_stock_picking/models/stock_picking_type.py create mode 100644 printing_auto_stock_picking/readme/CONFIGURE.rst create mode 100644 printing_auto_stock_picking/readme/CONTRIBUTORS.rst create mode 100644 printing_auto_stock_picking/readme/DESCRIPTION.rst create mode 100644 printing_auto_stock_picking/security/ir.model.access.csv create mode 100644 printing_auto_stock_picking/static/description/index.html create mode 100644 printing_auto_stock_picking/tests/__init__.py create mode 100644 printing_auto_stock_picking/tests/test_printing_auto_stock.py create mode 100644 printing_auto_stock_picking/views/stock_picking.xml create mode 100644 printing_auto_stock_picking/views/stock_picking_type.xml diff --git a/printing_auto_stock_picking/README.rst b/printing_auto_stock_picking/README.rst new file mode 100644 index 000000000..214811de7 --- /dev/null +++ b/printing_auto_stock_picking/README.rst @@ -0,0 +1,94 @@ +=========================== +Printing Auto Stock Picking +=========================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:4710fc372fc2fd7f0e76ac7a85e80d0085d241012504943c41d828f44863809e + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github + :target: https://github.com/OCA/stock-logistics-reporting/tree/14.0/printing_auto_stock_picking + :alt: OCA/stock-logistics-reporting +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/stock-logistics-reporting-14-0/stock-logistics-reporting-14-0-printing_auto_stock_picking + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-reporting&target_branch=14.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +When a picking is done, automatically trigger the printing of some documents. +This can be used to print a delivery slip (report) or labels received from the carrier (attachment). + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +Go to the Operation Type and configure which report or attachment to print. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* BCIM +* MT Software + +Contributors +~~~~~~~~~~~~ + +* Jacques-Etienne Baudoux (BCIM) +* Michael Tietz (MT Software) +* Camptocamp +* Christopher Hansen + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +.. |maintainer-jbaudoux| image:: https://github.com/jbaudoux.png?size=40px + :target: https://github.com/jbaudoux + :alt: jbaudoux + +Current `maintainer `__: + +|maintainer-jbaudoux| + +This module is part of the `OCA/stock-logistics-reporting `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/printing_auto_stock_picking/__init__.py b/printing_auto_stock_picking/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/printing_auto_stock_picking/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/printing_auto_stock_picking/__manifest__.py b/printing_auto_stock_picking/__manifest__.py new file mode 100644 index 000000000..649d586aa --- /dev/null +++ b/printing_auto_stock_picking/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2022 Jacques-Etienne Baudoux (BCIM) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Printing Auto Stock Picking", + "author": "BCIM, MT Software, Odoo Community Association (OCA)", + "maintainers": ["jbaudoux"], + "category": "Warehouse Management", + "data": [ + "security/ir.model.access.csv", + "views/stock_picking.xml", + "views/stock_picking_type.xml", + ], + "depends": [ + "stock", + "printing_auto_base", + ], + "license": "AGPL-3", + "version": "14.0.1.0.0", + "website": "https://github.com/OCA/stock-logistics-reporting", +} diff --git a/printing_auto_stock_picking/models/__init__.py b/printing_auto_stock_picking/models/__init__.py new file mode 100644 index 000000000..dae0bb2ef --- /dev/null +++ b/printing_auto_stock_picking/models/__init__.py @@ -0,0 +1,2 @@ +from . import stock_picking +from . import stock_picking_type diff --git a/printing_auto_stock_picking/models/stock_picking.py b/printing_auto_stock_picking/models/stock_picking.py new file mode 100644 index 000000000..500e2b01d --- /dev/null +++ b/printing_auto_stock_picking/models/stock_picking.py @@ -0,0 +1,19 @@ +# Copyright 2022 Jacques-Etienne Baudoux (BCIM) +# Copyright 2022 Michael Tietz (MT Software) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class StockPicking(models.Model): + _name = "stock.picking" + _inherit = ["stock.picking", "printing.auto.mixin"] + + auto_printing_ids = fields.Many2many( + "printing.auto", related="picking_type_id.auto_printing_ids" + ) + + def _action_done(self): + result = super()._action_done() + self.handle_print_auto() + return result diff --git a/printing_auto_stock_picking/models/stock_picking_type.py b/printing_auto_stock_picking/models/stock_picking_type.py new file mode 100644 index 000000000..7ae139fce --- /dev/null +++ b/printing_auto_stock_picking/models/stock_picking_type.py @@ -0,0 +1,13 @@ +# Copyright 2022 Jacques-Etienne Baudoux (BCIM) +# Copyright 2022 Michael Tietz (MT Software) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class StockPickingType(models.Model): + _inherit = "stock.picking.type" + + auto_printing_ids = fields.Many2many( + "printing.auto", string="Auto Printing Configuration" + ) diff --git a/printing_auto_stock_picking/readme/CONFIGURE.rst b/printing_auto_stock_picking/readme/CONFIGURE.rst new file mode 100644 index 000000000..70d33136c --- /dev/null +++ b/printing_auto_stock_picking/readme/CONFIGURE.rst @@ -0,0 +1 @@ +Go to the Operation Type and configure which report or attachment to print. diff --git a/printing_auto_stock_picking/readme/CONTRIBUTORS.rst b/printing_auto_stock_picking/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..6a130e8ce --- /dev/null +++ b/printing_auto_stock_picking/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* Jacques-Etienne Baudoux (BCIM) +* Michael Tietz (MT Software) +* Camptocamp +* Christopher Hansen diff --git a/printing_auto_stock_picking/readme/DESCRIPTION.rst b/printing_auto_stock_picking/readme/DESCRIPTION.rst new file mode 100644 index 000000000..8190ccf51 --- /dev/null +++ b/printing_auto_stock_picking/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +When a picking is done, automatically trigger the printing of some documents. +This can be used to print a delivery slip (report) or labels received from the carrier (attachment). diff --git a/printing_auto_stock_picking/security/ir.model.access.csv b/printing_auto_stock_picking/security/ir.model.access.csv new file mode 100644 index 000000000..3d90734b9 --- /dev/null +++ b/printing_auto_stock_picking/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_manager,stock_picking_auto_print - manager,printing_auto_base.model_printing_auto,stock.group_stock_manager,1,1,1,1 +access_user,stock_picking_auto_print - user,printing_auto_base.model_printing_auto,stock.group_stock_user,1,0,0,0 diff --git a/printing_auto_stock_picking/static/description/index.html b/printing_auto_stock_picking/static/description/index.html new file mode 100644 index 000000000..e7f3f4a35 --- /dev/null +++ b/printing_auto_stock_picking/static/description/index.html @@ -0,0 +1,435 @@ + + + + + +Printing Auto Stock Picking + + + +
+

Printing Auto Stock Picking

+ + +

Beta License: AGPL-3 OCA/stock-logistics-reporting Translate me on Weblate Try me on Runboat

+

When a picking is done, automatically trigger the printing of some documents. +This can be used to print a delivery slip (report) or labels received from the carrier (attachment).

+

Table of contents

+ +
+

Configuration

+

Go to the Operation Type and configure which report or attachment to print.

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • BCIM
  • +
  • MT Software
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

Current maintainer:

+

jbaudoux

+

This module is part of the OCA/stock-logistics-reporting project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/printing_auto_stock_picking/tests/__init__.py b/printing_auto_stock_picking/tests/__init__.py new file mode 100644 index 000000000..1a2607686 --- /dev/null +++ b/printing_auto_stock_picking/tests/__init__.py @@ -0,0 +1 @@ +from . import test_printing_auto_stock diff --git a/printing_auto_stock_picking/tests/test_printing_auto_stock.py b/printing_auto_stock_picking/tests/test_printing_auto_stock.py new file mode 100644 index 000000000..90190196a --- /dev/null +++ b/printing_auto_stock_picking/tests/test_printing_auto_stock.py @@ -0,0 +1,41 @@ +# Copyright 2022 Jacques-Etienne Baudoux (BCIM) +# Copyright 2022 Michael Tietz (MT Software) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +import logging +from unittest import mock + +from odoo.addons.printing_auto_base.tests.common import ( + PrintingPrinter, + TestPrintingAutoCommon, + print_document, +) + + +def exception(*args, **kwargs): + return + + +@mock.patch.object(PrintingPrinter, "print_document", print_document) +@mock.patch.object(logging.Logger, "exception", exception) +class TestAutoPrinting(TestPrintingAutoCommon): + @classmethod + def setUpReportAndRecord(cls): + cls.report = cls.env.ref("stock.action_report_delivery") + cls.record = cls.env.ref("stock.outgoing_shipment_main_warehouse") + + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.printing_auto = cls._create_printing_auto_attachment() + cls._create_attachment(cls.record, cls.data, "1") + cls.record.picking_type_id.auto_printing_ids |= cls.printing_auto + + def test_action_done_printing_auto(self): + self.printing_auto.printer_id = self.printer_1 + self.record._action_done() + self.assertFalse(self.record.printing_auto_error) + + def test_action_done_printing_error(self): + self.record._action_done() + self.assertTrue(self.record.printing_auto_error) diff --git a/printing_auto_stock_picking/views/stock_picking.xml b/printing_auto_stock_picking/views/stock_picking.xml new file mode 100644 index 000000000..71ad6c7bd --- /dev/null +++ b/printing_auto_stock_picking/views/stock_picking.xml @@ -0,0 +1,32 @@ + + + + printing.auto.stock.picking + stock.picking + + + +
+ +
+ +
+
+ +
+
+
diff --git a/printing_auto_stock_picking/views/stock_picking_type.xml b/printing_auto_stock_picking/views/stock_picking_type.xml new file mode 100644 index 000000000..8c2e29932 --- /dev/null +++ b/printing_auto_stock_picking/views/stock_picking_type.xml @@ -0,0 +1,13 @@ + + + printing.auto.stock.picking + stock.picking.type + + + + + + + + + From 38641d2d7c8e5412b0d209b1e2f6a28b14fa3820 Mon Sep 17 00:00:00 2001 From: Michael Tietz Date: Fri, 14 Jul 2023 15:13:05 +0200 Subject: [PATCH 02/16] [IMP] printing_auto_stock_picking: log or raise Add test --- .../tests/test_printing_auto_stock.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/printing_auto_stock_picking/tests/test_printing_auto_stock.py b/printing_auto_stock_picking/tests/test_printing_auto_stock.py index 90190196a..325a1a58d 100644 --- a/printing_auto_stock_picking/tests/test_printing_auto_stock.py +++ b/printing_auto_stock_picking/tests/test_printing_auto_stock.py @@ -5,6 +5,8 @@ import logging from unittest import mock +from odoo.exceptions import UserError + from odoo.addons.printing_auto_base.tests.common import ( PrintingPrinter, TestPrintingAutoCommon, @@ -39,3 +41,8 @@ def test_action_done_printing_auto(self): def test_action_done_printing_error(self): self.record._action_done() self.assertTrue(self.record.printing_auto_error) + + def test_action_done_printing_error_raise(self): + self.printing_auto.action_on_error = "raise" + with self.assertRaises(UserError): + self.record._action_done() From fdc3180a2cdde1dea2c042be3acb5e48a8c41762 Mon Sep 17 00:00:00 2001 From: Jacques-Etienne Baudoux Date: Fri, 6 Dec 2024 12:24:25 +0100 Subject: [PATCH 03/16] [FIX] printing_auto_stock_picking: Add security rule --- printing_auto_stock_picking/__manifest__.py | 1 + .../models/stock_picking_type.py | 4 +++- .../security/ir_rule.xml | 13 ++++++++++++ .../tests/test_printing_auto_stock.py | 21 +++++++------------ .../views/stock_picking_type.xml | 5 ++++- 5 files changed, 29 insertions(+), 15 deletions(-) create mode 100644 printing_auto_stock_picking/security/ir_rule.xml diff --git a/printing_auto_stock_picking/__manifest__.py b/printing_auto_stock_picking/__manifest__.py index 649d586aa..484125cea 100644 --- a/printing_auto_stock_picking/__manifest__.py +++ b/printing_auto_stock_picking/__manifest__.py @@ -8,6 +8,7 @@ "category": "Warehouse Management", "data": [ "security/ir.model.access.csv", + "security/ir_rule.xml", "views/stock_picking.xml", "views/stock_picking_type.xml", ], diff --git a/printing_auto_stock_picking/models/stock_picking_type.py b/printing_auto_stock_picking/models/stock_picking_type.py index 7ae139fce..dbca36da7 100644 --- a/printing_auto_stock_picking/models/stock_picking_type.py +++ b/printing_auto_stock_picking/models/stock_picking_type.py @@ -9,5 +9,7 @@ class StockPickingType(models.Model): _inherit = "stock.picking.type" auto_printing_ids = fields.Many2many( - "printing.auto", string="Auto Printing Configuration" + "printing.auto", + string="Auto Printing Configuration", + domain=[("model", "=", "stock.picking.type")], ) diff --git a/printing_auto_stock_picking/security/ir_rule.xml b/printing_auto_stock_picking/security/ir_rule.xml new file mode 100644 index 000000000..3ceacbda3 --- /dev/null +++ b/printing_auto_stock_picking/security/ir_rule.xml @@ -0,0 +1,13 @@ + + + + stock picking auto print + + [("model", "=", "stock.picking.type")] + + + + + + + diff --git a/printing_auto_stock_picking/tests/test_printing_auto_stock.py b/printing_auto_stock_picking/tests/test_printing_auto_stock.py index 325a1a58d..a6f4f06a8 100644 --- a/printing_auto_stock_picking/tests/test_printing_auto_stock.py +++ b/printing_auto_stock_picking/tests/test_printing_auto_stock.py @@ -2,7 +2,6 @@ # Copyright 2022 Michael Tietz (MT Software) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -import logging from unittest import mock from odoo.exceptions import UserError @@ -14,31 +13,27 @@ ) -def exception(*args, **kwargs): - return - - @mock.patch.object(PrintingPrinter, "print_document", print_document) -@mock.patch.object(logging.Logger, "exception", exception) class TestAutoPrinting(TestPrintingAutoCommon): @classmethod def setUpReportAndRecord(cls): cls.report = cls.env.ref("stock.action_report_delivery") cls.record = cls.env.ref("stock.outgoing_shipment_main_warehouse") - @classmethod - def setUpClass(cls): - super().setUpClass() - cls.printing_auto = cls._create_printing_auto_attachment() - cls._create_attachment(cls.record, cls.data, "1") - cls.record.picking_type_id.auto_printing_ids |= cls.printing_auto + def setUp(self): + # Note: Using setUpClass, cls.record.picking_type_id.auto_printing_ids + # is reset on each test making them fail + super().setUp() + self.printing_auto = self._create_printing_auto_attachment() + self._create_attachment(self.record, self.data, "1") + self.record.picking_type_id.auto_printing_ids |= self.printing_auto def test_action_done_printing_auto(self): self.printing_auto.printer_id = self.printer_1 self.record._action_done() self.assertFalse(self.record.printing_auto_error) - def test_action_done_printing_error(self): + def test_action_done_printing_error_log(self): self.record._action_done() self.assertTrue(self.record.printing_auto_error) diff --git a/printing_auto_stock_picking/views/stock_picking_type.xml b/printing_auto_stock_picking/views/stock_picking_type.xml index 8c2e29932..f957549f3 100644 --- a/printing_auto_stock_picking/views/stock_picking_type.xml +++ b/printing_auto_stock_picking/views/stock_picking_type.xml @@ -6,7 +6,10 @@ - + From f02a02b51378a35eb1ad159ec36db76905d757d4 Mon Sep 17 00:00:00 2001 From: Jacques-Etienne Baudoux Date: Wed, 9 Jul 2025 15:02:52 +0200 Subject: [PATCH 04/16] printing_auto_stock_picking: change model Set model of what is printed, not where it is configured --- printing_auto_stock_picking/README.rst | 8 ++- printing_auto_stock_picking/__manifest__.py | 2 +- .../i18n/printing_auto_stock_picking.pot | 66 ++++++++++++++++++ .../models/stock_picking_type.py | 2 +- .../static/description/icon.png | Bin 0 -> 10254 bytes .../static/description/index.html | 28 +++++--- .../views/stock_picking_type.xml | 5 +- 7 files changed, 92 insertions(+), 19 deletions(-) create mode 100644 printing_auto_stock_picking/i18n/printing_auto_stock_picking.pot create mode 100644 printing_auto_stock_picking/static/description/icon.png diff --git a/printing_auto_stock_picking/README.rst b/printing_auto_stock_picking/README.rst index 214811de7..0f9ea0dd9 100644 --- a/printing_auto_stock_picking/README.rst +++ b/printing_auto_stock_picking/README.rst @@ -1,3 +1,7 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + =========================== Printing Auto Stock Picking =========================== @@ -7,13 +11,13 @@ Printing Auto Stock Picking !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:4710fc372fc2fd7f0e76ac7a85e80d0085d241012504943c41d828f44863809e + !! source digest: sha256:1e458ab70c09cbaf458c7ccdca061786723b39ba3323abb5cb05ddcb5f3c9d7a !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status :alt: Beta -.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png +.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github diff --git a/printing_auto_stock_picking/__manifest__.py b/printing_auto_stock_picking/__manifest__.py index 484125cea..ed93d8652 100644 --- a/printing_auto_stock_picking/__manifest__.py +++ b/printing_auto_stock_picking/__manifest__.py @@ -17,6 +17,6 @@ "printing_auto_base", ], "license": "AGPL-3", - "version": "14.0.1.0.0", + "version": "14.0.1.1.0", "website": "https://github.com/OCA/stock-logistics-reporting", } diff --git a/printing_auto_stock_picking/i18n/printing_auto_stock_picking.pot b/printing_auto_stock_picking/i18n/printing_auto_stock_picking.pot new file mode 100644 index 000000000..c40ec02fc --- /dev/null +++ b/printing_auto_stock_picking/i18n/printing_auto_stock_picking.pot @@ -0,0 +1,66 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * printing_auto_stock_picking +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: printing_auto_stock_picking +#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking__auto_printing_ids +#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking_type__auto_printing_ids +#: model_terms:ir.ui.view,arch_db:printing_auto_stock_picking.view_picking_type_form_inherit +msgid "Auto Printing Configuration" +msgstr "" + +#. module: printing_auto_stock_picking +#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking__display_name +#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking_type__display_name +msgid "Display Name" +msgstr "" + +#. module: printing_auto_stock_picking +#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking__id +#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking_type__id +msgid "ID" +msgstr "" + +#. module: printing_auto_stock_picking +#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking____last_update +#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking_type____last_update +msgid "Last Modified on" +msgstr "" + +#. module: printing_auto_stock_picking +#: model:ir.model,name:printing_auto_stock_picking.model_stock_picking_type +msgid "Picking Type" +msgstr "" + +#. module: printing_auto_stock_picking +#: model_terms:ir.ui.view,arch_db:printing_auto_stock_picking.view_picking_form +msgid "Print documents" +msgstr "" + +#. module: printing_auto_stock_picking +#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking__printing_auto_error +msgid "Printing error" +msgstr "" + +#. module: printing_auto_stock_picking +#: model:ir.model,name:printing_auto_stock_picking.model_stock_picking +msgid "Transfer" +msgstr "" + +#. module: printing_auto_stock_picking +#: model_terms:ir.ui.view,arch_db:printing_auto_stock_picking.view_picking_form +msgid "" +"Unable to print the documents: the CUPS server is maybe not available, or " +"printers are not configured properly. Error:" +msgstr "" diff --git a/printing_auto_stock_picking/models/stock_picking_type.py b/printing_auto_stock_picking/models/stock_picking_type.py index dbca36da7..3cb5fff4b 100644 --- a/printing_auto_stock_picking/models/stock_picking_type.py +++ b/printing_auto_stock_picking/models/stock_picking_type.py @@ -11,5 +11,5 @@ class StockPickingType(models.Model): auto_printing_ids = fields.Many2many( "printing.auto", string="Auto Printing Configuration", - domain=[("model", "=", "stock.picking.type")], + domain=[("model", "=", "stock.picking")], ) diff --git a/printing_auto_stock_picking/static/description/icon.png b/printing_auto_stock_picking/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..1dcc49c24f364e9adf0afbc6fc0bac6dbecdeb11 GIT binary patch literal 10254 zcmbt)WmufcvhH9Zc!C8B?l8#UE&&o;gF7=g3=D(IAOS+K1lK^25Zv7%L4sRw_uvvF z*qyAk?>c**=lnR&y+1yw{;I3Hy6Ua2{<d0kcR+VvBo; zA_X`>;1;xAPL9rQqFxd#f5{a^zW*uaW+r3+U{|fRunu`GZhy$X z8_|Zi{zd#vIokczl8Xh*4Wi@i0+C?Rg1AB5VOEg8B>buLFCi~r5DPd2ED7QP2>^LO zKpr7+?*I1bPaFSLLEa0l2$tj*;u8Qtc=&(RUc*VK@ zjIN{I--GfO@vl+&r^eqy_BZ3dndN_PDzMc*W^!?dIsWAWU@LBjBg6^f4F6*!-hUYh zY$Xb}gF8b0%S1Ac@c%Rs()UCiEu3v6SiFE>h_!{gBb-H2{e=wB5o!YkT0>#LKZFw$ z?CuD0Gvfsb(|XbVxx0AL0%`gG2X+6|f;jiTHU9shtjoW-{2!| zMN*WuOj6elhD4zqgjNpX>F#JP{)hAbenX<+FPr>7jXM&q{|x+pbj8cU<=>Ej zWE1_%qoFVzDAZB%g@v<+1ud%<#2E~ML11jOV5pUZoXktGmzB38%te^i-3o9i$lge>z>tBcK|P2K0H9w{l#|i%$~egM)Ys{q>p<9yaE*%v2cy1wXE{AXqG1_b znfyg@Fq*e@yC)^(@$R*j^E;skyEM6pmL$1ctg*mWiWM&q1{nj>E^)Odw$RPr zhjesSk}k}@-e_%uZTy0t_*TJD&6%*HV0KH>x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|@jl`+iF?<_D?4YqV0Zl)lO8YWC@1ZWW^mi{5ePQN<~FQ2NMG$|K{py5akJa zkezmqhN)>MGMp$7=sOo2(7ppv``dCIwf&MaQQis7S596kkiw8Do(jO?EY4iJ4Hec6 z4Hymzu`w)cI9Pbq6GPtTP)x&Lmk;FT=ZCB4>(5}c0?;2l`p&?>&<;2(P8a3lOTNP# zdEzF5qDpkRR&PZC&cS{7xD@qV;(g5X%xI?m$9Q -Printing Auto Stock Picking +README.rst -
-

Printing Auto Stock Picking

+
+ + +Odoo Community Association + +
+

Printing Auto Stock Picking

-

Beta License: AGPL-3 OCA/stock-logistics-reporting Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/stock-logistics-reporting Translate me on Weblate Try me on Runboat

When a picking is done, automatically trigger the printing of some documents. This can be used to print a delivery slip (report) or labels received from the carrier (attachment).

Table of contents

@@ -386,11 +391,11 @@

Printing Auto Stock Picking

-

Configuration

+

Configuration

Go to the Operation Type and configure which report or attachment to print.

-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed @@ -398,16 +403,16 @@

Bug Tracker

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • BCIM
  • MT Software
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -431,5 +436,6 @@

Maintainers

+
diff --git a/printing_auto_stock_picking/views/stock_picking_type.xml b/printing_auto_stock_picking/views/stock_picking_type.xml index f957549f3..ee0d4acc6 100644 --- a/printing_auto_stock_picking/views/stock_picking_type.xml +++ b/printing_auto_stock_picking/views/stock_picking_type.xml @@ -6,10 +6,7 @@ - + From 8b3da472c9ea00fcdf462c1329d41da362c1c82f Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Wed, 9 Jul 2025 23:29:08 +0200 Subject: [PATCH 05/16] [IMP] printing_auto_stock_picking: pre-commit auto fixes --- printing_auto_stock_picking/README.rst | 38 +++++++------- printing_auto_stock_picking/pyproject.toml | 3 ++ .../readme/{CONFIGURE.rst => CONFIGURE.md} | 3 +- .../readme/CONTRIBUTORS.md | 4 ++ .../readme/CONTRIBUTORS.rst | 4 -- .../readme/DESCRIPTION.md | 3 ++ .../readme/DESCRIPTION.rst | 2 - .../static/description/index.html | 49 ++++++++----------- .../views/stock_picking.xml | 28 +++++------ .../views/stock_picking_type.xml | 25 +++++----- 10 files changed, 78 insertions(+), 81 deletions(-) create mode 100644 printing_auto_stock_picking/pyproject.toml rename printing_auto_stock_picking/readme/{CONFIGURE.rst => CONFIGURE.md} (84%) create mode 100644 printing_auto_stock_picking/readme/CONTRIBUTORS.md delete mode 100644 printing_auto_stock_picking/readme/CONTRIBUTORS.rst create mode 100644 printing_auto_stock_picking/readme/DESCRIPTION.md delete mode 100644 printing_auto_stock_picking/readme/DESCRIPTION.rst diff --git a/printing_auto_stock_picking/README.rst b/printing_auto_stock_picking/README.rst index 0f9ea0dd9..0a0395d15 100644 --- a/printing_auto_stock_picking/README.rst +++ b/printing_auto_stock_picking/README.rst @@ -1,7 +1,3 @@ -.. image:: https://odoo-community.org/readme-banner-image - :target: https://odoo-community.org/get-involved?utm_source=readme - :alt: Odoo Community Association - =========================== Printing Auto Stock Picking =========================== @@ -17,23 +13,24 @@ Printing Auto Stock Picking .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status :alt: Beta -.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github - :target: https://github.com/OCA/stock-logistics-reporting/tree/14.0/printing_auto_stock_picking + :target: https://github.com/OCA/stock-logistics-reporting/tree/18.0/printing_auto_stock_picking :alt: OCA/stock-logistics-reporting .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/stock-logistics-reporting-14-0/stock-logistics-reporting-14-0-printing_auto_stock_picking + :target: https://translation.odoo-community.org/projects/stock-logistics-reporting-18-0/stock-logistics-reporting-18-0-printing_auto_stock_picking :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-reporting&target_branch=14.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-reporting&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -When a picking is done, automatically trigger the printing of some documents. -This can be used to print a delivery slip (report) or labels received from the carrier (attachment). +When a picking is done, automatically trigger the printing of some +documents. This can be used to print a delivery slip (report) or labels +received from the carrier (attachment). **Table of contents** @@ -43,7 +40,8 @@ This can be used to print a delivery slip (report) or labels received from the c Configuration ============= -Go to the Operation Type and configure which report or attachment to print. +Go to the Operation Type and configure which report or attachment to +print. Bug Tracker =========== @@ -51,7 +49,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -59,21 +57,21 @@ Credits ======= Authors -~~~~~~~ +------- * BCIM * MT Software Contributors -~~~~~~~~~~~~ +------------ -* Jacques-Etienne Baudoux (BCIM) -* Michael Tietz (MT Software) -* Camptocamp -* Christopher Hansen +- Jacques-Etienne Baudoux (BCIM) +- Michael Tietz (MT Software) +- Camptocamp +- Christopher Hansen Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -93,6 +91,6 @@ Current `maintainer `__: |maintainer-jbaudoux| -This module is part of the `OCA/stock-logistics-reporting `_ project on GitHub. +This module is part of the `OCA/stock-logistics-reporting `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/printing_auto_stock_picking/pyproject.toml b/printing_auto_stock_picking/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/printing_auto_stock_picking/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/printing_auto_stock_picking/readme/CONFIGURE.rst b/printing_auto_stock_picking/readme/CONFIGURE.md similarity index 84% rename from printing_auto_stock_picking/readme/CONFIGURE.rst rename to printing_auto_stock_picking/readme/CONFIGURE.md index 70d33136c..3153ccdb4 100644 --- a/printing_auto_stock_picking/readme/CONFIGURE.rst +++ b/printing_auto_stock_picking/readme/CONFIGURE.md @@ -1 +1,2 @@ -Go to the Operation Type and configure which report or attachment to print. +Go to the Operation Type and configure which report or attachment to +print. diff --git a/printing_auto_stock_picking/readme/CONTRIBUTORS.md b/printing_auto_stock_picking/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..e98f3cd2b --- /dev/null +++ b/printing_auto_stock_picking/readme/CONTRIBUTORS.md @@ -0,0 +1,4 @@ +- Jacques-Etienne Baudoux (BCIM) \<\> +- Michael Tietz (MT Software) \<\> +- Camptocamp +- Christopher Hansen \<\> diff --git a/printing_auto_stock_picking/readme/CONTRIBUTORS.rst b/printing_auto_stock_picking/readme/CONTRIBUTORS.rst deleted file mode 100644 index 6a130e8ce..000000000 --- a/printing_auto_stock_picking/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,4 +0,0 @@ -* Jacques-Etienne Baudoux (BCIM) -* Michael Tietz (MT Software) -* Camptocamp -* Christopher Hansen diff --git a/printing_auto_stock_picking/readme/DESCRIPTION.md b/printing_auto_stock_picking/readme/DESCRIPTION.md new file mode 100644 index 000000000..f0fcbff24 --- /dev/null +++ b/printing_auto_stock_picking/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +When a picking is done, automatically trigger the printing of some +documents. This can be used to print a delivery slip (report) or labels +received from the carrier (attachment). diff --git a/printing_auto_stock_picking/readme/DESCRIPTION.rst b/printing_auto_stock_picking/readme/DESCRIPTION.rst deleted file mode 100644 index 8190ccf51..000000000 --- a/printing_auto_stock_picking/readme/DESCRIPTION.rst +++ /dev/null @@ -1,2 +0,0 @@ -When a picking is done, automatically trigger the printing of some documents. -This can be used to print a delivery slip (report) or labels received from the carrier (attachment). diff --git a/printing_auto_stock_picking/static/description/index.html b/printing_auto_stock_picking/static/description/index.html index 461d3d0a7..30ffcc002 100644 --- a/printing_auto_stock_picking/static/description/index.html +++ b/printing_auto_stock_picking/static/description/index.html @@ -3,16 +3,15 @@ -README.rst +Printing Auto Stock Picking -
+
+

Printing Auto Stock Picking

- - -Odoo Community Association - -
-

Printing Auto Stock Picking

-

Beta License: AGPL-3 OCA/stock-logistics-reporting Translate me on Weblate Try me on Runboat

-

When a picking is done, automatically trigger the printing of some documents. -This can be used to print a delivery slip (report) or labels received from the carrier (attachment).

+

Beta License: AGPL-3 OCA/stock-logistics-reporting Translate me on Weblate Try me on Runboat

+

When a picking is done, automatically trigger the printing of some +documents. This can be used to print a delivery slip (report) or labels +received from the carrier (attachment).

Table of contents

    @@ -391,28 +386,29 @@

    Printing Auto Stock Picking

-

Configuration

-

Go to the Operation Type and configure which report or attachment to print.

+

Configuration

+

Go to the Operation Type and configure which report or attachment to +print.

-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • BCIM
  • MT Software
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

- -Odoo Community Association - +Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

jbaudoux

-

This module is part of the OCA/stock-logistics-reporting project on GitHub.

+

This module is part of the OCA/stock-logistics-reporting project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

-
diff --git a/printing_auto_stock_picking/views/stock_picking.xml b/printing_auto_stock_picking/views/stock_picking.xml index 71ad6c7bd..2278f1c11 100644 --- a/printing_auto_stock_picking/views/stock_picking.xml +++ b/printing_auto_stock_picking/views/stock_picking.xml @@ -1,13 +1,12 @@ - - printing.auto.stock.picking - stock.picking - - - -
-
+ printing.auto.stock.picking + stock.picking + + +
+ -
+
-
-
- -
-
+ + +
diff --git a/printing_auto_stock_picking/views/stock_picking_type.xml b/printing_auto_stock_picking/views/stock_picking_type.xml index ee0d4acc6..d57ab9169 100644 --- a/printing_auto_stock_picking/views/stock_picking_type.xml +++ b/printing_auto_stock_picking/views/stock_picking_type.xml @@ -1,13 +1,16 @@ - - printing.auto.stock.picking - stock.picking.type - - - - - - - - + + printing.auto.stock.picking + stock.picking.type + + + + + + + + From 67eb8526886be6638bba68ddd984a12423762851 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Wed, 9 Jul 2025 23:39:32 +0200 Subject: [PATCH 06/16] [MIG] printing_auto_stock_picking: Migration to 18.0 --- printing_auto_stock_picking/__manifest__.py | 2 +- .../tests/test_printing_auto_stock.py | 13 ++++++------- printing_auto_stock_picking/views/stock_picking.xml | 4 ++-- .../views/stock_picking_type.xml | 4 ++-- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/printing_auto_stock_picking/__manifest__.py b/printing_auto_stock_picking/__manifest__.py index ed93d8652..d89a5f8ab 100644 --- a/printing_auto_stock_picking/__manifest__.py +++ b/printing_auto_stock_picking/__manifest__.py @@ -17,6 +17,6 @@ "printing_auto_base", ], "license": "AGPL-3", - "version": "14.0.1.1.0", + "version": "18.0.1.0.0", "website": "https://github.com/OCA/stock-logistics-reporting", } diff --git a/printing_auto_stock_picking/tests/test_printing_auto_stock.py b/printing_auto_stock_picking/tests/test_printing_auto_stock.py index a6f4f06a8..4525f720f 100644 --- a/printing_auto_stock_picking/tests/test_printing_auto_stock.py +++ b/printing_auto_stock_picking/tests/test_printing_auto_stock.py @@ -2,22 +2,20 @@ # Copyright 2022 Michael Tietz (MT Software) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from unittest import mock - from odoo.exceptions import UserError +from odoo.tools import mute_logger from odoo.addons.printing_auto_base.tests.common import ( - PrintingPrinter, TestPrintingAutoCommon, - print_document, + patch_print_document, ) -@mock.patch.object(PrintingPrinter, "print_document", print_document) +@patch_print_document() class TestAutoPrinting(TestPrintingAutoCommon): @classmethod def setUpReportAndRecord(cls): - cls.report = cls.env.ref("stock.action_report_delivery") + cls.report_ref = "stock.action_report_delivery" cls.record = cls.env.ref("stock.outgoing_shipment_main_warehouse") def setUp(self): @@ -34,7 +32,8 @@ def test_action_done_printing_auto(self): self.assertFalse(self.record.printing_auto_error) def test_action_done_printing_error_log(self): - self.record._action_done() + with mute_logger("odoo.addons.printing_auto_base.models.printing_auto_mixin"): + self.record._action_done() self.assertTrue(self.record.printing_auto_error) def test_action_done_printing_error_raise(self): diff --git a/printing_auto_stock_picking/views/stock_picking.xml b/printing_auto_stock_picking/views/stock_picking.xml index 2278f1c11..7aeaebcf7 100644 --- a/printing_auto_stock_picking/views/stock_picking.xml +++ b/printing_auto_stock_picking/views/stock_picking.xml @@ -10,7 +10,7 @@ class="alert alert-warning" role="alert" style="margin-bottom:0px;" - attrs="{'invisible': [('printing_auto_error', '=', False)]}" + invisible="not printing_auto_error" > Unable to print the documents: the CUPS server is maybe not available, or printers are not configured properly. Error: @@ -22,7 +22,7 @@ name="handle_print_auto" type="object" string="Print documents" - states="done" + invisible="state != 'done'" /> diff --git a/printing_auto_stock_picking/views/stock_picking_type.xml b/printing_auto_stock_picking/views/stock_picking_type.xml index d57ab9169..37475941c 100644 --- a/printing_auto_stock_picking/views/stock_picking_type.xml +++ b/printing_auto_stock_picking/views/stock_picking_type.xml @@ -4,13 +4,13 @@ stock.picking.type - + - + From 5047b881b4c6226a7e344f3d192cc9de1ff08efb Mon Sep 17 00:00:00 2001 From: oca-ci Date: Wed, 16 Jul 2025 16:17:42 +0000 Subject: [PATCH 07/16] [UPD] Update printing_auto_stock_picking.pot --- .../i18n/printing_auto_stock_picking.pot | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/printing_auto_stock_picking/i18n/printing_auto_stock_picking.pot b/printing_auto_stock_picking/i18n/printing_auto_stock_picking.pot index c40ec02fc..f2df52fde 100644 --- a/printing_auto_stock_picking/i18n/printing_auto_stock_picking.pot +++ b/printing_auto_stock_picking/i18n/printing_auto_stock_picking.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 18.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -20,24 +20,6 @@ msgstr "" msgid "Auto Printing Configuration" msgstr "" -#. module: printing_auto_stock_picking -#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking__display_name -#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking_type__display_name -msgid "Display Name" -msgstr "" - -#. module: printing_auto_stock_picking -#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking__id -#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking_type__id -msgid "ID" -msgstr "" - -#. module: printing_auto_stock_picking -#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking____last_update -#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking_type____last_update -msgid "Last Modified on" -msgstr "" - #. module: printing_auto_stock_picking #: model:ir.model,name:printing_auto_stock_picking.model_stock_picking_type msgid "Picking Type" From 3ff721477d7504e666ece8da93a8d1c4736b1b02 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 16 Jul 2025 16:20:35 +0000 Subject: [PATCH 08/16] [BOT] post-merge updates --- printing_auto_stock_picking/README.rst | 8 +++- .../static/description/index.html | 39 ++++++++++++------- 2 files changed, 30 insertions(+), 17 deletions(-) diff --git a/printing_auto_stock_picking/README.rst b/printing_auto_stock_picking/README.rst index 0a0395d15..3632561d8 100644 --- a/printing_auto_stock_picking/README.rst +++ b/printing_auto_stock_picking/README.rst @@ -1,3 +1,7 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + =========================== Printing Auto Stock Picking =========================== @@ -7,13 +11,13 @@ Printing Auto Stock Picking !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:1e458ab70c09cbaf458c7ccdca061786723b39ba3323abb5cb05ddcb5f3c9d7a + !! source digest: sha256:0874774005e1ed04b9c2b99ef866029f588be05f23600152d282cfd37449c6d4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status :alt: Beta -.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png +.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github diff --git a/printing_auto_stock_picking/static/description/index.html b/printing_auto_stock_picking/static/description/index.html index 30ffcc002..c189cdb26 100644 --- a/printing_auto_stock_picking/static/description/index.html +++ b/printing_auto_stock_picking/static/description/index.html @@ -3,15 +3,16 @@ -Printing Auto Stock Picking +README.rst -
-

Printing Auto Stock Picking

+
+ + +Odoo Community Association + +
+

Printing Auto Stock Picking

-

Beta License: AGPL-3 OCA/stock-logistics-reporting Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/stock-logistics-reporting Translate me on Weblate Try me on Runboat

When a picking is done, automatically trigger the printing of some documents. This can be used to print a delivery slip (report) or labels received from the carrier (attachment).

@@ -386,12 +392,12 @@

Printing Auto Stock Picking

-

Configuration

+

Configuration

Go to the Operation Type and configure which report or attachment to print.

-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed @@ -399,16 +405,16 @@

Bug Tracker

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • BCIM
  • MT Software
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

@@ -430,5 +438,6 @@

Maintainers

+
From 8d1f25ec659e2df079c41f3d0471303e72d9d42d Mon Sep 17 00:00:00 2001 From: mymage Date: Thu, 17 Jul 2025 08:07:00 +0000 Subject: [PATCH 09/16] Added translation using Weblate (Italian) --- printing_auto_stock_picking/i18n/it.po | 49 ++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 printing_auto_stock_picking/i18n/it.po diff --git a/printing_auto_stock_picking/i18n/it.po b/printing_auto_stock_picking/i18n/it.po new file mode 100644 index 000000000..1f8241d19 --- /dev/null +++ b/printing_auto_stock_picking/i18n/it.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * printing_auto_stock_picking +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. module: printing_auto_stock_picking +#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking__auto_printing_ids +#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking_type__auto_printing_ids +#: model_terms:ir.ui.view,arch_db:printing_auto_stock_picking.view_picking_type_form_inherit +msgid "Auto Printing Configuration" +msgstr "" + +#. module: printing_auto_stock_picking +#: model:ir.model,name:printing_auto_stock_picking.model_stock_picking_type +msgid "Picking Type" +msgstr "" + +#. module: printing_auto_stock_picking +#: model_terms:ir.ui.view,arch_db:printing_auto_stock_picking.view_picking_form +msgid "Print documents" +msgstr "" + +#. module: printing_auto_stock_picking +#: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking__printing_auto_error +msgid "Printing error" +msgstr "" + +#. module: printing_auto_stock_picking +#: model:ir.model,name:printing_auto_stock_picking.model_stock_picking +msgid "Transfer" +msgstr "" + +#. module: printing_auto_stock_picking +#: model_terms:ir.ui.view,arch_db:printing_auto_stock_picking.view_picking_form +msgid "" +"Unable to print the documents: the CUPS server is maybe not available, or " +"printers are not configured properly. Error:" +msgstr "" From 1e068bbb7a9201d057578ae79ac42093bda99c45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Todorovich?= Date: Wed, 23 Jul 2025 08:35:07 -0300 Subject: [PATCH 10/16] [FIX] printing_auto_stock_picking: ir rule a5ce681d added the ir.rule and domains. However, the model used was wrong. Instead of targeting printing.auto with `stock.picking` as model, it targeted `stock.picking.type`. That was partially fixed by a5ce681d, but this `ir.rule` was missing. --- printing_auto_stock_picking/security/ir_rule.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printing_auto_stock_picking/security/ir_rule.xml b/printing_auto_stock_picking/security/ir_rule.xml index 3ceacbda3..df2d5722d 100644 --- a/printing_auto_stock_picking/security/ir_rule.xml +++ b/printing_auto_stock_picking/security/ir_rule.xml @@ -3,7 +3,7 @@ stock picking auto print - [("model", "=", "stock.picking.type")] + [("model", "=", "stock.picking")] From 5e04b0ba5537d7bd99aee316efe220fb75e9fb16 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 25 Jul 2025 06:48:59 +0000 Subject: [PATCH 11/16] [BOT] post-merge updates --- printing_auto_stock_picking/README.rst | 2 +- printing_auto_stock_picking/__manifest__.py | 2 +- printing_auto_stock_picking/static/description/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/printing_auto_stock_picking/README.rst b/printing_auto_stock_picking/README.rst index 3632561d8..492d1d55c 100644 --- a/printing_auto_stock_picking/README.rst +++ b/printing_auto_stock_picking/README.rst @@ -11,7 +11,7 @@ Printing Auto Stock Picking !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:0874774005e1ed04b9c2b99ef866029f588be05f23600152d282cfd37449c6d4 + !! source digest: sha256:99784f2988fb3cf7e5a7bf3e45e424e4c85724631482942e0f1075e67f5cae33 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/printing_auto_stock_picking/__manifest__.py b/printing_auto_stock_picking/__manifest__.py index d89a5f8ab..d22873e6e 100644 --- a/printing_auto_stock_picking/__manifest__.py +++ b/printing_auto_stock_picking/__manifest__.py @@ -17,6 +17,6 @@ "printing_auto_base", ], "license": "AGPL-3", - "version": "18.0.1.0.0", + "version": "18.0.1.0.1", "website": "https://github.com/OCA/stock-logistics-reporting", } diff --git a/printing_auto_stock_picking/static/description/index.html b/printing_auto_stock_picking/static/description/index.html index c189cdb26..f5c9f98c9 100644 --- a/printing_auto_stock_picking/static/description/index.html +++ b/printing_auto_stock_picking/static/description/index.html @@ -372,7 +372,7 @@

Printing Auto Stock Picking

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:0874774005e1ed04b9c2b99ef866029f588be05f23600152d282cfd37449c6d4 +!! source digest: sha256:99784f2988fb3cf7e5a7bf3e45e424e4c85724631482942e0f1075e67f5cae33 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/stock-logistics-reporting Translate me on Weblate Try me on Runboat

When a picking is done, automatically trigger the printing of some From cfeedabb55c77d9908e28b6fdc903d1eaa4249e7 Mon Sep 17 00:00:00 2001 From: mymage Date: Mon, 28 Jul 2025 06:52:24 +0000 Subject: [PATCH 12/16] Translated using Weblate (Italian) Currently translated at 100.0% (6 of 6 strings) Translation: stock-logistics-reporting-18.0/stock-logistics-reporting-18.0-printing_auto_stock_picking Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-reporting-18-0/stock-logistics-reporting-18-0-printing_auto_stock_picking/it/ --- printing_auto_stock_picking/i18n/it.po | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/printing_auto_stock_picking/i18n/it.po b/printing_auto_stock_picking/i18n/it.po index 1f8241d19..5f5e4f6b0 100644 --- a/printing_auto_stock_picking/i18n/it.po +++ b/printing_auto_stock_picking/i18n/it.po @@ -6,40 +6,42 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 18.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2025-07-28 09:25+0000\n" +"Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 5.10.4\n" #. module: printing_auto_stock_picking #: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking__auto_printing_ids #: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking_type__auto_printing_ids #: model_terms:ir.ui.view,arch_db:printing_auto_stock_picking.view_picking_type_form_inherit msgid "Auto Printing Configuration" -msgstr "" +msgstr "Configurazione stampa automatica" #. module: printing_auto_stock_picking #: model:ir.model,name:printing_auto_stock_picking.model_stock_picking_type msgid "Picking Type" -msgstr "" +msgstr "Tipo prelievo" #. module: printing_auto_stock_picking #: model_terms:ir.ui.view,arch_db:printing_auto_stock_picking.view_picking_form msgid "Print documents" -msgstr "" +msgstr "Stampa documenti" #. module: printing_auto_stock_picking #: model:ir.model.fields,field_description:printing_auto_stock_picking.field_stock_picking__printing_auto_error msgid "Printing error" -msgstr "" +msgstr "Errore di stampa" #. module: printing_auto_stock_picking #: model:ir.model,name:printing_auto_stock_picking.model_stock_picking msgid "Transfer" -msgstr "" +msgstr "Trasferimento" #. module: printing_auto_stock_picking #: model_terms:ir.ui.view,arch_db:printing_auto_stock_picking.view_picking_form @@ -47,3 +49,5 @@ msgid "" "Unable to print the documents: the CUPS server is maybe not available, or " "printers are not configured properly. Error:" msgstr "" +"Impossibile stampare i documenti: il server CUPS non รจ disponibile o o le " +"stampanti non sono configurate correttamente. Errore:" From ca4c97e501ec3b4674e236068ded3351f08ce82e Mon Sep 17 00:00:00 2001 From: Jacques-Etienne Baudoux Date: Thu, 30 Oct 2025 10:18:58 +0100 Subject: [PATCH 13/16] [FIX] printing_auto_stock_picking: domain Allow other models to be configured on a picking type --- printing_auto_stock_picking/models/stock_picking_type.py | 1 - printing_auto_stock_picking/views/stock_picking_type.xml | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/printing_auto_stock_picking/models/stock_picking_type.py b/printing_auto_stock_picking/models/stock_picking_type.py index 3cb5fff4b..d58664d24 100644 --- a/printing_auto_stock_picking/models/stock_picking_type.py +++ b/printing_auto_stock_picking/models/stock_picking_type.py @@ -11,5 +11,4 @@ class StockPickingType(models.Model): auto_printing_ids = fields.Many2many( "printing.auto", string="Auto Printing Configuration", - domain=[("model", "=", "stock.picking")], ) diff --git a/printing_auto_stock_picking/views/stock_picking_type.xml b/printing_auto_stock_picking/views/stock_picking_type.xml index 37475941c..4e456405e 100644 --- a/printing_auto_stock_picking/views/stock_picking_type.xml +++ b/printing_auto_stock_picking/views/stock_picking_type.xml @@ -8,6 +8,7 @@ From b98e17db9f8b0f90af094ac9c7bdfa41542d0215 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 26 Nov 2025 09:22:00 +0000 Subject: [PATCH 14/16] [BOT] post-merge updates --- printing_auto_stock_picking/README.rst | 2 +- printing_auto_stock_picking/__manifest__.py | 2 +- printing_auto_stock_picking/static/description/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/printing_auto_stock_picking/README.rst b/printing_auto_stock_picking/README.rst index 492d1d55c..616250205 100644 --- a/printing_auto_stock_picking/README.rst +++ b/printing_auto_stock_picking/README.rst @@ -11,7 +11,7 @@ Printing Auto Stock Picking !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:99784f2988fb3cf7e5a7bf3e45e424e4c85724631482942e0f1075e67f5cae33 + !! source digest: sha256:595d25b00b70a3eef28d0dab8e1143977b75e1cd8642f7db586375c45a236a7e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/printing_auto_stock_picking/__manifest__.py b/printing_auto_stock_picking/__manifest__.py index d22873e6e..4eaaf5856 100644 --- a/printing_auto_stock_picking/__manifest__.py +++ b/printing_auto_stock_picking/__manifest__.py @@ -17,6 +17,6 @@ "printing_auto_base", ], "license": "AGPL-3", - "version": "18.0.1.0.1", + "version": "18.0.1.1.0", "website": "https://github.com/OCA/stock-logistics-reporting", } diff --git a/printing_auto_stock_picking/static/description/index.html b/printing_auto_stock_picking/static/description/index.html index f5c9f98c9..4b2c49f78 100644 --- a/printing_auto_stock_picking/static/description/index.html +++ b/printing_auto_stock_picking/static/description/index.html @@ -372,7 +372,7 @@

Printing Auto Stock Picking

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:99784f2988fb3cf7e5a7bf3e45e424e4c85724631482942e0f1075e67f5cae33 +!! source digest: sha256:595d25b00b70a3eef28d0dab8e1143977b75e1cd8642f7db586375c45a236a7e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/stock-logistics-reporting Translate me on Weblate Try me on Runboat

When a picking is done, automatically trigger the printing of some From 180a3edc6bc420da2f0ff23aa1b918a90721421a Mon Sep 17 00:00:00 2001 From: JordiMForgeFlow Date: Mon, 29 Dec 2025 08:52:12 +0100 Subject: [PATCH 15/16] [MIG] printing_auto_stock_picking: migration to V19 --- printing_auto_stock_picking/README.rst | 10 +++---- printing_auto_stock_picking/__manifest__.py | 2 +- .../static/description/index.html | 6 ++-- .../tests/test_printing_auto_stock.py | 28 ++++++++++++++++++- 4 files changed, 36 insertions(+), 10 deletions(-) diff --git a/printing_auto_stock_picking/README.rst b/printing_auto_stock_picking/README.rst index 616250205..a7d960d99 100644 --- a/printing_auto_stock_picking/README.rst +++ b/printing_auto_stock_picking/README.rst @@ -21,13 +21,13 @@ Printing Auto Stock Picking :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github - :target: https://github.com/OCA/stock-logistics-reporting/tree/18.0/printing_auto_stock_picking + :target: https://github.com/OCA/stock-logistics-reporting/tree/19.0/printing_auto_stock_picking :alt: OCA/stock-logistics-reporting .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/stock-logistics-reporting-18-0/stock-logistics-reporting-18-0-printing_auto_stock_picking + :target: https://translation.odoo-community.org/projects/stock-logistics-reporting-19-0/stock-logistics-reporting-19-0-printing_auto_stock_picking :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-reporting&target_branch=18.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-reporting&target_branch=19.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -53,7 +53,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -95,6 +95,6 @@ Current `maintainer `__: |maintainer-jbaudoux| -This module is part of the `OCA/stock-logistics-reporting `_ project on GitHub. +This module is part of the `OCA/stock-logistics-reporting `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/printing_auto_stock_picking/__manifest__.py b/printing_auto_stock_picking/__manifest__.py index 4eaaf5856..c6d4b197d 100644 --- a/printing_auto_stock_picking/__manifest__.py +++ b/printing_auto_stock_picking/__manifest__.py @@ -17,6 +17,6 @@ "printing_auto_base", ], "license": "AGPL-3", - "version": "18.0.1.1.0", + "version": "19.0.1.0.0", "website": "https://github.com/OCA/stock-logistics-reporting", } diff --git a/printing_auto_stock_picking/static/description/index.html b/printing_auto_stock_picking/static/description/index.html index 4b2c49f78..677b30041 100644 --- a/printing_auto_stock_picking/static/description/index.html +++ b/printing_auto_stock_picking/static/description/index.html @@ -374,7 +374,7 @@

Printing Auto Stock Picking

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:595d25b00b70a3eef28d0dab8e1143977b75e1cd8642f7db586375c45a236a7e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/stock-logistics-reporting Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/stock-logistics-reporting Translate me on Weblate Try me on Runboat

When a picking is done, automatically trigger the printing of some documents. This can be used to print a delivery slip (report) or labels received from the carrier (attachment).

@@ -401,7 +401,7 @@

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -433,7 +433,7 @@

Maintainers

promote its widespread use.

Current maintainer:

jbaudoux

-

This module is part of the OCA/stock-logistics-reporting project on GitHub.

+

This module is part of the OCA/stock-logistics-reporting project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/printing_auto_stock_picking/tests/test_printing_auto_stock.py b/printing_auto_stock_picking/tests/test_printing_auto_stock.py index 4525f720f..4f4a95dfa 100644 --- a/printing_auto_stock_picking/tests/test_printing_auto_stock.py +++ b/printing_auto_stock_picking/tests/test_printing_auto_stock.py @@ -16,7 +16,33 @@ class TestAutoPrinting(TestPrintingAutoCommon): @classmethod def setUpReportAndRecord(cls): cls.report_ref = "stock.action_report_delivery" - cls.record = cls.env.ref("stock.outgoing_shipment_main_warehouse") + partner = cls.env["res.partner"].create({"name": "Test partner"}) + product = cls.env["product.product"].create( + {"name": "Test product", "type": "consu"} + ) + cls.record = cls.env["stock.picking"].create( + { + "partner_id": partner.id, + "picking_type_id": cls.env.ref("stock.picking_type_out").id, + "location_id": cls.env.ref("stock.stock_location_stock").id, + "location_dest_id": cls.env.ref("stock.stock_location_customers").id, + "move_ids": [ + ( + 0, + 0, + { + "product_id": product.id, + "product_uom": product.uom_id.id, + "product_uom_qty": 15.0, + "location_id": cls.env.ref("stock.stock_location_stock").id, + "location_dest_id": cls.env.ref( + "stock.stock_location_customers" + ).id, + }, + ) + ], + } + ) def setUp(self): # Note: Using setUpClass, cls.record.picking_type_id.auto_printing_ids From 4e6aea0bad397c632f5a79847c8868febee44332 Mon Sep 17 00:00:00 2001 From: JordiMForgeFlow Date: Mon, 29 Dec 2025 09:50:32 +0100 Subject: [PATCH 16/16] [TMP] test-requirements --- test-requirements.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test-requirements.txt diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 000000000..52b89bab2 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,3 @@ +odoo-addon-base_report_to_printer @ git+https://github.com/OCA/report-print-send.git@refs/pull/436/head#subdirectory=base_report_to_printer +odoo-addon-base_report_to_printer_cups @ git+https://github.com/OCA/report-print-send.git@refs/pull/436/head#subdirectory=base_report_to_printer_cups +odoo-addon-printing_auto_base @ git+https://github.com/OCA/report-print-send.git@refs/pull/437/head#subdirectory=printing_auto_base