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

Module: Quality Control OCA

Entity: qc.inspection

Compute Method: _compute_product_id

Inputs Method Outputs
for i in self:
            if i.object_id and i.object_id._name == "product.product":
                i.product_id = i.object_id
            else:
                i.product_id = False

Back to entity