diff --git a/delivery_line_sale_line_position/README.rst b/delivery_line_sale_line_position/README.rst new file mode 100644 index 000000000..ed2d6d2c6 --- /dev/null +++ b/delivery_line_sale_line_position/README.rst @@ -0,0 +1,89 @@ +================================ +Delivery Line Sale Line Position +================================ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:7ba41841292dd8d0f1ebfa8e4a7a1d888af174803fc97381079c91cd6532c2c2 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github + :target: https://github.com/OCA/stock-logistics-reporting/tree/17.0/delivery_line_sale_line_position + :alt: OCA/stock-logistics-reporting +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/stock-logistics-reporting-17-0/stock-logistics-reporting-17-0-delivery_line_sale_line_position + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-reporting&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module is build on top of the module sale_order_line_position. + +On the delivery report it adds a column with the Position from the +related sale order line. + +The Position can also made visible int the stock picking view. + +**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 +------------ + +- Thierry Ducrest +- `Trobz `__: +- Do Anh Duy + +Other credits +------------- + +The migration of this module from 16.0 to 17.0 was financially supported +by Camptocamp + +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/stock-logistics-reporting `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/delivery_line_sale_line_position/__init__.py b/delivery_line_sale_line_position/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/delivery_line_sale_line_position/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/delivery_line_sale_line_position/__manifest__.py b/delivery_line_sale_line_position/__manifest__.py new file mode 100644 index 000000000..ca75e46d0 --- /dev/null +++ b/delivery_line_sale_line_position/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2021 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +{ + "name": "Delivery Line Sale Line Position", + "summary": "Adds the sale line position to the delivery report lines", + "version": "17.0.1.0.0", + "category": "Delivery", + "author": "Camptocamp, Odoo Community Association (OCA)", + "license": "AGPL-3", + "website": "https://github.com/OCA/stock-logistics-reporting", + "depends": ["stock", "sale_order_line_position"], + "data": [ + "report/report_deliveryslip.xml", + "views/stock_move.xml", + "views/stock_picking.xml", + ], + "installable": True, +} diff --git a/delivery_line_sale_line_position/i18n/delivery_line_sale_line_position.pot b/delivery_line_sale_line_position/i18n/delivery_line_sale_line_position.pot new file mode 100644 index 000000000..787748516 --- /dev/null +++ b/delivery_line_sale_line_position/i18n/delivery_line_sale_line_position.pot @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * delivery_line_sale_line_position +# +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" + +#. module: delivery_line_sale_line_position +#: model_terms:ir.ui.view,arch_db:delivery_line_sale_line_position.report_delivery_document +msgid "Pos" +msgstr "" + +#. module: delivery_line_sale_line_position +#: model:ir.model.fields,field_description:delivery_line_sale_line_position.field_stock_move__position_sale_line +#: model:ir.model.fields,field_description:delivery_line_sale_line_position.field_stock_move_line__position_sale_line +msgid "Position" +msgstr "" + +#. module: delivery_line_sale_line_position +#: model:ir.model,name:delivery_line_sale_line_position.model_stock_move_line +msgid "Product Moves (Stock Move Line)" +msgstr "" + +#. module: delivery_line_sale_line_position +#: model:ir.model,name:delivery_line_sale_line_position.model_stock_move +msgid "Stock Move" +msgstr "" diff --git a/delivery_line_sale_line_position/models/__init__.py b/delivery_line_sale_line_position/models/__init__.py new file mode 100644 index 000000000..f800274cd --- /dev/null +++ b/delivery_line_sale_line_position/models/__init__.py @@ -0,0 +1,2 @@ +from . import stock_move +from . import stock_move_line diff --git a/delivery_line_sale_line_position/models/stock_move.py b/delivery_line_sale_line_position/models/stock_move.py new file mode 100644 index 000000000..541936078 --- /dev/null +++ b/delivery_line_sale_line_position/models/stock_move.py @@ -0,0 +1,13 @@ +# Copyright 2021 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from odoo import fields, models + + +class StockMove(models.Model): + _inherit = "stock.move" + + position_sale_line = fields.Char( + related="sale_line_id.position_formatted", + string="Position", + ) diff --git a/delivery_line_sale_line_position/models/stock_move_line.py b/delivery_line_sale_line_position/models/stock_move_line.py new file mode 100644 index 000000000..158f2f19e --- /dev/null +++ b/delivery_line_sale_line_position/models/stock_move_line.py @@ -0,0 +1,12 @@ +# Copyright 2021 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from odoo import fields, models + + +class StockMoveLine(models.Model): + _inherit = "stock.move.line" + + position_sale_line = fields.Char( + related="move_id.position_sale_line", string="Position" + ) diff --git a/delivery_line_sale_line_position/pyproject.toml b/delivery_line_sale_line_position/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/delivery_line_sale_line_position/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/delivery_line_sale_line_position/readme/CONTRIBUTORS.md b/delivery_line_sale_line_position/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..7c732199b --- /dev/null +++ b/delivery_line_sale_line_position/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- Thierry Ducrest \<\> +- [Trobz](https://trobz.com): +- Do Anh Duy \<\> diff --git a/delivery_line_sale_line_position/readme/CREDITS.md b/delivery_line_sale_line_position/readme/CREDITS.md new file mode 100644 index 000000000..7c48f8e03 --- /dev/null +++ b/delivery_line_sale_line_position/readme/CREDITS.md @@ -0,0 +1,2 @@ +The migration of this module from 16.0 to 17.0 was financially supported +by Camptocamp diff --git a/delivery_line_sale_line_position/readme/DESCRIPTION.md b/delivery_line_sale_line_position/readme/DESCRIPTION.md new file mode 100644 index 000000000..8d0e551b0 --- /dev/null +++ b/delivery_line_sale_line_position/readme/DESCRIPTION.md @@ -0,0 +1,6 @@ +This module is build on top of the module sale_order_line_position. + +On the delivery report it adds a column with the Position from the +related sale order line. + +The Position can also made visible int the stock picking view. diff --git a/delivery_line_sale_line_position/report/report_deliveryslip.xml b/delivery_line_sale_line_position/report/report_deliveryslip.xml new file mode 100644 index 000000000..b8d34030d --- /dev/null +++ b/delivery_line_sale_line_position/report/report_deliveryslip.xml @@ -0,0 +1,52 @@ + + + + + + + diff --git a/delivery_line_sale_line_position/static/description/icon.png b/delivery_line_sale_line_position/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/delivery_line_sale_line_position/static/description/icon.png differ diff --git a/delivery_line_sale_line_position/static/description/index.html b/delivery_line_sale_line_position/static/description/index.html new file mode 100644 index 000000000..9c4eef5da --- /dev/null +++ b/delivery_line_sale_line_position/static/description/index.html @@ -0,0 +1,434 @@ + + + + + +Delivery Line Sale Line Position + + + +
+

