Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
56c9111
[MOV] move addons out of __unported__ (they remain not installable)
sbidoul Oct 13, 2015
457659f
[MIGR] stock_available_mrp: migrate to v8
Nov 20, 2015
1666969
[FIX] Browse mrp.bom as current user
lmignon Nov 18, 2015
273c35f
[FIX] fix multi-company test
Jan 13, 2016
198f137
OCA Transbot updated translations from Transifex
oca-transbot Jan 31, 2016
fd70da1
stock_available_mrp: fix BOM qty (multi-units, efficiency)
Mar 15, 2016
dcc4058
stock_available / stock_available_mrp : add possibility to choose whi…
Mar 4, 2016
0550d85
[FIX+IMP] stock_available_mrp: fix recursive potential_qty in list vi…
Mar 16, 2016
e84d565
V9 migration modifications.
Mar 21, 2016
9166a9b
OCA Transbot updated translations from Transifex
oca-transbot Jun 12, 2016
f57986e
[10.0][MIG] port stock_available_mrp to 10.0
May 9, 2017
85c9f85
[IMP] stock_available_mrp: readability + change compute bom_id + use …
rousseldenis Aug 22, 2018
2a52860
[ADD] include new improvments
Sep 3, 2018
57ac2e6
[FIX] stock_available_mrp: remove duplicate button + fix calculation …
Oct 1, 2018
e981283
[11.0][MIG] port stock_available_mrp to 11.0
Jan 4, 2019
bc5cde2
Migrate stock_available_mrp to v12
florian-dacosta Jul 6, 2019
13b64e5
Make stock_available_mrp compatible with other modules like stock_ava…
florian-dacosta Jul 6, 2019
4e267b4
[FIX] stock_available_mrp: Fix RST formatting + generate README
pedrobaeza Aug 31, 2019
964c484
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 26, 2019
28096b4
Translated using Weblate (French)
ypapouin Nov 12, 2020
22701d6
[FIX] stock_available_mrp: upstream compatibility
chienandalu Feb 25, 2021
805f8c9
[FIX] stock_available_mrp: don't force type
chienandalu Apr 16, 2021
a8c6e12
[IMP] stock_available_mrp: black, isort, prettier
victoralmau May 13, 2021
76bdaed
[MIG] stock_available_mrp: Migration to 13.0
victoralmau May 13, 2021
b2c73a4
Migrate stock_available_mrp to v14
florian-dacosta May 27, 2021
95bed6d
stock_available_mrp 14.0.1.0.1
OCA-git-bot Jun 7, 2021
beb77d2
[FIX] - local variable referenced before assignment
sbejaoui Jun 9, 2021
8006b61
Use Savepoint in stock_available_mrp tests
Nov 21, 2019
580cb65
[FIX] adapt back to V14
Oct 1, 2021
2321589
Improve performance of stock available of BoMs
Nov 20, 2019
bb9c29a
[14.0] stock_available_mrp: improve performance by using standard field
Oct 1, 2021
2f369b6
[14.0] stock_available: improve search performance
Oct 1, 2021
1071924
[UPD] Update stock_available_mrp.pot
oca-travis Dec 4, 2021
196d09f
stock_available_mrp 14.0.1.0.3
OCA-git-bot Dec 5, 2021
417831b
Update translation files
oca-transbot Dec 5, 2021
0703932
[15.0][IMP] stock_available_mrp: black, isort, prettier
JoanMForgeFlow Jan 27, 2022
357b1f5
[15.0][MIG] stock_available_mrp: Migration to 15.0
JoanMForgeFlow Jan 28, 2022
d682c03
[FIX] stock_available_mrp: Set correctlly immediately_usable_qty value.
victoralmau Feb 22, 2022
1481f67
[TESTS] stock_available_mrp: Add test for phantom bom
rousseldenis Feb 23, 2022
fbb1acb
stock_available_mrp 15.0.1.0.1
OCA-git-bot Mar 8, 2022
b5fae0b
Added translation using Weblate (Catalan)
jabelchi Aug 17, 2022
10786a9
Translated using Weblate (Catalan)
jabelchi Aug 17, 2022
65925e8
[16.0][MIG] stock_available_mrp: Migration to 16.0
khoivo1601 Mar 9, 2023
c9b6f9c
Translated using Weblate (Spanish)
Ivorra78 Aug 27, 2023
bae6e00
Update translation files
weblate Oct 9, 2023
18bfd15
Translated using Weblate (Spanish)
Ivorra78 Oct 15, 2023
56fbacc
Translated using Weblate (Italian)
mymage Nov 24, 2023
fa7c836
[IMP] stock_available_mrp: pre-commit auto fixes
bizzappdev May 10, 2024
9634b5e
[MIG] stock_available_mrp: Migration to 17.0
bizzappdev May 10, 2024
683121c
[FIX] stock_available_mrp: variant BoMs
danielduqma Dec 9, 2024
78ec461
Translated using Weblate (Italian)
mymage Jan 21, 2025
df1153f
[FIX] stock_available_mrp: increment potencial_qty to immediately_usa…
Dec 9, 2024
d896aff
[IMP] stock_available_mrp: pre-commit auto fixes
StefanRijnhart Dec 22, 2025
ea0b6e3
[MIG] stock_available_mrp: Migration to 18.0
StefanRijnhart Dec 22, 2025
5bd8a21
[IMP] stock_available_mrp: improve configuration setting description
StefanRijnhart Dec 22, 2025
093f7a0
[FIX] stock_available_mrp: clear up confusion about configuration par…
StefanRijnhart Dec 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 152 additions & 0 deletions stock_available_mrp/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
=========================================================
Consider the production potential is available to promise
=========================================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:07930e0fab4e9b713917371909208d0384b7380575aea5f5116fac2a7a024595
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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--availability-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-availability/tree/18.0/stock_available_mrp
:alt: OCA/stock-logistics-availability
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-availability-18-0/stock-logistics-availability-18-0-stock_available_mrp
: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-availability&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module takes the potential quantities available for Products into
account in the quantity available to promise, where the "Potential
quantity" is the quantity that can be manufactured with the components
immediately at hand. By configuration, the "Potential quantity" can be
computed based on other product field. For example, "Potential quantity"
can be the quantity that can be manufactured with the components
available to promise.

