From dd3fc7444d1d4fa969b0dca48c613a8d40f4dc45 Mon Sep 17 00:00:00 2001 From: Michael Tietz Date: Wed, 15 Mar 2023 08:28:55 +0100 Subject: [PATCH] [ADD] shopfloor_reception_purchase_partner_ref: Shows the purchase.order partner_ref field on the reception picking views --- .../shopfloor_reception_purchase_partner_ref | 1 + .../setup.py | 6 + ...loor_reception_purchase_partner_ref_mobile | 1 + .../setup.py | 6 + .../README.rst | 82 ++++ .../__init__.py | 0 .../__manifest__.py | 11 + .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 2 + .../static/description/index.html | 422 ++++++++++++++++++ .../README.rst | 82 ++++ .../__init__.py | 0 .../__manifest__.py | 16 + .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 2 + .../static/description/index.html | 422 ++++++++++++++++++ .../static/src/scenario/reception.js | 32 ++ .../templates/assets.xml | 20 + 18 files changed, 1107 insertions(+) create mode 120000 setup/shopfloor_reception_purchase_partner_ref/odoo/addons/shopfloor_reception_purchase_partner_ref create mode 100644 setup/shopfloor_reception_purchase_partner_ref/setup.py create mode 120000 setup/shopfloor_reception_purchase_partner_ref_mobile/odoo/addons/shopfloor_reception_purchase_partner_ref_mobile create mode 100644 setup/shopfloor_reception_purchase_partner_ref_mobile/setup.py create mode 100644 shopfloor_reception_purchase_partner_ref/README.rst create mode 100644 shopfloor_reception_purchase_partner_ref/__init__.py create mode 100644 shopfloor_reception_purchase_partner_ref/__manifest__.py create mode 100644 shopfloor_reception_purchase_partner_ref/readme/CONTRIBUTORS.rst create mode 100644 shopfloor_reception_purchase_partner_ref/readme/DESCRIPTION.rst create mode 100644 shopfloor_reception_purchase_partner_ref/static/description/index.html create mode 100644 shopfloor_reception_purchase_partner_ref_mobile/README.rst create mode 100644 shopfloor_reception_purchase_partner_ref_mobile/__init__.py create mode 100644 shopfloor_reception_purchase_partner_ref_mobile/__manifest__.py create mode 100644 shopfloor_reception_purchase_partner_ref_mobile/readme/CONTRIBUTORS.rst create mode 100644 shopfloor_reception_purchase_partner_ref_mobile/readme/DESCRIPTION.rst create mode 100644 shopfloor_reception_purchase_partner_ref_mobile/static/description/index.html create mode 100644 shopfloor_reception_purchase_partner_ref_mobile/static/src/scenario/reception.js create mode 100644 shopfloor_reception_purchase_partner_ref_mobile/templates/assets.xml diff --git a/setup/shopfloor_reception_purchase_partner_ref/odoo/addons/shopfloor_reception_purchase_partner_ref b/setup/shopfloor_reception_purchase_partner_ref/odoo/addons/shopfloor_reception_purchase_partner_ref new file mode 120000 index 00000000000..fa30757d850 --- /dev/null +++ b/setup/shopfloor_reception_purchase_partner_ref/odoo/addons/shopfloor_reception_purchase_partner_ref @@ -0,0 +1 @@ +../../../../shopfloor_reception_purchase_partner_ref \ No newline at end of file diff --git a/setup/shopfloor_reception_purchase_partner_ref/setup.py b/setup/shopfloor_reception_purchase_partner_ref/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/shopfloor_reception_purchase_partner_ref/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/setup/shopfloor_reception_purchase_partner_ref_mobile/odoo/addons/shopfloor_reception_purchase_partner_ref_mobile b/setup/shopfloor_reception_purchase_partner_ref_mobile/odoo/addons/shopfloor_reception_purchase_partner_ref_mobile new file mode 120000 index 00000000000..2b0ae97b9bb --- /dev/null +++ b/setup/shopfloor_reception_purchase_partner_ref_mobile/odoo/addons/shopfloor_reception_purchase_partner_ref_mobile @@ -0,0 +1 @@ +../../../../shopfloor_reception_purchase_partner_ref_mobile \ No newline at end of file diff --git a/setup/shopfloor_reception_purchase_partner_ref_mobile/setup.py b/setup/shopfloor_reception_purchase_partner_ref_mobile/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/shopfloor_reception_purchase_partner_ref_mobile/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/shopfloor_reception_purchase_partner_ref/README.rst b/shopfloor_reception_purchase_partner_ref/README.rst new file mode 100644 index 00000000000..cdabcfc070e --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref/README.rst @@ -0,0 +1,82 @@ +======================================== +Shopfloor Reception Purchase Partner Ref +======================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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-OCA%2Fwms-lightgray.png?logo=github + :target: https://github.com/OCA/wms/tree/14.0/shopfloor_reception_purchase_partner_ref + :alt: OCA/wms +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/wms-14-0/wms-14-0-shopfloor_reception_purchase_partner_ref + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/wms&target_branch=14.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Shopfloor extension of the reception scenario. +Show the purchase.order partner_ref field on the picking views + +**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 +~~~~~~~ + +* MT Software + +Contributors +~~~~~~~~~~~~ + +* Michael Tietz (MT Software) + +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-mt-software-de| image:: https://github.com/mt-software-de.png?size=40px + :target: https://github.com/mt-software-de + :alt: mt-software-de + +Current `maintainer `__: + +|maintainer-mt-software-de| + +This module is part of the `OCA/wms `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/shopfloor_reception_purchase_partner_ref/__init__.py b/shopfloor_reception_purchase_partner_ref/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/shopfloor_reception_purchase_partner_ref/__manifest__.py b/shopfloor_reception_purchase_partner_ref/__manifest__.py new file mode 100644 index 00000000000..828c6956537 --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref/__manifest__.py @@ -0,0 +1,11 @@ +{ + "name": "Shopfloor Reception Purchase Partner Ref", + "summary": "Adds the purchase partner ref field to shopfloor reception scenario", + "version": "14.0.1.0.0", + "category": "Inventory", + "website": "https://github.com/OCA/wms", + "author": "MT Software, Odoo Community Association (OCA)", + "maintainers": ["mt-software-de"], + "license": "AGPL-3", + "depends": ["shopfloor_purchase_base", "shopfloor_reception", "purchase_stock"], +} diff --git a/shopfloor_reception_purchase_partner_ref/readme/CONTRIBUTORS.rst b/shopfloor_reception_purchase_partner_ref/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..446fd1d5769 --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Michael Tietz (MT Software) diff --git a/shopfloor_reception_purchase_partner_ref/readme/DESCRIPTION.rst b/shopfloor_reception_purchase_partner_ref/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..640124599b7 --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +Shopfloor extension of the reception scenario. +Show the purchase.order partner_ref field on the picking views diff --git a/shopfloor_reception_purchase_partner_ref/static/description/index.html b/shopfloor_reception_purchase_partner_ref/static/description/index.html new file mode 100644 index 00000000000..26a20d8ba10 --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref/static/description/index.html @@ -0,0 +1,422 @@ + + + + + + +Shopfloor Reception Purchase Partner Ref + + + +
+

