From 090c248f0d37da92abfdbd04b5fb6ddb57c963a1 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Mon, 6 Jul 2020 12:47:14 +0200 Subject: [PATCH 01/45] [13.0][ADD] ddmrp_packaging --- ddmrp_packaging/README.rst | 87 ++++ ddmrp_packaging/__init__.py | 1 + ddmrp_packaging/__manifest__.py | 16 + ddmrp_packaging/models/__init__.py | 1 + ddmrp_packaging/models/stock_buffer.py | 51 ++ ddmrp_packaging/readme/CONTRIBUTORS.rst | 1 + ddmrp_packaging/readme/DESCRIPTION.rst | 1 + ddmrp_packaging/readme/HISTORY.rst | 4 + ddmrp_packaging/readme/INSTALL.rst | 2 + ddmrp_packaging/static/description/icon.png | Bin 0 -> 7006 bytes ddmrp_packaging/static/description/index.html | 438 ++++++++++++++++++ ddmrp_packaging/views/stock_buffer_view.xml | 16 + 12 files changed, 618 insertions(+) create mode 100644 ddmrp_packaging/README.rst create mode 100644 ddmrp_packaging/__init__.py create mode 100644 ddmrp_packaging/__manifest__.py create mode 100644 ddmrp_packaging/models/__init__.py create mode 100644 ddmrp_packaging/models/stock_buffer.py create mode 100644 ddmrp_packaging/readme/CONTRIBUTORS.rst create mode 100644 ddmrp_packaging/readme/DESCRIPTION.rst create mode 100644 ddmrp_packaging/readme/HISTORY.rst create mode 100644 ddmrp_packaging/readme/INSTALL.rst create mode 100644 ddmrp_packaging/static/description/icon.png create mode 100644 ddmrp_packaging/static/description/index.html create mode 100644 ddmrp_packaging/views/stock_buffer_view.xml diff --git a/ddmrp_packaging/README.rst b/ddmrp_packaging/README.rst new file mode 100644 index 000000000..f07d65d35 --- /dev/null +++ b/ddmrp_packaging/README.rst @@ -0,0 +1,87 @@ +=============== +DDMRP Packaging +=============== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fddmrp-lightgray.png?logo=github + :target: https://github.com/OCA/ddmrp/tree/13.0/ddmrp_packaging + :alt: OCA/ddmrp +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/ddmrp-13-0/ddmrp-13-0-ddmrp_packaging + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/255/13.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module integrate packagings into the DDMRP app. + +**Table of contents** + +.. contents:: + :local: + +Installation +============ + +It is recommended to use this module in conjunction with +`purchase_order_line_packaging_qty `_. + +Changelog +========= + +13.0.1.0.0 (2020-07-06) +~~~~~~~~~~~~~~~~~~~~~~~ + +* Module Added. + +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 +~~~~~~~ + +* ForgeFlow + +Contributors +~~~~~~~~~~~~ + +* Lois Rilo Antelo + +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. + +This module is part of the `OCA/ddmrp `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/ddmrp_packaging/__init__.py b/ddmrp_packaging/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/ddmrp_packaging/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/ddmrp_packaging/__manifest__.py b/ddmrp_packaging/__manifest__.py new file mode 100644 index 000000000..1c9cfa251 --- /dev/null +++ b/ddmrp_packaging/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com) +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). + +{ + "name": "DDMRP Packaging", + "summary": "DDMRP integration with packaging", + "version": "13.0.1.0.0", + "author": "ForgeFlow, Odoo Community Association (OCA)", + "website": "https://www.forgeflow.com", + "category": "Warehouse Management", + "depends": ["ddmrp"], + "data": ["views/stock_buffer_view.xml"], + "license": "LGPL-3", + "installable": True, + "auto_install": False, +} diff --git a/ddmrp_packaging/models/__init__.py b/ddmrp_packaging/models/__init__.py new file mode 100644 index 000000000..46f971b6d --- /dev/null +++ b/ddmrp_packaging/models/__init__.py @@ -0,0 +1 @@ +from . import stock_buffer diff --git a/ddmrp_packaging/models/stock_buffer.py b/ddmrp_packaging/models/stock_buffer.py new file mode 100644 index 000000000..317b14adf --- /dev/null +++ b/ddmrp_packaging/models/stock_buffer.py @@ -0,0 +1,51 @@ +# Copyright 2020 ForgeFlow S.L. (https://www.forgeflow.com) +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). + +from odoo import _, api, fields, models + + +class StockBuffer(models.Model): + _inherit = "stock.buffer" + + packaging_id = fields.Many2one( + string="Purchase Packaging", + comodel_name="product.packaging", + check_company=True, + domain="[('product_id', '=', product_id), " + "'|', ('company_id', '=', False), " + "('company_id', '=', company_id)]", + ) + + @api.onchange("packaging_id", "procure_uom_id", "qty_multiple") + def _onchange_packaging_id(self): + res = self._check_package() + return res + + def _check_package(self): + pack = self.packaging_id + qty = self.qty_multiple + procure_uom = self.procure_uom_id or self.product_uom + q = self.product_uom._compute_quantity(pack.qty, procure_uom) + if qty and q and round(qty % q, 2): + newqty = qty - (qty % q) + q + return { + "warning": { + "title": _("Warning"), + "message": _( + "This product is packaged by %.2f %s. You should " + "set 'Qty Multiple' to %.2f %s." + ) + % (pack.qty, self.product_uom.name, newqty, procure_uom.name), + }, + } + return {} + + def _prepare_procurement_values( + self, product_qty, date=False, group=False, + ): + values = super()._prepare_procurement_values( + product_qty=product_qty, date=date, group=group + ) + if self.packaging_id: + values["product_packaging_id"] = self.packaging_id + return values diff --git a/ddmrp_packaging/readme/CONTRIBUTORS.rst b/ddmrp_packaging/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..611afb02f --- /dev/null +++ b/ddmrp_packaging/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Lois Rilo Antelo diff --git a/ddmrp_packaging/readme/DESCRIPTION.rst b/ddmrp_packaging/readme/DESCRIPTION.rst new file mode 100644 index 000000000..d9cffa397 --- /dev/null +++ b/ddmrp_packaging/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module integrate packagings into the DDMRP app. diff --git a/ddmrp_packaging/readme/HISTORY.rst b/ddmrp_packaging/readme/HISTORY.rst new file mode 100644 index 000000000..c2441f61e --- /dev/null +++ b/ddmrp_packaging/readme/HISTORY.rst @@ -0,0 +1,4 @@ +13.0.1.0.0 (2020-07-06) +~~~~~~~~~~~~~~~~~~~~~~~ + +* Module Added. diff --git a/ddmrp_packaging/readme/INSTALL.rst b/ddmrp_packaging/readme/INSTALL.rst new file mode 100644 index 000000000..18cf2a59e --- /dev/null +++ b/ddmrp_packaging/readme/INSTALL.rst @@ -0,0 +1,2 @@ +It is recommended to use this module in conjunction with +`purchase_order_line_packaging_qty `_. diff --git a/ddmrp_packaging/static/description/icon.png b/ddmrp_packaging/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..b911602f4249dfb221995681bc0b91bf90499c3f GIT binary patch literal 7006 zcmV-k8=>ThP)g0$j{;%QO2fh}0)X>A<4?Zw#jn1jvwrFH&rht>)=sT8u8*VSgTNvq z(!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5Ys?`CS3+CU@5Ec-CAbBCp?duX&> zdk77s9m51=kf1>a&`5W-fhJhvnEahg?NT$y^KkpYz1XpH9QKOFJfJb<>LoN3zSEml zHV-sz8aqyr(0ICKnQ*$NbkN8)q)TWl6mo;6tJ8@$2Q(Z?W5+218V`iq5ADPF#2BK+ zH0_}gX`;%X1sdcG4TBq=UEfY5KWKt9!%DMxpdk=$KeQhc3Kk21%?^#vSaX+Xb|~$k z;S|uA8)yB327#cg&_H%W;}fGor*eEIXl$Lmfd&!Ki1NG8Fg35|c3^%oG}si-=nEY{ zLqwQ7ybohL#&!J8pb6HgcxVs-jr!xRf)rg+Zn9mWAtD?&v=?LJq8rk;9s2=|1S4-~ zRDE)PCC7Gy#`6dV4)4d<_?VS{G0+&lB|xLgm@hP72C>)qv^q%?G(k`F9vZu;h7&sv zXgtruIJM>ue3KSswD zEcT$$g~kqV4~<=}Bw-mH2~{R5GNCy`MO`OhtK+|e8 z>pgv&crMUH9DEdnM&}jK*(o%oatQ|x?Ze2}2y8NY0Zo$5UPH5XbA8!kLQgmRBtgU4 z2no;tvC!Dfxb=j{(U}z*uS9ZyJK`AFlsivovg?G@Su`}QW(x~f7Nm35ZSw7UuGSxF%V{8$z zR2Bo=a-|IT0xz|49xR?6nFp3^t;$!s1X#SUSgqWb`;I^aA|LwfTe-V{e4(1uPlIGh zq&~A70#= + + + + + +DDMRP Packaging + + + +
+