**Table of contents**

.. contents::
:local:

Known issues / Roadmap
======================

Known issues
------------

The manufacturing delays are not taken into account : this module
assumes that if you have components in stock goods, you can manufacture
finished goods quickly enough.

As a consequence, and to avoid overestimating, **only the first level**
of Bill of Materials is considered.

However Sets (a.k.a "phantom" BoMs) are taken into account: if a
component must be replaced with a set, it's the stock of the set's
product which will decide the potential.

If a product has several variants, only the variant with the biggest
potential will be taken into account when reporting the production
potential. For example, even if you actually have enough components to
make 10 iPads 16Go AND 42 iPads 32Go, we'll consider that you can
promise only 42 iPads.

Removed features
----------------

Previous versions of this module used to let programmers demand to get
the potential quantity in an arbitrary Unit of Measure using the
context. This feature was present in the standard computations too until
v8.0, but it has been dropped from the standard from v8.0 on.

For the sake of consistency the potential quantity is now always
reported in the product's main Unit of Measure too.

Roadmap
-------

Possible improvements for future versions:

- Take manufacturing delays into account: we should not promise goods
to customers if they want them delivered earlier that we can make
them
- Compute the quantity of finished product that can be made directly on
each Bill of Material: this would be useful for production managers,
and may make the computations faster by avoiding to compute the same
BoM several times when several variants share the same BoM.
- Add an option (probably as a sub-module) to consider all raw
materials as available if they can be bought from the suppliers in
time for the manufacturing.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-availability/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 <https://github.com/OCA/stock-logistics-availability/issues/new?body=module:%20stock_available_mrp%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Numérigraphe

Contributors
------------

- Loïc Bellier (Numérigraphe) <lb@numerigraphe.com>

- Lionel Sausin (Numérigraphe) <ls@numerigraphe.com>

- many thanks to Graeme Gellatly for his advice and code review

- Laurent Mignon <laurent.mignon@acsone.eu>

- Cédric Pigeon <cedric.pigeon@acsone.eu>

- Florian da Costa <florian.dacosta@akretion.com>

- Joan Mateu <joan.mateu@forgeflow.com>

- `Tecnativa <https://www.tecnativa.com>`__:

- Víctor Martínez

- `Trobz <https://trobz.com>`__:

- Khoi Vo <khoivha@trobz.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.