Shopfloor Reception Purchase Partner Ref

+ + +

Beta License: AGPL-3 OCA/wms Translate me on Weblate Try me on Runboat

+

Shopfloor extension of the reception scenario. +Show the purchase.order partner_ref field on the picking views

+

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

+
    +
  • 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:

+

mt-software-de

+

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

+

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

+
+
+
+ + diff --git a/shopfloor_reception_purchase_partner_ref_mobile/README.rst b/shopfloor_reception_purchase_partner_ref_mobile/README.rst new file mode 100644 index 00000000000..7c1dc763476 --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref_mobile/README.rst @@ -0,0 +1,82 @@ +=============================================== +Shopfloor Reception Purchase Partner Ref Mobile +=============================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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-OCA%2Fwms-lightgray.png?logo=github + :target: https://github.com/OCA/wms/tree/14.0/shopfloor_reception_purchase_partner_ref_mobile + :alt: OCA/wms +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/wms-14-0/wms-14-0-shopfloor_reception_purchase_partner_ref_mobile + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/wms&target_branch=14.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Shopfloor extensio of the reception scenario. +Show the purchase.order partner_ref field on the picking views + +**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 +~~~~~~~ + +* MT Software + +Contributors +~~~~~~~~~~~~ + +* Michael Tietz (MT Software) + +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-mt-software-de| image:: https://github.com/mt-software-de.png?size=40px + :target: https://github.com/mt-software-de + :alt: mt-software-de + +Current `maintainer `__: + +|maintainer-mt-software-de| + +This module is part of the `OCA/wms `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/shopfloor_reception_purchase_partner_ref_mobile/__init__.py b/shopfloor_reception_purchase_partner_ref_mobile/__init__.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/shopfloor_reception_purchase_partner_ref_mobile/__manifest__.py b/shopfloor_reception_purchase_partner_ref_mobile/__manifest__.py new file mode 100644 index 00000000000..79e048c7973 --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref_mobile/__manifest__.py @@ -0,0 +1,16 @@ +{ + "name": "Shopfloor Reception Purchase Partner Ref Mobile", + "summary": "Adds the purchase partner ref field to shopfloor reception scenario", + "version": "14.0.1.0.0", + "category": "Inventory", + "website": "https://github.com/OCA/wms", + "author": "MT Software, Odoo Community Association (OCA)", + "maintainers": ["mt-software-de"], + "license": "AGPL-3", + "depends": [ + "shopfloor_reception_purchase_partner_ref", + "shopfloor_reception_mobile", + ], + "data": ["templates/assets.xml"], + "auto_install": True, +} diff --git a/shopfloor_reception_purchase_partner_ref_mobile/readme/CONTRIBUTORS.rst b/shopfloor_reception_purchase_partner_ref_mobile/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..446fd1d5769 --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref_mobile/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Michael Tietz (MT Software) diff --git a/shopfloor_reception_purchase_partner_ref_mobile/readme/DESCRIPTION.rst b/shopfloor_reception_purchase_partner_ref_mobile/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..2060028106f --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref_mobile/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +Shopfloor extensio of the reception scenario. +Show the purchase.order partner_ref field on the picking views diff --git a/shopfloor_reception_purchase_partner_ref_mobile/static/description/index.html b/shopfloor_reception_purchase_partner_ref_mobile/static/description/index.html new file mode 100644 index 00000000000..1847c8edccc --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref_mobile/static/description/index.html @@ -0,0 +1,422 @@ + + + + + + +Shopfloor Reception Purchase Partner Ref Mobile + + + +
+