Delivery Line Sale Line Position

+ + +

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

+

This module is build on top of the module sale_order_line_position.

+

On the delivery report it adds a column with the Position from the +related sale order line.

+

The Position can also made visible int the stock picking view.

+

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

Contributors

+ +
+
+

Other credits

+

The migration of this module from 16.0 to 17.0 was financially supported +by 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.

+

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

+

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

+
+
+
+ + diff --git a/delivery_line_sale_line_position/views/stock_move.xml b/delivery_line_sale_line_position/views/stock_move.xml new file mode 100644 index 000000000..4423303ca --- /dev/null +++ b/delivery_line_sale_line_position/views/stock_move.xml @@ -0,0 +1,18 @@ + + + + + stock.move.line.operations.tree + stock.move.line + + + + + + + + + diff --git a/delivery_line_sale_line_position/views/stock_picking.xml b/delivery_line_sale_line_position/views/stock_picking.xml new file mode 100644 index 000000000..614c12f96 --- /dev/null +++ b/delivery_line_sale_line_position/views/stock_picking.xml @@ -0,0 +1,18 @@ + + + + + stock.view.picking.form + stock.picking + + + + + + + + + diff --git a/pandoc-3.1.13-1-amd64.deb b/pandoc-3.1.13-1-amd64.deb new file mode 100644 index 000000000..4e92a180b Binary files /dev/null and b/pandoc-3.1.13-1-amd64.deb differ diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 000000000..73ac29a62 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1 @@ +odoo-addon-sale_order_line_position @ git+https://github.com/OCA/sale-reporting.git@refs/pull/264/head#subdirectory=sale_order_line_position