This module is part of the `OCA/stock-logistics-availability <https://github.com/OCA/stock-logistics-availability/tree/18.0/stock_available_mrp>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions stock_available_mrp/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2014 Numérigraphe SARL
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
16 changes: 16 additions & 0 deletions stock_available_mrp/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2014 Numérigraphe SARL, Camptocamp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Consider the production potential is available to promise",
"version": "18.0.1.0.0",
"author": "Numérigraphe," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-availability",
"category": "Hidden",
"depends": ["stock_available", "mrp"],
"demo": ["demo/mrp_data.xml"],
"data": [
"views/res_config_settings_views.xml",
],
"license": "AGPL-3",
"installable": True,
}
48 changes: 48 additions & 0 deletions stock_available_mrp/demo/mrp_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="product_kit_1a" model="product.product">
<field name="default_code">PCSC234-WHITE</field>
<field
name="product_tmpl_id"
ref="mrp.product_product_table_kit_product_template"
/>
<field
name="product_template_attribute_value_ids"
eval="[Command.set([ref('product.product_attribute_value_3')])]"
/>
</record>
<record id="mrp.product_product_table_kit" model="product.product">
<field
name="product_template_attribute_value_ids"
eval="[Command.set([ref('product.product_attribute_value_4')])]"
/>
</record>
<record id="mrp.mrp_bom_kit_line_2" model="mrp.bom.line">
<field
name="bom_product_template_attribute_value_ids"
eval="[Command.set([ref('product.product_attribute_value_4')])]"
/>
</record>
<record id="product_computer_desk_bolt_white" model="product.product">
<field name="name">Bolt</field>
<field name="categ_id" ref="product.product_category_5" />
<field name="standard_price">1.0</field>
<field name="list_price">5.0</field>
<field name="type">consu</field>
<field name="is_storable" eval="True" />
<field name="uom_id" ref="uom.product_uom_unit" />
<field name="uom_po_id" ref="uom.product_uom_unit" />
<field name="default_code">BOLT-WHITE</field>
</record>
<record id="mrp_bom_kit_line_3" model="mrp.bom.line">
<field name="product_id" ref="product_computer_desk_bolt_white" />
<field name="product_qty">4</field>
<field name="product_uom_id" ref="uom.product_uom_unit" />
<field name="sequence">5</field>
<field name="bom_id" ref="mrp.mrp_bom_kit" />
<field
name="bom_product_template_attribute_value_ids"
eval="[Command.set([ref('product.product_attribute_value_3')])]"
/>
</record>
</odoo>
62 changes: 62 additions & 0 deletions stock_available_mrp/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_available_mrp
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2022-08-17 12:07+0000\n"
"Last-Translator: jabelchi <jabelchi@gmail.com>\n"
"Language-Team: none\n"
"Language: ca\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"
"X-Generator: Weblate 4.3.2\n"

#. module: stock_available_mrp
#: model:product.template,name:stock_available_mrp.product_computer_desk_bolt_white_product_template
msgid "Bolt"
msgstr "Cargol"

#. module: stock_available_mrp
#: model:ir.model.fields,help:stock_available_mrp.field_res_config_settings__stock_available_mrp_based_on
msgid ""
"Choose the field of the product which will be used to compute potential.\n"
"If empty, Quantity On Hand is used.\n"
"Only the quantity fields have meaning for computing stock"
msgstr ""

#. module: stock_available_mrp
#: model:ir.model,name:stock_available_mrp.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: stock_available_mrp
#: model:ir.model,name:stock_available_mrp.model_product_product
msgid "Product Variant"
msgstr ""

#. module: stock_available_mrp
#: model_terms:ir.ui.view,arch_db:stock_available_mrp.view_stock_configuration
msgid "Stock available to promise"
msgstr ""

#. module: stock_available_mrp
#: model:ir.model.fields,field_description:stock_available_mrp.field_res_config_settings__stock_available_mrp_based_on
msgid "based on"
msgstr ""

#~ msgid "Product"
#~ msgstr "Producte"

#~ msgid "Table Kit"
#~ msgstr "Kit de taula"

#~ msgid "Table kit"
#~ msgstr "Kit de taula"

#~ msgid "Units"
#~ msgstr "Unitats"
62 changes: 62 additions & 0 deletions stock_available_mrp/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_available_mrp
#
# Translators:
# Rudolf Schnapka <rs@techno-flex.de>, 2016
msgid ""
msgstr ""
"Project-Id-Version: stock-logistics-warehouse (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-01-14 01:38+0000\n"
"PO-Revision-Date: 2016-01-14 09:35+0000\n"
"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>\n"
"Language-Team: German (http://www.transifex.com/oca/OCA-stock-logistics-"
"warehouse-8-0/language/de/)\n"
"Language: de\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"

#. module: stock_available_mrp
#: model:product.template,name:stock_available_mrp.product_computer_desk_bolt_white_product_template
msgid "Bolt"
msgstr ""

#. module: stock_available_mrp
#: model:ir.model.fields,help:stock_available_mrp.field_res_config_settings__stock_available_mrp_based_on
msgid ""
"Choose the field of the product which will be used to compute potential.\n"
"If empty, Quantity On Hand is used.\n"
"Only the quantity fields have meaning for computing stock"
msgstr ""

#. module: stock_available_mrp
#: model:ir.model,name:stock_available_mrp.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: stock_available_mrp
#: model:ir.model,name:stock_available_mrp.model_product_product
msgid "Product Variant"
msgstr ""

#. module: stock_available_mrp
#: model_terms:ir.ui.view,arch_db:stock_available_mrp.view_stock_configuration
msgid "Stock available to promise"
msgstr ""

#. module: stock_available_mrp
#: model:ir.model.fields,field_description:stock_available_mrp.field_res_config_settings__stock_available_mrp_based_on
msgid "based on"
msgstr ""

#~ msgid "Product"
#~ msgstr "Produkt"

#~ msgid "Product Template"
#~ msgstr "Produktvorlage"

#~ msgid "Thousand"
#~ msgstr "Tausend"
Loading