From 9a27669b6c5379df744ab6fd03e2fa4191996b25 Mon Sep 17 00:00:00 2001 From: Robin Keunen Date: Fri, 24 Jun 2022 13:29:22 +0200 Subject: [PATCH 01/12] [ADD] stock_picking_responsible: split from beesdoo_inventory --- beesdoo_inventory/__manifest__.py | 7 +- beesdoo_inventory/models/stock.py | 44 -- beesdoo_inventory/readme/DESCRIPTION.rst | 2 +- beesdoo_inventory/views/stock.xml | 13 - .../odoo/addons/stock_picking_responsible | 1 + setup/stock_picking_responsible/setup.py | 6 + stock_picking_responsible/README.rst | 69 +++ stock_picking_responsible/__init__.py | 1 + stock_picking_responsible/__manifest__.py | 16 + stock_picking_responsible/models/__init__.py | 1 + .../models/stock_picking.py | 53 +++ .../readme/CONTRIBUTORS.rst | 11 + .../readme/DESCRIPTION.rst | 2 + .../static/description/index.html | 427 ++++++++++++++++++ .../views/stock_picking.xml | 24 + 15 files changed, 618 insertions(+), 59 deletions(-) create mode 120000 setup/stock_picking_responsible/odoo/addons/stock_picking_responsible create mode 100644 setup/stock_picking_responsible/setup.py create mode 100644 stock_picking_responsible/README.rst create mode 100644 stock_picking_responsible/__init__.py create mode 100644 stock_picking_responsible/__manifest__.py create mode 100644 stock_picking_responsible/models/__init__.py create mode 100644 stock_picking_responsible/models/stock_picking.py create mode 100644 stock_picking_responsible/readme/CONTRIBUTORS.rst create mode 100644 stock_picking_responsible/readme/DESCRIPTION.rst create mode 100644 stock_picking_responsible/static/description/index.html create mode 100644 stock_picking_responsible/views/stock_picking.xml diff --git a/beesdoo_inventory/__manifest__.py b/beesdoo_inventory/__manifest__.py index 0bdb9ec2b..713aac702 100644 --- a/beesdoo_inventory/__manifest__.py +++ b/beesdoo_inventory/__manifest__.py @@ -13,7 +13,12 @@ "website": "https://github.com/beescoop/Obeesdoo", "category": "Inventory", "version": "12.0.1.0.1", - "depends": ["delivery", "beesdoo_base", "beesdoo_product"], + "depends": [ + "delivery", + "beesdoo_base", + "beesdoo_product", + "stock_picking_responsible", + ], "data": ["views/stock.xml"], "installable": True, "license": "AGPL-3", diff --git a/beesdoo_inventory/models/stock.py b/beesdoo_inventory/models/stock.py index ec26594a9..372da5ac3 100644 --- a/beesdoo_inventory/models/stock.py +++ b/beesdoo_inventory/models/stock.py @@ -5,50 +5,6 @@ class StockPicking(models.Model): _inherit = "stock.picking" max_shipping_date = fields.Datetime("End Shipping Date") - responsible = fields.Many2one( - "res.partner", - string="Responsible", - default=lambda self: self.env.user.partner_id.id, - ) - - @api.multi - def _add_follower(self): - for picking in self: - if picking.responsible: - types = self.env["mail.message.subtype"].search( - [ - "|", - ("res_model", "=", "stock.picking"), - ("name", "=", "Discussions"), - ] - ) - if not self.env["mail.followers"].search( - [ - ("res_id", "=", picking.id), - ("res_model", "=", "stock.picking"), - ("partner_id", "=", picking.responsible.id), - ] - ): - self.env["mail.followers"].create( - { - "res_model": "stock.picking", - "res_id": picking.id, - "partner_id": picking.responsible.id, - "subtype_ids": [(6, 0, types.ids)], - } - ) - - @api.multi - def write(self, values): - res = super(StockPicking, self).write(values) - self._add_follower() - return res - - @api.model - def create(self, values): - picking = super(StockPicking, self).create(values) - picking._add_follower() - return picking @api.multi def copy_qty(self): diff --git a/beesdoo_inventory/readme/DESCRIPTION.rst b/beesdoo_inventory/readme/DESCRIPTION.rst index 9cd53971c..838590e9c 100644 --- a/beesdoo_inventory/readme/DESCRIPTION.rst +++ b/beesdoo_inventory/readme/DESCRIPTION.rst @@ -1 +1 @@ -Adds a responsible, a max shipping date and a button to copy quantity to stock pickings. +Adds a max shipping date and a button to copy quantity to stock pickings. diff --git a/beesdoo_inventory/views/stock.xml b/beesdoo_inventory/views/stock.xml index 1cee9b8f0..ca7e08dc9 100644 --- a/beesdoo_inventory/views/stock.xml +++ b/beesdoo_inventory/views/stock.xml @@ -1,15 +1,5 @@ - - beesdoo.stock.tree.view - stock.picking - - - - - - - beesdoo.stock.form.view @@ -19,9 +9,6 @@ - - - + `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Beescoop - Cellule IT +* Coop IT Easy SC + +Contributors +~~~~~~~~~~~~ + +* `BEES coop SC `_ : + + * Augustin Borsu + * Elise Dupont + * Thibault François + * Jean-Marc François + +* `Coop IT Easy SCRLfs `_: + + * Houssine Bakkali + * Robin Keunen + +Maintainers +~~~~~~~~~~~ + +This module is part of the `beescoop/obeesdoo `_ project on GitHub. + +You are welcome to contribute. diff --git a/stock_picking_copy_quantity/__init__.py b/stock_picking_copy_quantity/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/stock_picking_copy_quantity/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_picking_copy_quantity/__manifest__.py b/stock_picking_copy_quantity/__manifest__.py new file mode 100644 index 000000000..7c885784d --- /dev/null +++ b/stock_picking_copy_quantity/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2017 - 2020 BEES coop SCRLfs +# - Augustin Borsu +# - Elise Dupont +# - Thibault François +# - Jean-Marc François +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + "name": "Stock Picking Copy Quantity", + "summary": "Adds a button to copy required quantities" + " to done quantities on stock pickings.", + "author": "Beescoop - Cellule IT, Coop IT Easy SC", + "website": "https://github.com/beescoop/Obeesdoo", + "category": "Inventory", + "version": "12.0.1.0.1", + "depends": [ + "stock", + ], + "data": ["views/stock_picking.xml"], + "installable": True, + "license": "AGPL-3", +} diff --git a/stock_picking_copy_quantity/models/__init__.py b/stock_picking_copy_quantity/models/__init__.py new file mode 100644 index 000000000..ae4c27227 --- /dev/null +++ b/stock_picking_copy_quantity/models/__init__.py @@ -0,0 +1 @@ +from . import stock_picking diff --git a/beesdoo_inventory/models/stock.py b/stock_picking_copy_quantity/models/stock_picking.py similarity index 73% rename from beesdoo_inventory/models/stock.py rename to stock_picking_copy_quantity/models/stock_picking.py index bb774672b..d60bfd132 100644 --- a/beesdoo_inventory/models/stock.py +++ b/stock_picking_copy_quantity/models/stock_picking.py @@ -1,3 +1,6 @@ +# Copyright 2022 Coop IT Easy SC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + from odoo import api, models diff --git a/stock_picking_copy_quantity/readme/CONTRIBUTORS.rst b/stock_picking_copy_quantity/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..9b6d262bf --- /dev/null +++ b/stock_picking_copy_quantity/readme/CONTRIBUTORS.rst @@ -0,0 +1,11 @@ +* `BEES coop SC `_ : + + * Augustin Borsu + * Elise Dupont + * Thibault François + * Jean-Marc François + +* `Coop IT Easy SCRLfs `_: + + * Houssine Bakkali + * Robin Keunen diff --git a/stock_picking_copy_quantity/readme/DESCRIPTION.rst b/stock_picking_copy_quantity/readme/DESCRIPTION.rst new file mode 100644 index 000000000..36bb26c4e --- /dev/null +++ b/stock_picking_copy_quantity/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Adds a button to copy required quantities to done quantities on stock pickings. diff --git a/stock_picking_copy_quantity/static/description/index.html b/stock_picking_copy_quantity/static/description/index.html new file mode 100644 index 000000000..db03efecd --- /dev/null +++ b/stock_picking_copy_quantity/static/description/index.html @@ -0,0 +1,426 @@ + + + + + + +Beesdoo Inventory + + + +
+

Beesdoo Inventory

+ + +

Beta License: AGPL-3 beescoop/obeesdoo

+

Adds a button to copy required quantities to done quantities on stock pickings.

+

Table of contents

+ +
+

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 smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Beescoop - Cellule IT
  • +
  • Coop IT Easy SC
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the beescoop/obeesdoo project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/stock_picking_copy_quantity/views/stock_picking.xml b/stock_picking_copy_quantity/views/stock_picking.xml new file mode 100644 index 000000000..c6cc89171 --- /dev/null +++ b/stock_picking_copy_quantity/views/stock_picking.xml @@ -0,0 +1,20 @@ + + + + beesdoo.stock.form.view + stock.picking + + + + + + From a1a60ceb2e8df91054b6613bbc3ec19cff063d0e Mon Sep 17 00:00:00 2001 From: Robin Keunen Date: Fri, 24 Jun 2022 14:28:46 +0200 Subject: [PATCH 04/12] [IMP] beesdoo_inventory: remove useless dependencies --- beesdoo_inventory/README.rst | 2 +- beesdoo_inventory/__manifest__.py | 7 +++---- beesdoo_inventory/static/description/index.html | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/beesdoo_inventory/README.rst b/beesdoo_inventory/README.rst index 9787c052b..7f6e9daa6 100644 --- a/beesdoo_inventory/README.rst +++ b/beesdoo_inventory/README.rst @@ -19,7 +19,7 @@ Beesdoo Inventory |badge1| |badge2| |badge3| -Adds a responsible, a max shipping date and a button to copy quantity to stock pickings. +Restrict selectable products to those sold as main supplier by the picking partner. **Table of contents** diff --git a/beesdoo_inventory/__manifest__.py b/beesdoo_inventory/__manifest__.py index 9b55122d0..52aab9b30 100644 --- a/beesdoo_inventory/__manifest__.py +++ b/beesdoo_inventory/__manifest__.py @@ -11,11 +11,10 @@ "author": "Beescoop - Cellule IT, Coop IT Easy SC", "website": "https://github.com/beescoop/Obeesdoo", "category": "Inventory", - "version": "12.0.1.0.1", + "version": "12.0.2.0.1", "depends": [ - "delivery", - "beesdoo_base", - "beesdoo_product", + "stock", + "beesdoo_product", # for field main_seller_id "stock_picking_responsible", "stock_picking_max_shipping_date", "stock_picking_copy_quantity", diff --git a/beesdoo_inventory/static/description/index.html b/beesdoo_inventory/static/description/index.html index 1addad515..c3e324265 100644 --- a/beesdoo_inventory/static/description/index.html +++ b/beesdoo_inventory/static/description/index.html @@ -368,7 +368,7 @@

Beesdoo Inventory

!! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 beescoop/obeesdoo

-

Adds a responsible, a max shipping date and a button to copy quantity to stock pickings.

+

Restrict selectable products to those sold as main supplier by the picking partner.

Table of contents

    From 319b3c7643925b47bf5d318d773dee0de073c527 Mon Sep 17 00:00:00 2001 From: Robin Keunen Date: Fri, 24 Jun 2022 15:14:06 +0200 Subject: [PATCH 05/12] [REF] stock_picking_*: view ids and names No migration script needed : never inherited. --- stock_picking_copy_quantity/__manifest__.py | 2 +- stock_picking_copy_quantity/views/stock_picking.xml | 4 ++-- stock_picking_max_shipping_date/__manifest__.py | 2 +- stock_picking_max_shipping_date/views/stock_picking.xml | 4 ++-- stock_picking_responsible/__manifest__.py | 2 +- stock_picking_responsible/views/stock_picking.xml | 8 ++++---- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/stock_picking_copy_quantity/__manifest__.py b/stock_picking_copy_quantity/__manifest__.py index 7c885784d..f110044ba 100644 --- a/stock_picking_copy_quantity/__manifest__.py +++ b/stock_picking_copy_quantity/__manifest__.py @@ -11,7 +11,7 @@ "author": "Beescoop - Cellule IT, Coop IT Easy SC", "website": "https://github.com/beescoop/Obeesdoo", "category": "Inventory", - "version": "12.0.1.0.1", + "version": "12.0.1.0.2", "depends": [ "stock", ], diff --git a/stock_picking_copy_quantity/views/stock_picking.xml b/stock_picking_copy_quantity/views/stock_picking.xml index c6cc89171..73a3a9d8e 100644 --- a/stock_picking_copy_quantity/views/stock_picking.xml +++ b/stock_picking_copy_quantity/views/stock_picking.xml @@ -1,7 +1,7 @@ - - beesdoo.stock.form.view + + stock.picking.form stock.picking diff --git a/stock_picking_max_shipping_date/__manifest__.py b/stock_picking_max_shipping_date/__manifest__.py index 1c9915b0a..f8d88f417 100644 --- a/stock_picking_max_shipping_date/__manifest__.py +++ b/stock_picking_max_shipping_date/__manifest__.py @@ -11,7 +11,7 @@ "author": "Beescoop - Cellule IT, Coop IT Easy SC", "website": "https://github.com/beescoop/Obeesdoo", "category": "Inventory", - "version": "12.0.1.0.1", + "version": "12.0.1.0.2", "depends": [ "stock", ], diff --git a/stock_picking_max_shipping_date/views/stock_picking.xml b/stock_picking_max_shipping_date/views/stock_picking.xml index 63c96ee7a..ee089143c 100644 --- a/stock_picking_max_shipping_date/views/stock_picking.xml +++ b/stock_picking_max_shipping_date/views/stock_picking.xml @@ -1,7 +1,7 @@ - - beesdoo.stock.form.view + + stock.picking.form stock.picking diff --git a/stock_picking_responsible/__manifest__.py b/stock_picking_responsible/__manifest__.py index 577a64fe0..13a4f32c8 100644 --- a/stock_picking_responsible/__manifest__.py +++ b/stock_picking_responsible/__manifest__.py @@ -8,7 +8,7 @@ "author": "BEES coop SC, Coop IT Easy SC", "website": "https://github.com/beescoop/Obeesdoo", "category": "Inventory", - "version": "12.0.1.0.1", + "version": "12.0.1.0.2", "depends": ["stock"], "data": ["views/stock_picking.xml"], "installable": True, diff --git a/stock_picking_responsible/views/stock_picking.xml b/stock_picking_responsible/views/stock_picking.xml index 58cb2bfed..1c4871908 100644 --- a/stock_picking_responsible/views/stock_picking.xml +++ b/stock_picking_responsible/views/stock_picking.xml @@ -1,7 +1,7 @@ - - beesdoo.stock.tree.view + + stock.picking.tree stock.picking @@ -11,8 +11,8 @@ - - beesdoo.stock.form.view + + stock.picking.form stock.picking From 22a929b58746dc6d35681446b608f0169fa25b55 Mon Sep 17 00:00:00 2001 From: Robin Keunen Date: Fri, 24 Jun 2022 16:01:01 +0200 Subject: [PATCH 06/12] [IMP] stock_picking_*: translations --- stock_picking_copy_quantity/i18n/fr_BE.po | 27 +++++++++++++++++++ .../i18n/stock_picking_copy_quantity.pot | 27 +++++++++++++++++++ stock_picking_max_shipping_date/i18n/fr_BE.po | 27 +++++++++++++++++++ .../i18n/stock_picking_max_shipping_date.pot | 27 +++++++++++++++++++ stock_picking_responsible/i18n/fr_BE.po | 27 +++++++++++++++++++ .../i18n/stock_picking_responsible.pot | 27 +++++++++++++++++++ 6 files changed, 162 insertions(+) create mode 100644 stock_picking_copy_quantity/i18n/fr_BE.po create mode 100644 stock_picking_copy_quantity/i18n/stock_picking_copy_quantity.pot create mode 100644 stock_picking_max_shipping_date/i18n/fr_BE.po create mode 100644 stock_picking_max_shipping_date/i18n/stock_picking_max_shipping_date.pot create mode 100644 stock_picking_responsible/i18n/fr_BE.po create mode 100644 stock_picking_responsible/i18n/stock_picking_responsible.pot diff --git a/stock_picking_copy_quantity/i18n/fr_BE.po b/stock_picking_copy_quantity/i18n/fr_BE.po new file mode 100644 index 000000000..72fa8c6ec --- /dev/null +++ b/stock_picking_copy_quantity/i18n/fr_BE.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_picking_copy_quantity +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-06-24 13:53+0000\n" +"PO-Revision-Date: 2022-06-24 13:53+0000\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: stock_picking_copy_quantity +#: model_terms:ir.ui.view,arch_db:stock_picking_copy_quantity.view_picking_form +msgid "Copy Move Line Quantity" +msgstr "Copier les quantités demandées" + +#. module: stock_picking_copy_quantity +#: model:ir.model,name:stock_picking_copy_quantity.model_stock_picking +msgid "Transfer" +msgstr "Transfert" + diff --git a/stock_picking_copy_quantity/i18n/stock_picking_copy_quantity.pot b/stock_picking_copy_quantity/i18n/stock_picking_copy_quantity.pot new file mode 100644 index 000000000..7070be520 --- /dev/null +++ b/stock_picking_copy_quantity/i18n/stock_picking_copy_quantity.pot @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_picking_copy_quantity +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-06-24 13:59+0000\n" +"PO-Revision-Date: 2022-06-24 13:59+0000\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: stock_picking_copy_quantity +#: model_terms:ir.ui.view,arch_db:stock_picking_copy_quantity.view_picking_form +msgid "Copy Move Line Quantity" +msgstr "" + +#. module: stock_picking_copy_quantity +#: model:ir.model,name:stock_picking_copy_quantity.model_stock_picking +msgid "Transfer" +msgstr "" + diff --git a/stock_picking_max_shipping_date/i18n/fr_BE.po b/stock_picking_max_shipping_date/i18n/fr_BE.po new file mode 100644 index 000000000..8a24fa764 --- /dev/null +++ b/stock_picking_max_shipping_date/i18n/fr_BE.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_picking_max_shipping_date +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-06-24 13:54+0000\n" +"PO-Revision-Date: 2022-06-24 13:54+0000\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: stock_picking_max_shipping_date +#: model:ir.model.fields,field_description:stock_picking_max_shipping_date.field_stock_picking__max_shipping_date +msgid "Max Shipping Date" +msgstr "Date d'envoi maximale" + +#. module: stock_picking_max_shipping_date +#: model:ir.model,name:stock_picking_max_shipping_date.model_stock_picking +msgid "Transfer" +msgstr "Transfert" + diff --git a/stock_picking_max_shipping_date/i18n/stock_picking_max_shipping_date.pot b/stock_picking_max_shipping_date/i18n/stock_picking_max_shipping_date.pot new file mode 100644 index 000000000..defd6e7c7 --- /dev/null +++ b/stock_picking_max_shipping_date/i18n/stock_picking_max_shipping_date.pot @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_picking_max_shipping_date +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-06-24 13:58+0000\n" +"PO-Revision-Date: 2022-06-24 13:58+0000\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: stock_picking_max_shipping_date +#: model:ir.model.fields,field_description:stock_picking_max_shipping_date.field_stock_picking__max_shipping_date +msgid "Max Shipping Date" +msgstr "" + +#. module: stock_picking_max_shipping_date +#: model:ir.model,name:stock_picking_max_shipping_date.model_stock_picking +msgid "Transfer" +msgstr "" + diff --git a/stock_picking_responsible/i18n/fr_BE.po b/stock_picking_responsible/i18n/fr_BE.po new file mode 100644 index 000000000..5786519aa --- /dev/null +++ b/stock_picking_responsible/i18n/fr_BE.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_picking_responsible +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-06-24 13:54+0000\n" +"PO-Revision-Date: 2022-06-24 13:54+0000\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: stock_picking_responsible +#: model:ir.model.fields,field_description:stock_picking_responsible.field_stock_picking__responsible +msgid "Responsible" +msgstr "Responsable" + +#. module: stock_picking_responsible +#: model:ir.model,name:stock_picking_responsible.model_stock_picking +msgid "Transfer" +msgstr "Transfert" + diff --git a/stock_picking_responsible/i18n/stock_picking_responsible.pot b/stock_picking_responsible/i18n/stock_picking_responsible.pot new file mode 100644 index 000000000..2dedf7533 --- /dev/null +++ b/stock_picking_responsible/i18n/stock_picking_responsible.pot @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_picking_responsible +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2022-06-24 13:58+0000\n" +"PO-Revision-Date: 2022-06-24 13:58+0000\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: stock_picking_responsible +#: model:ir.model.fields,field_description:stock_picking_responsible.field_stock_picking__responsible +msgid "Responsible" +msgstr "" + +#. module: stock_picking_responsible +#: model:ir.model,name:stock_picking_responsible.model_stock_picking +msgid "Transfer" +msgstr "" + From 2a97f1ab33e15964d6c9fe15a6e399b3ba21c569 Mon Sep 17 00:00:00 2001 From: Robin Keunen Date: Fri, 24 Jun 2022 16:50:44 +0200 Subject: [PATCH 07/12] [IMP] stock_picking_copy_quantity: add test coverage --- stock_picking_copy_quantity/tests/__init__.py | 1 + .../tests/test_copy_quantity.py | 52 +++++++++++++++++++ .../views/stock_picking.xml | 2 +- 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 stock_picking_copy_quantity/tests/__init__.py create mode 100644 stock_picking_copy_quantity/tests/test_copy_quantity.py diff --git a/stock_picking_copy_quantity/tests/__init__.py b/stock_picking_copy_quantity/tests/__init__.py new file mode 100644 index 000000000..6462f992b --- /dev/null +++ b/stock_picking_copy_quantity/tests/__init__.py @@ -0,0 +1 @@ +from . import test_copy_quantity diff --git a/stock_picking_copy_quantity/tests/test_copy_quantity.py b/stock_picking_copy_quantity/tests/test_copy_quantity.py new file mode 100644 index 000000000..74690b21a --- /dev/null +++ b/stock_picking_copy_quantity/tests/test_copy_quantity.py @@ -0,0 +1,52 @@ +# Copyright 2022 Coop IT Easy SC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from odoo.tests.common import TransactionCase + + +class TestCopyQuantity(TransactionCase): + def setUp(self): + super().setUp() + self.partner = self.browse_ref("base.res_partner_2") + self.picking_type_out = self.browse_ref("stock.picking_type_out") + self.supplier_location = self.browse_ref("stock.stock_location_suppliers") + self.stock_location = self.browse_ref("stock.stock_location_stock") + self.product_a = self.env["product.product"].create({"name": "Product A"}) + self.product_b = self.env["product.product"].create({"name": "Product B"}) + + def test_move_line_quantities_are_copied(self): + picking = self.env["stock.picking"].create( + { + "partner_id": self.partner.id, + "picking_type_id": self.picking_type_out.id, + "location_id": self.supplier_location.id, + "location_dest_id": self.stock_location.id, + } + ) + move_a = self.env["stock.move"].create( + { + "name": self.product_a.name, + "product_id": self.product_a.id, + "product_uom_qty": 1, + "product_uom": self.product_a.uom_id.id, + "picking_id": picking.id, + "location_id": self.supplier_location.id, + "location_dest_id": self.stock_location.id, + } + ) + move_b = self.env["stock.move"].create( + { + "name": self.product_b.name, + "product_id": self.product_b.id, + "product_uom_qty": 2, + "product_uom": self.product_b.uom_id.id, + "picking_id": picking.id, + "location_id": self.supplier_location.id, + "location_dest_id": self.stock_location.id, + } + ) + + picking.action_confirm() + picking.copy_qty() + self.assertEquals(move_a.move_line_ids.qty_done, 1) + self.assertEquals(move_b.move_line_ids.qty_done, 2) diff --git a/stock_picking_copy_quantity/views/stock_picking.xml b/stock_picking_copy_quantity/views/stock_picking.xml index 73a3a9d8e..a510f5117 100644 --- a/stock_picking_copy_quantity/views/stock_picking.xml +++ b/stock_picking_copy_quantity/views/stock_picking.xml @@ -12,7 +12,7 @@ states="partially_available,assigned" type="object" class="oe_highlight" - attrs="{'invisible': ['|', ('picking_type_code', '!=', 'incoming')]}" + attrs="{'invisible': [('picking_type_code', '!=', 'incoming')]}" /> From c079a2cfb786202f746f0e82490316dfc136525e Mon Sep 17 00:00:00 2001 From: Robin Keunen Date: Fri, 24 Jun 2022 17:31:03 +0200 Subject: [PATCH 08/12] [IMP] stock_picking_responsible: add test coverage --- .../models/stock_picking.py | 18 ++------- stock_picking_responsible/tests/__init__.py | 1 + .../tests/test_picking_responsible.py | 40 +++++++++++++++++++ 3 files changed, 44 insertions(+), 15 deletions(-) create mode 100644 stock_picking_responsible/tests/__init__.py create mode 100644 stock_picking_responsible/tests/test_picking_responsible.py diff --git a/stock_picking_responsible/models/stock_picking.py b/stock_picking_responsible/models/stock_picking.py index 1d04065fb..95f32c457 100644 --- a/stock_picking_responsible/models/stock_picking.py +++ b/stock_picking_responsible/models/stock_picking.py @@ -24,21 +24,9 @@ def _add_follower(self): ("name", "=", "Discussions"), ] ) - if not self.env["mail.followers"].search( - [ - ("res_id", "=", picking.id), - ("res_model", "=", "stock.picking"), - ("partner_id", "=", picking.responsible.id), - ] - ): - self.env["mail.followers"].create( - { - "res_model": "stock.picking", - "res_id": picking.id, - "partner_id": picking.responsible.id, - "subtype_ids": [(6, 0, types.ids)], - } - ) + picking.message_subscribe( + partner_ids=picking.responsible.ids, subtype_ids=types.ids + ) @api.multi def write(self, values): diff --git a/stock_picking_responsible/tests/__init__.py b/stock_picking_responsible/tests/__init__.py new file mode 100644 index 000000000..475b28bd8 --- /dev/null +++ b/stock_picking_responsible/tests/__init__.py @@ -0,0 +1 @@ +from . import test_picking_responsible diff --git a/stock_picking_responsible/tests/test_picking_responsible.py b/stock_picking_responsible/tests/test_picking_responsible.py new file mode 100644 index 000000000..2011f1df9 --- /dev/null +++ b/stock_picking_responsible/tests/test_picking_responsible.py @@ -0,0 +1,40 @@ +# Copyright 2022 Coop IT Easy SC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from odoo.tests.common import TransactionCase + + +class TestCopyQuantity(TransactionCase): + def setUp(self): + super().setUp() + self.partner = self.browse_ref("base.res_partner_2") + self.responsible = self.browse_ref("base.partner_demo") + self.other_responsible = self.browse_ref("base.res_partner_3") + self.picking_type_out = self.browse_ref("stock.picking_type_out") + self.supplier_location = self.browse_ref("stock.stock_location_suppliers") + self.stock_location = self.browse_ref("stock.stock_location_stock") + self.product_a = self.env["product.product"].create({"name": "Product A"}) + self.product_b = self.env["product.product"].create({"name": "Product B"}) + + def test_move_line_quantities_are_copied(self): + picking = self.env["stock.picking"].create( + { + "partner_id": self.partner.id, + "responsible": self.responsible.id, + "picking_type_id": self.picking_type_out.id, + "location_id": self.supplier_location.id, + "location_dest_id": self.stock_location.id, + } + ) + + # test create + self.assertIn( + self.responsible.id, picking.message_follower_ids.mapped("partner_id").ids + ) + + # test write + picking.responsible = self.other_responsible + self.assertIn( + self.other_responsible.id, + picking.message_follower_ids.mapped("partner_id").ids, + ) From 5295ca223fcb6068c6a4e76e8111ac73d0a8ca39 Mon Sep 17 00:00:00 2001 From: Robin Keunen Date: Tue, 28 Jun 2022 18:09:27 +0200 Subject: [PATCH 09/12] [REM] stock_picking_max_shipping_date: not used https://github.com/coopiteasy/stock-logistics-workflow/pull/1 --- beesdoo_inventory/__manifest__.py | 1 - .../addons/stock_picking_max_shipping_date | 1 - .../stock_picking_max_shipping_date/setup.py | 6 - stock_picking_max_shipping_date/README.rst | 68 --- stock_picking_max_shipping_date/__init__.py | 1 - .../__manifest__.py | 21 - stock_picking_max_shipping_date/i18n/fr_BE.po | 27 -- .../i18n/stock_picking_max_shipping_date.pot | 27 -- .../models/__init__.py | 1 - .../models/stock_picking.py | 10 - .../readme/CONTRIBUTORS.rst | 11 - .../readme/DESCRIPTION.rst | 1 - .../static/description/index.html | 426 ------------------ .../views/stock_picking.xml | 13 - 14 files changed, 614 deletions(-) delete mode 120000 setup/stock_picking_max_shipping_date/odoo/addons/stock_picking_max_shipping_date delete mode 100644 setup/stock_picking_max_shipping_date/setup.py delete mode 100644 stock_picking_max_shipping_date/README.rst delete mode 100644 stock_picking_max_shipping_date/__init__.py delete mode 100644 stock_picking_max_shipping_date/__manifest__.py delete mode 100644 stock_picking_max_shipping_date/i18n/fr_BE.po delete mode 100644 stock_picking_max_shipping_date/i18n/stock_picking_max_shipping_date.pot delete mode 100644 stock_picking_max_shipping_date/models/__init__.py delete mode 100644 stock_picking_max_shipping_date/models/stock_picking.py delete mode 100644 stock_picking_max_shipping_date/readme/CONTRIBUTORS.rst delete mode 100644 stock_picking_max_shipping_date/readme/DESCRIPTION.rst delete mode 100644 stock_picking_max_shipping_date/static/description/index.html delete mode 100644 stock_picking_max_shipping_date/views/stock_picking.xml diff --git a/beesdoo_inventory/__manifest__.py b/beesdoo_inventory/__manifest__.py index 52aab9b30..ab53f95ee 100644 --- a/beesdoo_inventory/__manifest__.py +++ b/beesdoo_inventory/__manifest__.py @@ -16,7 +16,6 @@ "stock", "beesdoo_product", # for field main_seller_id "stock_picking_responsible", - "stock_picking_max_shipping_date", "stock_picking_copy_quantity", ], "data": ["views/stock.xml"], diff --git a/setup/stock_picking_max_shipping_date/odoo/addons/stock_picking_max_shipping_date b/setup/stock_picking_max_shipping_date/odoo/addons/stock_picking_max_shipping_date deleted file mode 120000 index 35862b31d..000000000 --- a/setup/stock_picking_max_shipping_date/odoo/addons/stock_picking_max_shipping_date +++ /dev/null @@ -1 +0,0 @@ -../../../../stock_picking_max_shipping_date \ No newline at end of file diff --git a/setup/stock_picking_max_shipping_date/setup.py b/setup/stock_picking_max_shipping_date/setup.py deleted file mode 100644 index 28c57bb64..000000000 --- a/setup/stock_picking_max_shipping_date/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -import setuptools - -setuptools.setup( - setup_requires=['setuptools-odoo'], - odoo_addon=True, -) diff --git a/stock_picking_max_shipping_date/README.rst b/stock_picking_max_shipping_date/README.rst deleted file mode 100644 index 78d5aa74f..000000000 --- a/stock_picking_max_shipping_date/README.rst +++ /dev/null @@ -1,68 +0,0 @@ -=============================== -Stock Picking Max Shipping Date -=============================== - -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! This file is generated by oca-gen-addon-readme !! - !! changes will be overwritten. !! - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -.. |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-beescoop%2Fobeesdoo-lightgray.png?logo=github - :target: https://github.com/beescoop/obeesdoo/tree/12.0/stock_picking_max_shipping_date - :alt: beescoop/obeesdoo - -|badge1| |badge2| |badge3| - -Adds a max shipping date field to stock pickings. - -**Table of contents** - -.. contents:: - :local: - -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 smashing it by providing a detailed and welcomed -`feedback `_. - -Do not contact contributors directly about support or help with technical issues. - -Credits -======= - -Authors -~~~~~~~ - -* Beescoop - Cellule IT -* Coop IT Easy SC - -Contributors -~~~~~~~~~~~~ - -* `BEES coop SC `_ : - - * Augustin Borsu - * Elise Dupont - * Thibault François - * Jean-Marc François - -* `Coop IT Easy SCRLfs `_: - - * Houssine Bakkali - * Robin Keunen - -Maintainers -~~~~~~~~~~~ - -This module is part of the `beescoop/obeesdoo `_ project on GitHub. - -You are welcome to contribute. diff --git a/stock_picking_max_shipping_date/__init__.py b/stock_picking_max_shipping_date/__init__.py deleted file mode 100644 index 0650744f6..000000000 --- a/stock_picking_max_shipping_date/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import models diff --git a/stock_picking_max_shipping_date/__manifest__.py b/stock_picking_max_shipping_date/__manifest__.py deleted file mode 100644 index f8d88f417..000000000 --- a/stock_picking_max_shipping_date/__manifest__.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2017 - 2020 BEES coop SCRLfs -# Copyright 2021 - Coop IT Easy SC -# - Augustin Borsu -# - Elise Dupont -# - Thibault François -# - Jean-Marc François -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -{ - "name": "Stock Picking Max Shipping Date", - "summary": "Adds max shipping date field", - "author": "Beescoop - Cellule IT, Coop IT Easy SC", - "website": "https://github.com/beescoop/Obeesdoo", - "category": "Inventory", - "version": "12.0.1.0.2", - "depends": [ - "stock", - ], - "data": ["views/stock_picking.xml"], - "installable": True, - "license": "AGPL-3", -} diff --git a/stock_picking_max_shipping_date/i18n/fr_BE.po b/stock_picking_max_shipping_date/i18n/fr_BE.po deleted file mode 100644 index 8a24fa764..000000000 --- a/stock_picking_max_shipping_date/i18n/fr_BE.po +++ /dev/null @@ -1,27 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * stock_picking_max_shipping_date -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-24 13:54+0000\n" -"PO-Revision-Date: 2022-06-24 13:54+0000\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: stock_picking_max_shipping_date -#: model:ir.model.fields,field_description:stock_picking_max_shipping_date.field_stock_picking__max_shipping_date -msgid "Max Shipping Date" -msgstr "Date d'envoi maximale" - -#. module: stock_picking_max_shipping_date -#: model:ir.model,name:stock_picking_max_shipping_date.model_stock_picking -msgid "Transfer" -msgstr "Transfert" - diff --git a/stock_picking_max_shipping_date/i18n/stock_picking_max_shipping_date.pot b/stock_picking_max_shipping_date/i18n/stock_picking_max_shipping_date.pot deleted file mode 100644 index defd6e7c7..000000000 --- a/stock_picking_max_shipping_date/i18n/stock_picking_max_shipping_date.pot +++ /dev/null @@ -1,27 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * stock_picking_max_shipping_date -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-24 13:58+0000\n" -"PO-Revision-Date: 2022-06-24 13:58+0000\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: stock_picking_max_shipping_date -#: model:ir.model.fields,field_description:stock_picking_max_shipping_date.field_stock_picking__max_shipping_date -msgid "Max Shipping Date" -msgstr "" - -#. module: stock_picking_max_shipping_date -#: model:ir.model,name:stock_picking_max_shipping_date.model_stock_picking -msgid "Transfer" -msgstr "" - diff --git a/stock_picking_max_shipping_date/models/__init__.py b/stock_picking_max_shipping_date/models/__init__.py deleted file mode 100644 index ae4c27227..000000000 --- a/stock_picking_max_shipping_date/models/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import stock_picking diff --git a/stock_picking_max_shipping_date/models/stock_picking.py b/stock_picking_max_shipping_date/models/stock_picking.py deleted file mode 100644 index 0924f1c7d..000000000 --- a/stock_picking_max_shipping_date/models/stock_picking.py +++ /dev/null @@ -1,10 +0,0 @@ -# Copyright 2022 Coop IT Easy SC -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). - -from odoo import fields, models - - -class StockPicking(models.Model): - _inherit = "stock.picking" - - max_shipping_date = fields.Datetime("Max Shipping Date") diff --git a/stock_picking_max_shipping_date/readme/CONTRIBUTORS.rst b/stock_picking_max_shipping_date/readme/CONTRIBUTORS.rst deleted file mode 100644 index 9b6d262bf..000000000 --- a/stock_picking_max_shipping_date/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,11 +0,0 @@ -* `BEES coop SC `_ : - - * Augustin Borsu - * Elise Dupont - * Thibault François - * Jean-Marc François - -* `Coop IT Easy SCRLfs `_: - - * Houssine Bakkali - * Robin Keunen diff --git a/stock_picking_max_shipping_date/readme/DESCRIPTION.rst b/stock_picking_max_shipping_date/readme/DESCRIPTION.rst deleted file mode 100644 index 79753fc4c..000000000 --- a/stock_picking_max_shipping_date/readme/DESCRIPTION.rst +++ /dev/null @@ -1 +0,0 @@ -Adds a max shipping date field to stock pickings. diff --git a/stock_picking_max_shipping_date/static/description/index.html b/stock_picking_max_shipping_date/static/description/index.html deleted file mode 100644 index dfac5ca86..000000000 --- a/stock_picking_max_shipping_date/static/description/index.html +++ /dev/null @@ -1,426 +0,0 @@ - - - - - - -Stock Picking Max Shipping Date - - - -
    -

    Stock Picking Max Shipping Date

    - - -

    Beta License: AGPL-3 beescoop/obeesdoo

    -

    Adds a max shipping date field to stock pickings.

    -

    Table of contents

    - -
    -

    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 smashing it by providing a detailed and welcomed -feedback.

    -

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

    -
    -
    -

    Credits

    -
    -

    Authors

    -
      -
    • Beescoop - Cellule IT
    • -
    • Coop IT Easy SC
    • -
    -
    -
    -

    Contributors

    - -
    -
    -

    Maintainers

    -

    This module is part of the beescoop/obeesdoo project on GitHub.

    -

    You are welcome to contribute.

    -
    -
    -
    - - diff --git a/stock_picking_max_shipping_date/views/stock_picking.xml b/stock_picking_max_shipping_date/views/stock_picking.xml deleted file mode 100644 index ee089143c..000000000 --- a/stock_picking_max_shipping_date/views/stock_picking.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - stock.picking.form - stock.picking - - - - - - - - From 1f01ffa75163923a2f4348d489dfb72cdb126d8f Mon Sep 17 00:00:00 2001 From: Robin Keunen Date: Tue, 28 Jun 2022 18:10:01 +0200 Subject: [PATCH 10/12] [REM] stock_picking_responsible: move to oca https://github.com/OCA/stock-logistics-workflow/pull/1026/files --- .../odoo/addons/stock_picking_responsible | 1 - setup/stock_picking_responsible/setup.py | 6 - stock_picking_responsible/README.rst | 69 --- stock_picking_responsible/__init__.py | 1 - stock_picking_responsible/__manifest__.py | 16 - stock_picking_responsible/i18n/fr_BE.po | 27 -- .../i18n/stock_picking_responsible.pot | 27 -- stock_picking_responsible/models/__init__.py | 1 - .../models/stock_picking.py | 41 -- .../readme/CONTRIBUTORS.rst | 11 - .../readme/DESCRIPTION.rst | 2 - .../static/description/index.html | 427 ------------------ stock_picking_responsible/tests/__init__.py | 1 - .../tests/test_picking_responsible.py | 40 -- .../views/stock_picking.xml | 24 - 15 files changed, 694 deletions(-) delete mode 120000 setup/stock_picking_responsible/odoo/addons/stock_picking_responsible delete mode 100644 setup/stock_picking_responsible/setup.py delete mode 100644 stock_picking_responsible/README.rst delete mode 100644 stock_picking_responsible/__init__.py delete mode 100644 stock_picking_responsible/__manifest__.py delete mode 100644 stock_picking_responsible/i18n/fr_BE.po delete mode 100644 stock_picking_responsible/i18n/stock_picking_responsible.pot delete mode 100644 stock_picking_responsible/models/__init__.py delete mode 100644 stock_picking_responsible/models/stock_picking.py delete mode 100644 stock_picking_responsible/readme/CONTRIBUTORS.rst delete mode 100644 stock_picking_responsible/readme/DESCRIPTION.rst delete mode 100644 stock_picking_responsible/static/description/index.html delete mode 100644 stock_picking_responsible/tests/__init__.py delete mode 100644 stock_picking_responsible/tests/test_picking_responsible.py delete mode 100644 stock_picking_responsible/views/stock_picking.xml diff --git a/setup/stock_picking_responsible/odoo/addons/stock_picking_responsible b/setup/stock_picking_responsible/odoo/addons/stock_picking_responsible deleted file mode 120000 index c377b4758..000000000 --- a/setup/stock_picking_responsible/odoo/addons/stock_picking_responsible +++ /dev/null @@ -1 +0,0 @@ -../../../../stock_picking_responsible \ No newline at end of file diff --git a/setup/stock_picking_responsible/setup.py b/setup/stock_picking_responsible/setup.py deleted file mode 100644 index 28c57bb64..000000000 --- a/setup/stock_picking_responsible/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -import setuptools - -setuptools.setup( - setup_requires=['setuptools-odoo'], - odoo_addon=True, -) diff --git a/stock_picking_responsible/README.rst b/stock_picking_responsible/README.rst deleted file mode 100644 index 0581bc86e..000000000 --- a/stock_picking_responsible/README.rst +++ /dev/null @@ -1,69 +0,0 @@ -========================= -Stock Picking Responsible -========================= - -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! This file is generated by oca-gen-addon-readme !! - !! changes will be overwritten. !! - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -.. |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-beescoop%2Fobeesdoo-lightgray.png?logo=github - :target: https://github.com/beescoop/obeesdoo/tree/12.0/stock_picking_responsible - :alt: beescoop/obeesdoo - -|badge1| |badge2| |badge3| - -Adds a responsible partner to the picking and subscribe them -to notifications. - -**Table of contents** - -.. contents:: - :local: - -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 smashing it by providing a detailed and welcomed -`feedback `_. - -Do not contact contributors directly about support or help with technical issues. - -Credits -======= - -Authors -~~~~~~~ - -* BEES coop SC -* Coop IT Easy SC - -Contributors -~~~~~~~~~~~~ - -* `BEES coop SC `_ : - - * Augustin Borsu - * Elise Dupont - * Thibault François - * Jean-Marc François - -* `Coop IT Easy SCRLfs `_: - - * Houssine Bakkali - * Robin Keunen - -Maintainers -~~~~~~~~~~~ - -This module is part of the `beescoop/obeesdoo `_ project on GitHub. - -You are welcome to contribute. diff --git a/stock_picking_responsible/__init__.py b/stock_picking_responsible/__init__.py deleted file mode 100644 index 0650744f6..000000000 --- a/stock_picking_responsible/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import models diff --git a/stock_picking_responsible/__manifest__.py b/stock_picking_responsible/__manifest__.py deleted file mode 100644 index 13a4f32c8..000000000 --- a/stock_picking_responsible/__manifest__.py +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright 2017 - 2021 BEES coop SCRLfs -# Copyright 2022 - Coop IT Easy SC -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -{ - "name": "Stock Picking Responsible", - "summary": "Adds a responsible partner to the picking" - " and subscribe them to notifications.", - "author": "BEES coop SC, Coop IT Easy SC", - "website": "https://github.com/beescoop/Obeesdoo", - "category": "Inventory", - "version": "12.0.1.0.2", - "depends": ["stock"], - "data": ["views/stock_picking.xml"], - "installable": True, - "license": "AGPL-3", -} diff --git a/stock_picking_responsible/i18n/fr_BE.po b/stock_picking_responsible/i18n/fr_BE.po deleted file mode 100644 index 5786519aa..000000000 --- a/stock_picking_responsible/i18n/fr_BE.po +++ /dev/null @@ -1,27 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * stock_picking_responsible -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-24 13:54+0000\n" -"PO-Revision-Date: 2022-06-24 13:54+0000\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: stock_picking_responsible -#: model:ir.model.fields,field_description:stock_picking_responsible.field_stock_picking__responsible -msgid "Responsible" -msgstr "Responsable" - -#. module: stock_picking_responsible -#: model:ir.model,name:stock_picking_responsible.model_stock_picking -msgid "Transfer" -msgstr "Transfert" - diff --git a/stock_picking_responsible/i18n/stock_picking_responsible.pot b/stock_picking_responsible/i18n/stock_picking_responsible.pot deleted file mode 100644 index 2dedf7533..000000000 --- a/stock_picking_responsible/i18n/stock_picking_responsible.pot +++ /dev/null @@ -1,27 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * stock_picking_responsible -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-24 13:58+0000\n" -"PO-Revision-Date: 2022-06-24 13:58+0000\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: stock_picking_responsible -#: model:ir.model.fields,field_description:stock_picking_responsible.field_stock_picking__responsible -msgid "Responsible" -msgstr "" - -#. module: stock_picking_responsible -#: model:ir.model,name:stock_picking_responsible.model_stock_picking -msgid "Transfer" -msgstr "" - diff --git a/stock_picking_responsible/models/__init__.py b/stock_picking_responsible/models/__init__.py deleted file mode 100644 index ae4c27227..000000000 --- a/stock_picking_responsible/models/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import stock_picking diff --git a/stock_picking_responsible/models/stock_picking.py b/stock_picking_responsible/models/stock_picking.py deleted file mode 100644 index 95f32c457..000000000 --- a/stock_picking_responsible/models/stock_picking.py +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 2022 Coop IT Easy SC -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). - -from odoo import api, fields, models - - -class StockPicking(models.Model): - _inherit = "stock.picking" - - responsible = fields.Many2one( - comodel_name="res.partner", - string="Responsible", - default=lambda self: self.env.user.partner_id.id, - ) - - @api.multi - def _add_follower(self): - for picking in self: - if picking.responsible: - types = self.env["mail.message.subtype"].search( - [ - "|", - ("res_model", "=", "stock.picking"), - ("name", "=", "Discussions"), - ] - ) - picking.message_subscribe( - partner_ids=picking.responsible.ids, subtype_ids=types.ids - ) - - @api.multi - def write(self, values): - res = super(StockPicking, self).write(values) - self._add_follower() - return res - - @api.model - def create(self, values): - picking = super(StockPicking, self).create(values) - picking._add_follower() - return picking diff --git a/stock_picking_responsible/readme/CONTRIBUTORS.rst b/stock_picking_responsible/readme/CONTRIBUTORS.rst deleted file mode 100644 index 9b6d262bf..000000000 --- a/stock_picking_responsible/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,11 +0,0 @@ -* `BEES coop SC `_ : - - * Augustin Borsu - * Elise Dupont - * Thibault François - * Jean-Marc François - -* `Coop IT Easy SCRLfs `_: - - * Houssine Bakkali - * Robin Keunen diff --git a/stock_picking_responsible/readme/DESCRIPTION.rst b/stock_picking_responsible/readme/DESCRIPTION.rst deleted file mode 100644 index 83b08eb37..000000000 --- a/stock_picking_responsible/readme/DESCRIPTION.rst +++ /dev/null @@ -1,2 +0,0 @@ -Adds a responsible partner to the picking and subscribe them -to notifications. diff --git a/stock_picking_responsible/static/description/index.html b/stock_picking_responsible/static/description/index.html deleted file mode 100644 index bec282bf9..000000000 --- a/stock_picking_responsible/static/description/index.html +++ /dev/null @@ -1,427 +0,0 @@ - - - - - - -Stock Picking Responsible - - - -
    -

    Stock Picking Responsible

    - - -

    Beta License: AGPL-3 beescoop/obeesdoo

    -

    Adds a responsible partner to the picking and subscribe them -to notifications.

    -

    Table of contents

    - -
    -

    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 smashing it by providing a detailed and welcomed -feedback.

    -

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

    -
    -
    -

    Credits

    -
    -

    Authors

    -
      -
    • BEES coop SC
    • -
    • Coop IT Easy SC
    • -
    -
    -
    -

    Contributors

    - -
    -
    -

    Maintainers

    -

    This module is part of the beescoop/obeesdoo project on GitHub.

    -

    You are welcome to contribute.

    -
    -
    -
    - - diff --git a/stock_picking_responsible/tests/__init__.py b/stock_picking_responsible/tests/__init__.py deleted file mode 100644 index 475b28bd8..000000000 --- a/stock_picking_responsible/tests/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import test_picking_responsible diff --git a/stock_picking_responsible/tests/test_picking_responsible.py b/stock_picking_responsible/tests/test_picking_responsible.py deleted file mode 100644 index 2011f1df9..000000000 --- a/stock_picking_responsible/tests/test_picking_responsible.py +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 2022 Coop IT Easy SC -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). - -from odoo.tests.common import TransactionCase - - -class TestCopyQuantity(TransactionCase): - def setUp(self): - super().setUp() - self.partner = self.browse_ref("base.res_partner_2") - self.responsible = self.browse_ref("base.partner_demo") - self.other_responsible = self.browse_ref("base.res_partner_3") - self.picking_type_out = self.browse_ref("stock.picking_type_out") - self.supplier_location = self.browse_ref("stock.stock_location_suppliers") - self.stock_location = self.browse_ref("stock.stock_location_stock") - self.product_a = self.env["product.product"].create({"name": "Product A"}) - self.product_b = self.env["product.product"].create({"name": "Product B"}) - - def test_move_line_quantities_are_copied(self): - picking = self.env["stock.picking"].create( - { - "partner_id": self.partner.id, - "responsible": self.responsible.id, - "picking_type_id": self.picking_type_out.id, - "location_id": self.supplier_location.id, - "location_dest_id": self.stock_location.id, - } - ) - - # test create - self.assertIn( - self.responsible.id, picking.message_follower_ids.mapped("partner_id").ids - ) - - # test write - picking.responsible = self.other_responsible - self.assertIn( - self.other_responsible.id, - picking.message_follower_ids.mapped("partner_id").ids, - ) diff --git a/stock_picking_responsible/views/stock_picking.xml b/stock_picking_responsible/views/stock_picking.xml deleted file mode 100644 index 1c4871908..000000000 --- a/stock_picking_responsible/views/stock_picking.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - stock.picking.tree - stock.picking - - - - - - - - - - stock.picking.form - stock.picking - - - - - - - - From 71ee848b2193b6a43c669e152b99d1bf39b37de0 Mon Sep 17 00:00:00 2001 From: Robin Keunen Date: Tue, 28 Jun 2022 18:22:01 +0200 Subject: [PATCH 11/12] [REM] stock_picking_copy_quantity: replace by oca module stock_move_line_auto_fill --- beesdoo_inventory/__manifest__.py | 4 +- .../migrations/12.0.3.0.1/post-migration.py | 25 + .../odoo/addons/stock_picking_copy_quantity | 1 - setup/stock_picking_copy_quantity/setup.py | 6 - stock_picking_copy_quantity/README.rst | 68 --- stock_picking_copy_quantity/__init__.py | 1 - stock_picking_copy_quantity/__manifest__.py | 21 - stock_picking_copy_quantity/i18n/fr_BE.po | 27 -- .../i18n/stock_picking_copy_quantity.pot | 27 -- .../models/__init__.py | 1 - .../models/stock_picking.py | 15 - .../readme/CONTRIBUTORS.rst | 11 - .../readme/DESCRIPTION.rst | 1 - .../static/description/index.html | 426 ------------------ stock_picking_copy_quantity/tests/__init__.py | 1 - .../tests/test_copy_quantity.py | 52 --- .../views/stock_picking.xml | 20 - 17 files changed, 27 insertions(+), 680 deletions(-) create mode 100644 beesdoo_inventory/migrations/12.0.3.0.1/post-migration.py delete mode 120000 setup/stock_picking_copy_quantity/odoo/addons/stock_picking_copy_quantity delete mode 100644 setup/stock_picking_copy_quantity/setup.py delete mode 100644 stock_picking_copy_quantity/README.rst delete mode 100644 stock_picking_copy_quantity/__init__.py delete mode 100644 stock_picking_copy_quantity/__manifest__.py delete mode 100644 stock_picking_copy_quantity/i18n/fr_BE.po delete mode 100644 stock_picking_copy_quantity/i18n/stock_picking_copy_quantity.pot delete mode 100644 stock_picking_copy_quantity/models/__init__.py delete mode 100644 stock_picking_copy_quantity/models/stock_picking.py delete mode 100644 stock_picking_copy_quantity/readme/CONTRIBUTORS.rst delete mode 100644 stock_picking_copy_quantity/readme/DESCRIPTION.rst delete mode 100644 stock_picking_copy_quantity/static/description/index.html delete mode 100644 stock_picking_copy_quantity/tests/__init__.py delete mode 100644 stock_picking_copy_quantity/tests/test_copy_quantity.py delete mode 100644 stock_picking_copy_quantity/views/stock_picking.xml diff --git a/beesdoo_inventory/__manifest__.py b/beesdoo_inventory/__manifest__.py index ab53f95ee..9fa6c5279 100644 --- a/beesdoo_inventory/__manifest__.py +++ b/beesdoo_inventory/__manifest__.py @@ -11,12 +11,12 @@ "author": "Beescoop - Cellule IT, Coop IT Easy SC", "website": "https://github.com/beescoop/Obeesdoo", "category": "Inventory", - "version": "12.0.2.0.1", + "version": "12.0.3.0.1", "depends": [ "stock", "beesdoo_product", # for field main_seller_id "stock_picking_responsible", - "stock_picking_copy_quantity", + "stock_move_line_auto_fill", ], "data": ["views/stock.xml"], "installable": True, diff --git a/beesdoo_inventory/migrations/12.0.3.0.1/post-migration.py b/beesdoo_inventory/migrations/12.0.3.0.1/post-migration.py new file mode 100644 index 000000000..087fe985b --- /dev/null +++ b/beesdoo_inventory/migrations/12.0.3.0.1/post-migration.py @@ -0,0 +1,25 @@ +import logging + +from odoo import SUPERUSER_ID +from odoo.api import Environment + +_logger = logging.getLogger(__name__) + + +def migrate(cr, version): + # remove all users from group "Manage Packages" sometimes + # translated as "Gérer les emplacements multiples + # et les entrepôts" + _logger.info( + "removing all users from groups 'Manage Packages'," + " 'Manage Multiple Stock Locations'" + " and 'Manage Different Stock Owners'" + ) + with Environment.manage(): + env = Environment(cr, SUPERUSER_ID, {}) + group_tracking_lot = env.ref("stock.group_tracking_lot") + group_stock_multi_locations = env.ref("stock.group_stock_multi_locations") + group_tracking_owner = env.ref("stock.group_tracking_owner") + group_tracking_lot.users = [(5, 0, 0)] + group_stock_multi_locations.users = [(5, 0, 0)] + group_tracking_owner.users = [(5, 0, 0)] diff --git a/setup/stock_picking_copy_quantity/odoo/addons/stock_picking_copy_quantity b/setup/stock_picking_copy_quantity/odoo/addons/stock_picking_copy_quantity deleted file mode 120000 index 45f65666c..000000000 --- a/setup/stock_picking_copy_quantity/odoo/addons/stock_picking_copy_quantity +++ /dev/null @@ -1 +0,0 @@ -../../../../stock_picking_copy_quantity \ No newline at end of file diff --git a/setup/stock_picking_copy_quantity/setup.py b/setup/stock_picking_copy_quantity/setup.py deleted file mode 100644 index 28c57bb64..000000000 --- a/setup/stock_picking_copy_quantity/setup.py +++ /dev/null @@ -1,6 +0,0 @@ -import setuptools - -setuptools.setup( - setup_requires=['setuptools-odoo'], - odoo_addon=True, -) diff --git a/stock_picking_copy_quantity/README.rst b/stock_picking_copy_quantity/README.rst deleted file mode 100644 index c5a9dde83..000000000 --- a/stock_picking_copy_quantity/README.rst +++ /dev/null @@ -1,68 +0,0 @@ -================= -Beesdoo Inventory -================= - -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! This file is generated by oca-gen-addon-readme !! - !! changes will be overwritten. !! - !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -.. |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-beescoop%2Fobeesdoo-lightgray.png?logo=github - :target: https://github.com/beescoop/obeesdoo/tree/12.0/stock_picking_copy_quantity - :alt: beescoop/obeesdoo - -|badge1| |badge2| |badge3| - -Adds a button to copy required quantities to done quantities on stock pickings. - -**Table of contents** - -.. contents:: - :local: - -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 smashing it by providing a detailed and welcomed -`feedback `_. - -Do not contact contributors directly about support or help with technical issues. - -Credits -======= - -Authors -~~~~~~~ - -* Beescoop - Cellule IT -* Coop IT Easy SC - -Contributors -~~~~~~~~~~~~ - -* `BEES coop SC `_ : - - * Augustin Borsu - * Elise Dupont - * Thibault François - * Jean-Marc François - -* `Coop IT Easy SCRLfs `_: - - * Houssine Bakkali - * Robin Keunen - -Maintainers -~~~~~~~~~~~ - -This module is part of the `beescoop/obeesdoo `_ project on GitHub. - -You are welcome to contribute. diff --git a/stock_picking_copy_quantity/__init__.py b/stock_picking_copy_quantity/__init__.py deleted file mode 100644 index 0650744f6..000000000 --- a/stock_picking_copy_quantity/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import models diff --git a/stock_picking_copy_quantity/__manifest__.py b/stock_picking_copy_quantity/__manifest__.py deleted file mode 100644 index f110044ba..000000000 --- a/stock_picking_copy_quantity/__manifest__.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2017 - 2020 BEES coop SCRLfs -# - Augustin Borsu -# - Elise Dupont -# - Thibault François -# - Jean-Marc François -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -{ - "name": "Stock Picking Copy Quantity", - "summary": "Adds a button to copy required quantities" - " to done quantities on stock pickings.", - "author": "Beescoop - Cellule IT, Coop IT Easy SC", - "website": "https://github.com/beescoop/Obeesdoo", - "category": "Inventory", - "version": "12.0.1.0.2", - "depends": [ - "stock", - ], - "data": ["views/stock_picking.xml"], - "installable": True, - "license": "AGPL-3", -} diff --git a/stock_picking_copy_quantity/i18n/fr_BE.po b/stock_picking_copy_quantity/i18n/fr_BE.po deleted file mode 100644 index 72fa8c6ec..000000000 --- a/stock_picking_copy_quantity/i18n/fr_BE.po +++ /dev/null @@ -1,27 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * stock_picking_copy_quantity -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-24 13:53+0000\n" -"PO-Revision-Date: 2022-06-24 13:53+0000\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: stock_picking_copy_quantity -#: model_terms:ir.ui.view,arch_db:stock_picking_copy_quantity.view_picking_form -msgid "Copy Move Line Quantity" -msgstr "Copier les quantités demandées" - -#. module: stock_picking_copy_quantity -#: model:ir.model,name:stock_picking_copy_quantity.model_stock_picking -msgid "Transfer" -msgstr "Transfert" - diff --git a/stock_picking_copy_quantity/i18n/stock_picking_copy_quantity.pot b/stock_picking_copy_quantity/i18n/stock_picking_copy_quantity.pot deleted file mode 100644 index 7070be520..000000000 --- a/stock_picking_copy_quantity/i18n/stock_picking_copy_quantity.pot +++ /dev/null @@ -1,27 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * stock_picking_copy_quantity -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-06-24 13:59+0000\n" -"PO-Revision-Date: 2022-06-24 13:59+0000\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: stock_picking_copy_quantity -#: model_terms:ir.ui.view,arch_db:stock_picking_copy_quantity.view_picking_form -msgid "Copy Move Line Quantity" -msgstr "" - -#. module: stock_picking_copy_quantity -#: model:ir.model,name:stock_picking_copy_quantity.model_stock_picking -msgid "Transfer" -msgstr "" - diff --git a/stock_picking_copy_quantity/models/__init__.py b/stock_picking_copy_quantity/models/__init__.py deleted file mode 100644 index ae4c27227..000000000 --- a/stock_picking_copy_quantity/models/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import stock_picking diff --git a/stock_picking_copy_quantity/models/stock_picking.py b/stock_picking_copy_quantity/models/stock_picking.py deleted file mode 100644 index d60bfd132..000000000 --- a/stock_picking_copy_quantity/models/stock_picking.py +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright 2022 Coop IT Easy SC -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). - -from odoo import api, models - - -class StockPicking(models.Model): - _inherit = "stock.picking" - - @api.multi - def copy_qty(self): - self.ensure_one() - for move_line in self.move_line_ids: - move_line.qty_done = move_line.product_qty - return True diff --git a/stock_picking_copy_quantity/readme/CONTRIBUTORS.rst b/stock_picking_copy_quantity/readme/CONTRIBUTORS.rst deleted file mode 100644 index 9b6d262bf..000000000 --- a/stock_picking_copy_quantity/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,11 +0,0 @@ -* `BEES coop SC `_ : - - * Augustin Borsu - * Elise Dupont - * Thibault François - * Jean-Marc François - -* `Coop IT Easy SCRLfs `_: - - * Houssine Bakkali - * Robin Keunen diff --git a/stock_picking_copy_quantity/readme/DESCRIPTION.rst b/stock_picking_copy_quantity/readme/DESCRIPTION.rst deleted file mode 100644 index 36bb26c4e..000000000 --- a/stock_picking_copy_quantity/readme/DESCRIPTION.rst +++ /dev/null @@ -1 +0,0 @@ -Adds a button to copy required quantities to done quantities on stock pickings. diff --git a/stock_picking_copy_quantity/static/description/index.html b/stock_picking_copy_quantity/static/description/index.html deleted file mode 100644 index db03efecd..000000000 --- a/stock_picking_copy_quantity/static/description/index.html +++ /dev/null @@ -1,426 +0,0 @@ - - - - - - -Beesdoo Inventory - - - -
    -

    Beesdoo Inventory

    - - -

    Beta License: AGPL-3 beescoop/obeesdoo

    -

    Adds a button to copy required quantities to done quantities on stock pickings.

    -

    Table of contents

    - -
    -

    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 smashing it by providing a detailed and welcomed -feedback.

    -

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

    -
    -
    -

    Credits

    -
    -

    Authors

    -
      -
    • Beescoop - Cellule IT
    • -
    • Coop IT Easy SC
    • -
    -
    -
    -

    Contributors

    - -
    -
    -

    Maintainers

    -

    This module is part of the beescoop/obeesdoo project on GitHub.

    -

    You are welcome to contribute.

    -
    -
    -
    - - diff --git a/stock_picking_copy_quantity/tests/__init__.py b/stock_picking_copy_quantity/tests/__init__.py deleted file mode 100644 index 6462f992b..000000000 --- a/stock_picking_copy_quantity/tests/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import test_copy_quantity diff --git a/stock_picking_copy_quantity/tests/test_copy_quantity.py b/stock_picking_copy_quantity/tests/test_copy_quantity.py deleted file mode 100644 index 74690b21a..000000000 --- a/stock_picking_copy_quantity/tests/test_copy_quantity.py +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 2022 Coop IT Easy SC -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). - -from odoo.tests.common import TransactionCase - - -class TestCopyQuantity(TransactionCase): - def setUp(self): - super().setUp() - self.partner = self.browse_ref("base.res_partner_2") - self.picking_type_out = self.browse_ref("stock.picking_type_out") - self.supplier_location = self.browse_ref("stock.stock_location_suppliers") - self.stock_location = self.browse_ref("stock.stock_location_stock") - self.product_a = self.env["product.product"].create({"name": "Product A"}) - self.product_b = self.env["product.product"].create({"name": "Product B"}) - - def test_move_line_quantities_are_copied(self): - picking = self.env["stock.picking"].create( - { - "partner_id": self.partner.id, - "picking_type_id": self.picking_type_out.id, - "location_id": self.supplier_location.id, - "location_dest_id": self.stock_location.id, - } - ) - move_a = self.env["stock.move"].create( - { - "name": self.product_a.name, - "product_id": self.product_a.id, - "product_uom_qty": 1, - "product_uom": self.product_a.uom_id.id, - "picking_id": picking.id, - "location_id": self.supplier_location.id, - "location_dest_id": self.stock_location.id, - } - ) - move_b = self.env["stock.move"].create( - { - "name": self.product_b.name, - "product_id": self.product_b.id, - "product_uom_qty": 2, - "product_uom": self.product_b.uom_id.id, - "picking_id": picking.id, - "location_id": self.supplier_location.id, - "location_dest_id": self.stock_location.id, - } - ) - - picking.action_confirm() - picking.copy_qty() - self.assertEquals(move_a.move_line_ids.qty_done, 1) - self.assertEquals(move_b.move_line_ids.qty_done, 2) diff --git a/stock_picking_copy_quantity/views/stock_picking.xml b/stock_picking_copy_quantity/views/stock_picking.xml deleted file mode 100644 index a510f5117..000000000 --- a/stock_picking_copy_quantity/views/stock_picking.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - stock.picking.form - stock.picking - - - - - - From e6b8d5b82751825f9cde28190838a336dd9c5986 Mon Sep 17 00:00:00 2001 From: Robin Keunen Date: Wed, 29 Jun 2022 15:07:03 +0200 Subject: [PATCH 12/12] [FIX] add stock_picking_responsible to test-requirements.txt --- test-requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test-requirements.txt b/test-requirements.txt index e0a7d624d..60f08e039 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -6,3 +6,4 @@ git+https://github.com/coopiteasy/addons@12.0#subdirectory=setup/partner_contact git+https://github.com/grap/grap-odoo-incubator@12.0#subdirectory=setup/product_print_category git+https://github.com/coopiteasy/account-invoicing@12.0-account_invoice_date_required#subdirectory=setup/account_invoice_date_required git+https://github.com/coopiteasy/account-invoicing@12.0-account_invoice_negative_total#subdirectory=setup/account_invoice_negative_total +git+https://github.com/coopiteasy/stock-logistics-workflow@12.0-add-stock_picking_responsible#subdirectory=setup/stock_picking_responsible