diff --git a/setup/stock_available_stock_mts_mto_rule/odoo/addons/stock_available_stock_mts_mto_rule b/setup/stock_available_stock_mts_mto_rule/odoo/addons/stock_available_stock_mts_mto_rule new file mode 120000 index 000000000000..f33bce5ff740 --- /dev/null +++ b/setup/stock_available_stock_mts_mto_rule/odoo/addons/stock_available_stock_mts_mto_rule @@ -0,0 +1 @@ +../../../../stock_available_stock_mts_mto_rule \ No newline at end of file diff --git a/setup/stock_available_stock_mts_mto_rule/setup.py b/setup/stock_available_stock_mts_mto_rule/setup.py new file mode 100644 index 000000000000..28c57bb64031 --- /dev/null +++ b/setup/stock_available_stock_mts_mto_rule/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/stock_available_stock_mts_mto_rule/README.rst b/stock_available_stock_mts_mto_rule/README.rst new file mode 100644 index 000000000000..0a47e96d02d0 --- /dev/null +++ b/stock_available_stock_mts_mto_rule/README.rst @@ -0,0 +1,78 @@ +================================= +Stock Avaiable Stock Mts Mto Rule +================================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:f364aff8e84c7d8390b0aae2ac0abaf2e21ce75a114e77785d76fc246aa03310 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/14.0/stock_available_stock_mts_mto_rule + :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-14-0/stock-logistics-warehouse-14-0-stock_available_stock_mts_mto_rule + :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=14.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This is a glue module between `stock_mts_mto_rule` and `stock_avaiable`. +It will use the `immediately_usable_qty` field to compute the split for the +mts mto rule, instead of the `virtual_available` value. + +**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 + +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_available_stock_mts_mto_rule/__init__.py b/stock_available_stock_mts_mto_rule/__init__.py new file mode 100644 index 000000000000..0650744f6bc6 --- /dev/null +++ b/stock_available_stock_mts_mto_rule/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_available_stock_mts_mto_rule/__manifest__.py b/stock_available_stock_mts_mto_rule/__manifest__.py new file mode 100644 index 000000000000..b32f8af2243a --- /dev/null +++ b/stock_available_stock_mts_mto_rule/__manifest__.py @@ -0,0 +1,12 @@ +# Copyright 2024 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Stock Avaiable Stock Mts Mto Rule", + "version": "14.0.1.0.0", + "depends": ["stock_available", "stock_mts_mto_rule"], + "website": "https://github.com/OCA/stock-logistics-warehouse", + "author": "Camptocamp,Odoo Community Association (OCA)", + "license": "AGPL-3", + "category": "Hidden", + "installable": True, +} diff --git a/stock_available_stock_mts_mto_rule/models/__init__.py b/stock_available_stock_mts_mto_rule/models/__init__.py new file mode 100644 index 000000000000..55eae1720e2c --- /dev/null +++ b/stock_available_stock_mts_mto_rule/models/__init__.py @@ -0,0 +1 @@ +from . import stock_rule diff --git a/stock_available_stock_mts_mto_rule/models/stock_rule.py b/stock_available_stock_mts_mto_rule/models/stock_rule.py new file mode 100644 index 000000000000..68359bc58d7a --- /dev/null +++ b/stock_available_stock_mts_mto_rule/models/stock_rule.py @@ -0,0 +1,12 @@ +# Copyright 2024 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import api, models + + +class StockRule(models.Model): + _inherit = "stock.rule" + + @api.model + def _get_available_quantity_mts_mto_rule(self, product): + return product.immediately_usable_qty diff --git a/stock_available_stock_mts_mto_rule/readme/CONTRIBUTORS.rst b/stock_available_stock_mts_mto_rule/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..0dd376faecb9 --- /dev/null +++ b/stock_available_stock_mts_mto_rule/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Thierry Ducrest diff --git a/stock_available_stock_mts_mto_rule/readme/DESCRIPTION.rst b/stock_available_stock_mts_mto_rule/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..f0c1250daf13 --- /dev/null +++ b/stock_available_stock_mts_mto_rule/readme/DESCRIPTION.rst @@ -0,0 +1,3 @@ +This is a glue module between `stock_mts_mto_rule` and `stock_avaiable`. +It will use the `immediately_usable_qty` field to compute the split for the +mts mto rule, instead of the `virtual_available` value. diff --git a/stock_available_stock_mts_mto_rule/static/description/index.html b/stock_available_stock_mts_mto_rule/static/description/index.html new file mode 100644 index 000000000000..10725a5cf228 --- /dev/null +++ b/stock_available_stock_mts_mto_rule/static/description/index.html @@ -0,0 +1,423 @@ + + + + + + +Stock Avaiable Stock Mts Mto Rule + + + +
+

Stock Avaiable Stock Mts Mto Rule

+ + +

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

+

This is a glue module between stock_mts_mto_rule and stock_avaiable. +It will use the immediately_usable_qty field to compute the split for the +mts mto rule, instead of the virtual_available value.

+

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

+ +
+
+

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.

+
+
+
+ +