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.template

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 key in product._fields:
                    product[key] = value

Back to entity