DDMRP Packaging

+ + +

Beta License: LGPL-3 OCA/ddmrp Translate me on Weblate Try me on Runbot

+

This module integrate packagings into the DDMRP app.

+

Table of contents

+ +
+

Installation

+

It is recommended to use this module in conjunction with +purchase_order_line_packaging_qty.

+
+
+

Changelog

+
+

13.0.1.0.0 (2020-07-06)

+
    +
  • Module Added.
  • +
+
+
+
+

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

+
    +
  • ForgeFlow
  • +
+
+
+

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.

+

This module is part of the OCA/ddmrp project on GitHub.

+

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

+
+
+
+ + diff --git a/ddmrp_packaging/views/stock_buffer_view.xml b/ddmrp_packaging/views/stock_buffer_view.xml new file mode 100644 index 000000000..df10f109f --- /dev/null +++ b/ddmrp_packaging/views/stock_buffer_view.xml @@ -0,0 +1,16 @@ + + + + + stock.buffer.form - ddmrp_packaging + stock.buffer + + + + + + + + From e5469ca9f34abc1bfb096d0d5fc499e93bfacc69 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Wed, 8 Jul 2020 13:08:01 +0000 Subject: [PATCH 02/45] [UPD] Update ddmrp_packaging.pot --- ddmrp_packaging/i18n/ddmrp_packaging.pot | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 ddmrp_packaging/i18n/ddmrp_packaging.pot diff --git a/ddmrp_packaging/i18n/ddmrp_packaging.pot b/ddmrp_packaging/i18n/ddmrp_packaging.pot new file mode 100644 index 000000000..25ec6dca3 --- /dev/null +++ b/ddmrp_packaging/i18n/ddmrp_packaging.pot @@ -0,0 +1,38 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * ddmrp_packaging +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.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: ddmrp_packaging +#: model:ir.model.fields,field_description:ddmrp_packaging.field_stock_buffer__packaging_id +msgid "Purchase Packaging" +msgstr "" + +#. module: ddmrp_packaging +#: model:ir.model,name:ddmrp_packaging.model_stock_buffer +msgid "Stock Buffer" +msgstr "" + +#. module: ddmrp_packaging +#: code:addons/ddmrp_packaging/models/stock_buffer.py:0 +#, python-format +msgid "" +"This product is packaged by %.2f %s. You should set 'Qty Multiple' to %.2f " +"%s." +msgstr "" + +#. module: ddmrp_packaging +#: code:addons/ddmrp_packaging/models/stock_buffer.py:0 +#, python-format +msgid "Warning" +msgstr "" From 9e5ad1da861f29e026065bf4f2986e3db67edc3b Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 8 Jul 2020 13:14:40 +0000 Subject: [PATCH 03/45] [UPD] README.rst --- ddmrp_packaging/static/description/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ddmrp_packaging/static/description/index.html b/ddmrp_packaging/static/description/index.html index 7fe9f14a7..6067a289b 100644 --- a/ddmrp_packaging/static/description/index.html +++ b/ddmrp_packaging/static/description/index.html @@ -3,7 +3,7 @@ - + DDMRP Packaging -
-

