diff --git a/setup/stock_picking_report_valued_delivery_fee/odoo/addons/stock_picking_report_valued_delivery_fee b/setup/stock_picking_report_valued_delivery_fee/odoo/addons/stock_picking_report_valued_delivery_fee new file mode 120000 index 000000000..9f69d3156 --- /dev/null +++ b/setup/stock_picking_report_valued_delivery_fee/odoo/addons/stock_picking_report_valued_delivery_fee @@ -0,0 +1 @@ +../../../../stock_picking_report_valued_delivery_fee \ No newline at end of file diff --git a/setup/stock_picking_report_valued_delivery_fee/setup.py b/setup/stock_picking_report_valued_delivery_fee/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/stock_picking_report_valued_delivery_fee/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/stock_picking_report_valued_delivery_fee/README.rst b/stock_picking_report_valued_delivery_fee/README.rst new file mode 100644 index 000000000..a0836725a --- /dev/null +++ b/stock_picking_report_valued_delivery_fee/README.rst @@ -0,0 +1,102 @@ +==================================== +Valued Picking Report - Delivery Fee +==================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:7ca1754ed21dd14bf8cba222b7128628091fcb55a2ea73b1907fec74dc2e1c23 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png + :target: https://odoo-community.org/page/development-status + :alt: Alpha +.. |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/16.0/stock_picking_report_valued_delivery_fee + :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-16-0/stock-logistics-reporting-16-0-stock_picking_report_valued_delivery_fee + :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=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +When this module is active, the delivery fee will be added to the +picking total amount. + +.. IMPORTANT:: + This is an alpha version, the data model and design can change at any time without warning. + Only for development or testing purpose, do not use in production. + `More details on development status `_ + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +When you print the valued picking, the amount of the applied delivery +fee (if any) will be summed to the total amount although it will only be +rendered on the picking footer. + +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 +------- + +* Moduon + +Contributors +------------ + +- David Vidal (`Moduon `__) +- Emilio Pascual (`Moduon `__) +- Rafael Blasco (`Moduon `__) + +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-chienandalu| image:: https://github.com/chienandalu.png?size=40px + :target: https://github.com/chienandalu + :alt: chienandalu +.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px + :target: https://github.com/rafaelbn + :alt: rafaelbn + +Current `maintainers `__: + +|maintainer-chienandalu| |maintainer-rafaelbn| + +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/stock_picking_report_valued_delivery_fee/__init__.py b/stock_picking_report_valued_delivery_fee/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/stock_picking_report_valued_delivery_fee/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_picking_report_valued_delivery_fee/__manifest__.py b/stock_picking_report_valued_delivery_fee/__manifest__.py new file mode 100644 index 000000000..1043893ce --- /dev/null +++ b/stock_picking_report_valued_delivery_fee/__manifest__.py @@ -0,0 +1,18 @@ +# Copyright 2026 Moduon Team S.L. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) +{ + "name": "Valued Picking Report - Delivery Fee", + "summary": "Add delivery fee to the valued picking total value", + "version": "16.0.1.0.0", + "development_status": "Alpha", + "category": "Warehouse Management", + "website": "https://github.com/OCA/stock-logistics-reporting", + "author": "Moduon, Odoo Community Association (OCA)", + "maintainers": ["chienandalu", "rafaelbn"], + "license": "AGPL-3", + "depends": [ + "stock_picking_report_valued", + "delivery_fee", + ], + "data": [], +} diff --git a/stock_picking_report_valued_delivery_fee/models/__init__.py b/stock_picking_report_valued_delivery_fee/models/__init__.py new file mode 100644 index 000000000..ae4c27227 --- /dev/null +++ b/stock_picking_report_valued_delivery_fee/models/__init__.py @@ -0,0 +1 @@ +from . import stock_picking diff --git a/stock_picking_report_valued_delivery_fee/models/stock_picking.py b/stock_picking_report_valued_delivery_fee/models/stock_picking.py new file mode 100644 index 000000000..adce696f7 --- /dev/null +++ b/stock_picking_report_valued_delivery_fee/models/stock_picking.py @@ -0,0 +1,27 @@ +# Copyright 2026 Moduon +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from odoo import models + + +class StockPicking(models.Model): + _inherit = "stock.picking" + + def _compute_amount_all(self): + res = super()._compute_amount_all() + for picking in self: + fee_lines = picking.sale_id.order_line.filtered( + lambda x: x.delivery_fee_picking_id == picking + ) + if not fee_lines: + continue + fee_amount_untaxed = sum(fee_lines.mapped("price_subtotal")) + fee_amount_taxed = sum(fee_lines.mapped("price_tax")) + fee_amount_total = fee_amount_untaxed + fee_amount_taxed + picking.update( + { + "amount_untaxed": picking.amount_untaxed + fee_amount_untaxed, + "amount_tax": picking.amount_tax + fee_amount_taxed, + "amount_total": picking.amount_total + fee_amount_total, + } + ) + return res diff --git a/stock_picking_report_valued_delivery_fee/readme/CONTRIBUTORS.md b/stock_picking_report_valued_delivery_fee/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..afdd95a38 --- /dev/null +++ b/stock_picking_report_valued_delivery_fee/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- David Vidal ([Moduon](https://www.moduon.team/)) +- Emilio Pascual ([Moduon](https://www.moduon.team/)) +- Rafael Blasco ([Moduon](https://www.moduon.team/)) diff --git a/stock_picking_report_valued_delivery_fee/readme/DESCRIPTION.md b/stock_picking_report_valued_delivery_fee/readme/DESCRIPTION.md new file mode 100644 index 000000000..f8e3dfc0f --- /dev/null +++ b/stock_picking_report_valued_delivery_fee/readme/DESCRIPTION.md @@ -0,0 +1 @@ +When this module is active, the delivery fee will be added to the picking total amount. diff --git a/stock_picking_report_valued_delivery_fee/readme/USAGE.md b/stock_picking_report_valued_delivery_fee/readme/USAGE.md new file mode 100644 index 000000000..cf783ab47 --- /dev/null +++ b/stock_picking_report_valued_delivery_fee/readme/USAGE.md @@ -0,0 +1,2 @@ +When you print the valued picking, the amount of the applied delivery fee (if any) will +be summed to the total amount although it will only be rendered on the picking footer. diff --git a/stock_picking_report_valued_delivery_fee/static/description/index.html b/stock_picking_report_valued_delivery_fee/static/description/index.html new file mode 100644 index 000000000..76e828729 --- /dev/null +++ b/stock_picking_report_valued_delivery_fee/static/description/index.html @@ -0,0 +1,441 @@ + + + + + +Valued Picking Report - Delivery Fee + + + +
+

Valued Picking Report - Delivery Fee

+ + +

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

+

When this module is active, the delivery fee will be added to the +picking total amount.

+
+

Important

+

This is an alpha version, the data model and design can change at any time without warning. +Only for development or testing purpose, do not use in production. +More details on development status

+
+

Table of contents

+ +
+

Usage

+

When you print the valued picking, the amount of the applied delivery +fee (if any) will be summed to the total amount although it will only be +rendered on the picking footer.

+
+
+

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

+
    +
  • Moduon
  • +
+
+
+

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 maintainers:

+

chienandalu rafaelbn

+

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.

+
+
+
+ +