Shopfloor Reception Purchase Partner Ref Mobile

+ + +

Beta License: AGPL-3 OCA/wms Translate me on Weblate Try me on Runboat

+

Shopfloor extensio of the reception scenario. +Show the purchase.order partner_ref field on the picking views

+

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

+
    +
  • 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:

+

mt-software-de

+

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

+

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

+
+
+
+ + diff --git a/shopfloor_reception_purchase_partner_ref_mobile/static/src/scenario/reception.js b/shopfloor_reception_purchase_partner_ref_mobile/static/src/scenario/reception.js new file mode 100644 index 00000000000..476c3c1c050 --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref_mobile/static/src/scenario/reception.js @@ -0,0 +1,32 @@ +/** + * Copyright 2023 Michael Tietz (MT Software) + * License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + */ + +import {process_registry} from "/shopfloor_mobile_base/static/wms/src/services/process_registry.js"; + +const reception_scenario = process_registry.get("reception"); +const select_dest_package_display_name_values = + reception_scenario.component.methods.select_dest_package_display_name_values; +const picking_display_fields = + reception_scenario.component.methods.picking_display_fields; + +const ReceptionPartnerRef = process_registry.extend("reception", { + "methods.select_dest_package_display_name_values": function (rec) { + var values = select_dest_package_display_name_values.bind(this)(rec); + if (rec.purchase_order.partner_ref) { + values.splice(1, 0, rec.purchase_order.partner_ref); + } + return values; + }, + "methods.picking_display_fields": function () { + var fields = picking_display_fields.bind(this)(); + fields.splice(1, 0, { + path: "purchase_order.partner_ref", + label: "Vendor Reference", + }); + return fields; + }, +}); + +process_registry.replace("reception", ReceptionPartnerRef); diff --git a/shopfloor_reception_purchase_partner_ref_mobile/templates/assets.xml b/shopfloor_reception_purchase_partner_ref_mobile/templates/assets.xml new file mode 100644 index 00000000000..552e8ab01a2 --- /dev/null +++ b/shopfloor_reception_purchase_partner_ref_mobile/templates/assets.xml @@ -0,0 +1,20 @@ + + + +