diff --git a/mrp_subcontracting_lot_number_propagation/models/mrp_production.py b/mrp_subcontracting_lot_number_propagation/models/mrp_production.py index 1693474a1..0f3707a60 100644 --- a/mrp_subcontracting_lot_number_propagation/models/mrp_production.py +++ b/mrp_subcontracting_lot_number_propagation/models/mrp_production.py @@ -28,8 +28,8 @@ class MrpProduction(models.Model): @api.depends( # New field dependencies to compute the propagated lot on the # "mrp_production_subcontracting_form_view" view. - "move_line_raw_ids.qty_done", - "move_line_raw_ids.lot_id", + "move_raw_ids.move_line_ids.qty_done", + "move_raw_ids.move_line_ids.lot_id", ) def _compute_propagated_lot_producing(self): return super()._compute_propagated_lot_producing() diff --git a/mrp_workorder_lot_display/README.rst b/mrp_workorder_lot_display/README.rst new file mode 100644 index 000000000..59464e3c9 --- /dev/null +++ b/mrp_workorder_lot_display/README.rst @@ -0,0 +1,85 @@ +========================= +MRP Workorder Lot Display +========================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:e726df15a4ae25057214413d6f606df0535b0680b30afc75f7bf6bb78c102f02 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fmanufacture-lightgray.png?logo=github + :target: https://github.com/OCA/manufacture/tree/15.0/mrp_workorder_lot_display + :alt: OCA/manufacture +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/manufacture-15-0/manufacture-15-0-mrp_workorder_lot_display + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/manufacture&target_branch=15.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module displays the lot number on workorders kanban view and adds a +quick search option on the finished lot number. + +**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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Camptocamp + +Contributors +------------ + +- Akim Juillerat akim.juillerat@camptocamp.com + +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-grindtildeath| image:: https://github.com/grindtildeath.png?size=40px + :target: https://github.com/grindtildeath + :alt: grindtildeath + +Current `maintainer `__: + +|maintainer-grindtildeath| + +This module is part of the `OCA/manufacture `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/mrp_workorder_lot_display/__init__.py b/mrp_workorder_lot_display/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/mrp_workorder_lot_display/__manifest__.py b/mrp_workorder_lot_display/__manifest__.py new file mode 100644 index 000000000..eac734aca --- /dev/null +++ b/mrp_workorder_lot_display/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2023 Camptocamp SA +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) +{ + "name": "MRP Workorder Lot Display", + "summary": "Display lot number on workorders kanban", + "version": "15.0.1.0.0", + "development_status": "Beta", + "category": "Manufacturing", + "website": "https://github.com/OCA/manufacture", + "author": "Camptocamp, Odoo Community Association (OCA)", + "maintainers": ["grindtildeath"], + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "mrp", + ], + "data": [ + "views/mrp_workorder.xml", + ], +} diff --git a/mrp_workorder_lot_display/i18n/it.po b/mrp_workorder_lot_display/i18n/it.po new file mode 100644 index 000000000..73388557f --- /dev/null +++ b/mrp_workorder_lot_display/i18n/it.po @@ -0,0 +1,14 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" diff --git a/mrp_workorder_lot_display/i18n/mrp_workorder_lot_display.pot b/mrp_workorder_lot_display/i18n/mrp_workorder_lot_display.pot new file mode 100644 index 000000000..78d58d53f --- /dev/null +++ b/mrp_workorder_lot_display/i18n/mrp_workorder_lot_display.pot @@ -0,0 +1,13 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.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" diff --git a/mrp_workorder_lot_display/readme/CONTRIBUTORS.md b/mrp_workorder_lot_display/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..c5b86defe --- /dev/null +++ b/mrp_workorder_lot_display/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Akim Juillerat diff --git a/mrp_workorder_lot_display/readme/DESCRIPTION.md b/mrp_workorder_lot_display/readme/DESCRIPTION.md new file mode 100644 index 000000000..5e04f0a70 --- /dev/null +++ b/mrp_workorder_lot_display/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module displays the lot number on workorders kanban view +and adds a quick search option on the finished lot number. diff --git a/mrp_workorder_lot_display/static/description/icon.png b/mrp_workorder_lot_display/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/mrp_workorder_lot_display/static/description/icon.png differ diff --git a/mrp_workorder_lot_display/static/description/index.html b/mrp_workorder_lot_display/static/description/index.html new file mode 100644 index 000000000..f8192c521 --- /dev/null +++ b/mrp_workorder_lot_display/static/description/index.html @@ -0,0 +1,424 @@ + + + + + + +MRP Workorder Lot Display + + + +
+

MRP Workorder Lot Display

+ + +

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

+

This module displays the lot number on workorders kanban view and adds a +quick search option on the finished lot number.

+

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

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Camptocamp
  • +
+
+ +
+

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:

+

grindtildeath

+

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

+

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

+
+
+
+ + diff --git a/mrp_workorder_lot_display/views/mrp_workorder.xml b/mrp_workorder_lot_display/views/mrp_workorder.xml new file mode 100644 index 000000000..489990a29 --- /dev/null +++ b/mrp_workorder_lot_display/views/mrp_workorder.xml @@ -0,0 +1,46 @@ + + + + mrp.production.work.order.select.inherit + mrp.workorder + + + + + + + + + + mrp.production.work.order.search.inherit + mrp.workorder + + + + + + + + + + mrp.production.work.order.kanban.inherit + mrp.workorder + + + + + + + / + + + + diff --git a/setup/mrp_workorder_lot_display/odoo/addons/mrp_workorder_lot_display b/setup/mrp_workorder_lot_display/odoo/addons/mrp_workorder_lot_display new file mode 120000 index 000000000..d176a181c --- /dev/null +++ b/setup/mrp_workorder_lot_display/odoo/addons/mrp_workorder_lot_display @@ -0,0 +1 @@ +../../../../mrp_workorder_lot_display \ No newline at end of file diff --git a/setup/mrp_workorder_lot_display/setup.py b/setup/mrp_workorder_lot_display/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/mrp_workorder_lot_display/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)