Repository
OCA/stock-logistics-availability · module folder · Try on Runboat
Module version
1.1.0
Category
Hidden
Folder size
0.09 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/stock-logistics-availability
Last tracking update
2026-08-07 08:23:13
Authors
Odoo Community Association (OCA), Numérigraphe
Maintainers
Odoo Community Association (OCA), Numérigraphe
Committers
Daniel Duque, Weblate, Ruchir Shukla, OCA-git-bot, oca-ci, Antonio Buric
Odoo dependencies
OCA/stock-logistics-availability:
odoo/odoo:
- web
- bus
- uom
- mrp
Python dependencies
None
System dependencies
None
Required by
None
Description
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.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_stock_configuration Stock settings: quantity available to promise res.config.settings form Inherits stock.res_config_settings_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (1)
  • explode_bom_quantities(self)
    Explode a bill of material with quantities to consume It returns a dict with the exploded bom lines and the quantity they consume. Example:: { <product-id>: [ (<bom-line-id>, <quantity>) (<bom-line-id>, <quantity>) ] } The 'MrpBom.explode()' method includes the same information, with other things, but is under-optimized to be used for the purpose of this module. The killer is particularly the call to `_bom_find()` which can generate thousands of SELECT for searches.

New fields (1)
  • stock_available_mrp_based_on Selection
    config_parameter='stock_available_mrp.stock_available_mrp_based_on' help='Choose the field of the product which will be used to compute potential.\nIf empty, Quantity On Hand is used.\nOnly the quantity fields have meaning for computing stock' string='based on' args: _get_stock_available_mrp_based_on
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
242 days ago
Last activity
51 days ago
Repository
OCA/stock-logistics-availability
Pull request
[18.0][MIG] stock_available_mrp: Migration to 18.0 (#68)