From 4a3ba7fe4b1cf06e426c1f8af1aae4ac81ca2e81 Mon Sep 17 00:00:00 2001 From: Jacques-Etienne Baudoux Date: Tue, 24 Jun 2025 18:41:22 +0200 Subject: [PATCH] [ADD] stock_move_product_price --- stock_move_product_price/README.rst | 78 ++++ stock_move_product_price/__init__.py | 1 + stock_move_product_price/__manifest__.py | 16 + stock_move_product_price/models/__init__.py | 1 + stock_move_product_price/models/stock_move.py | 10 + stock_move_product_price/pyproject.toml | 3 + .../readme/CONTRIBUTORS.md | 1 + .../readme/DESCRIPTION.md | 3 + .../static/description/index.html | 425 ++++++++++++++++++ .../views/stock_picking_views.xml | 20 + 10 files changed, 558 insertions(+) create mode 100644 stock_move_product_price/README.rst create mode 100644 stock_move_product_price/__init__.py create mode 100644 stock_move_product_price/__manifest__.py create mode 100644 stock_move_product_price/models/__init__.py create mode 100644 stock_move_product_price/models/stock_move.py create mode 100644 stock_move_product_price/pyproject.toml create mode 100644 stock_move_product_price/readme/CONTRIBUTORS.md create mode 100644 stock_move_product_price/readme/DESCRIPTION.md create mode 100644 stock_move_product_price/static/description/index.html create mode 100644 stock_move_product_price/views/stock_picking_views.xml diff --git a/stock_move_product_price/README.rst b/stock_move_product_price/README.rst new file mode 100644 index 000000000000..271ba211f4dc --- /dev/null +++ b/stock_move_product_price/README.rst @@ -0,0 +1,78 @@ +============================== +Stock Move Product Sales Price +============================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:34c41f04a628df5ba44de65e4310cbd67873128b13cb568e6b82a0f806ee29e7 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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--warehouse-lightgray.png?logo=github + :target: https://github.com/OCA/stock-logistics-warehouse/tree/18.0/stock_move_product_price + :alt: OCA/stock-logistics-warehouse +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-18-0/stock-logistics-warehouse-18-0-stock_move_product_price + :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-warehouse&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Control your sales price at reception. Shows the product sales price on +the operations on an incoming transfer. Highlight the price in red if +there is no sales price. + +**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 +------- + +* BCIM + +Contributors +------------ + +- Jacques-Etienne Baudoux (BCIM) + +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-warehouse `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_move_product_price/__init__.py b/stock_move_product_price/__init__.py new file mode 100644 index 000000000000..0650744f6bc6 --- /dev/null +++ b/stock_move_product_price/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_move_product_price/__manifest__.py b/stock_move_product_price/__manifest__.py new file mode 100644 index 000000000000..7495a6ebc65f --- /dev/null +++ b/stock_move_product_price/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2025 Jacques-Etienne Baudoux (BCIM) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +{ + "name": "Stock Move Product Sales Price", + "version": "18.0.1.0.0", + "author": "BCIM, Odoo Community Association (OCA)", + "summary": "Control your sales price at reception", + "website": "https://github.com/OCA/stock-logistics-warehouse", + "license": "AGPL-3", + "depends": ["stock"], + "category": "Stock", + "data": [ + "views/stock_picking_views.xml", + ], +} diff --git a/stock_move_product_price/models/__init__.py b/stock_move_product_price/models/__init__.py new file mode 100644 index 000000000000..6bda2d2428e0 --- /dev/null +++ b/stock_move_product_price/models/__init__.py @@ -0,0 +1 @@ +from . import stock_move diff --git a/stock_move_product_price/models/stock_move.py b/stock_move_product_price/models/stock_move.py new file mode 100644 index 000000000000..1a1cc97ec379 --- /dev/null +++ b/stock_move_product_price/models/stock_move.py @@ -0,0 +1,10 @@ +# Copyright 2025 Jacques-Etienne Baudoux (BCIM) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +from odoo import fields, models + + +class StockMove(models.Model): + _inherit = "stock.move" + + product_lst_price = fields.Float(related="product_id.lst_price") diff --git a/stock_move_product_price/pyproject.toml b/stock_move_product_price/pyproject.toml new file mode 100644 index 000000000000..4231d0cccb3d --- /dev/null +++ b/stock_move_product_price/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/stock_move_product_price/readme/CONTRIBUTORS.md b/stock_move_product_price/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..1bc48d2f362f --- /dev/null +++ b/stock_move_product_price/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Jacques-Etienne Baudoux (BCIM) \<\> diff --git a/stock_move_product_price/readme/DESCRIPTION.md b/stock_move_product_price/readme/DESCRIPTION.md new file mode 100644 index 000000000000..fb48f56bd0e9 --- /dev/null +++ b/stock_move_product_price/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +Control your sales price at reception. +Shows the product sales price on the operations on an incoming transfer. +Highlight the price in red if there is no sales price. diff --git a/stock_move_product_price/static/description/index.html b/stock_move_product_price/static/description/index.html new file mode 100644 index 000000000000..6a14f8d07367 --- /dev/null +++ b/stock_move_product_price/static/description/index.html @@ -0,0 +1,425 @@ + + + + + +Stock Move Product Sales Price + + + +
+

Stock Move Product Sales Price

+ + +

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

+

Control your sales price at reception. Shows the product sales price on +the operations on an incoming transfer. Highlight the price in red if +there is no sales price.

+

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

+
    +
  • BCIM
  • +
+
+
+

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/stock-logistics-warehouse project on GitHub.

+

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

+
+
+
+ + diff --git a/stock_move_product_price/views/stock_picking_views.xml b/stock_move_product_price/views/stock_picking_views.xml new file mode 100644 index 000000000000..bf8b69894647 --- /dev/null +++ b/stock_move_product_price/views/stock_picking_views.xml @@ -0,0 +1,20 @@ + + + + stock_move_product_price + stock.picking + + + + + + + +