DDMRP Packaging

+
+ + +Odoo Community Association + +
+

DDMRP Packaging

-

Beta License: LGPL-3 OCA/ddmrp Translate me on Weblate Try me on Runboat

+

Beta License: LGPL-3 OCA/ddmrp Translate me on Weblate Try me on Runboat

This module integrate packagings into the DDMRP app.

Table of contents

@@ -389,43 +394,43 @@

DDMRP Packaging

-

Installation

+

Installation

It is recommended to use this module in conjunction with purchase_stock_packaging.

-

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

  • ForgeFlow
-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -433,10 +438,11 @@

Maintainers

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.

-

This module is part of the OCA/ddmrp project on GitHub.

+

This module is part of the OCA/ddmrp project on GitHub.

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

+
From 6cb2a7bd22f2125b66bec3eeb53ed5afa6861bec Mon Sep 17 00:00:00 2001 From: Don Kendall Date: Mon, 15 Jun 2026 12:12:25 -0400 Subject: [PATCH 45/45] [MIG] ddmrp_packaging: Migration to 19.0 Signed-off-by: Don Kendall --- ddmrp_packaging/__manifest__.py | 2 +- ddmrp_packaging/tests/test_ddmrp_packaging.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ddmrp_packaging/__manifest__.py b/ddmrp_packaging/__manifest__.py index 9a6fbf49b..3633c7f7f 100644 --- a/ddmrp_packaging/__manifest__.py +++ b/ddmrp_packaging/__manifest__.py @@ -4,7 +4,7 @@ { "name": "DDMRP Packaging", "summary": "DDMRP integration with packaging", - "version": "18.0.1.0.0", + "version": "19.0.1.0.0", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/ddmrp", "category": "Warehouse Management", diff --git a/ddmrp_packaging/tests/test_ddmrp_packaging.py b/ddmrp_packaging/tests/test_ddmrp_packaging.py index 0e17fe36b..1c5a759e6 100644 --- a/ddmrp_packaging/tests/test_ddmrp_packaging.py +++ b/ddmrp_packaging/tests/test_ddmrp_packaging.py @@ -10,8 +10,8 @@ class TestDdmrpPackaging(TestDdmrpMaxProcTime): def setUp(self): super().setUp() - self.buffer1 = self.env.ref("ddmrp.stock_buffer_fp01") - self.buffer2 = self.env.ref("ddmrp.stock_buffer_rm01") + self.buffer1 = self.buffer_fp01 + self.buffer2 = self.buffer_rm01 self.packaging1 = self.env["product.packaging"].create( {