Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Stock available to promise

Entity: product.product

Compute Method: _compute_available_quantities

Inputs Method Outputs
res, _ = self._compute_available_quantities_dict()
for product in self:
            for key, value in res[product.id].items():
                if hasattr(product, key):
                    product[key] = value

Back to entity