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

Module: Product Origin

Entity: product.template

Compute Method: _compute_state_id_domain

Inputs Method Outputs
for template in self.filtered(lambda x: x.country_id):
            template.state_id_domain = [("country_id", "=", template.country_id.id)]
for template in self.filtered(lambda x: not x.country_id):
            template.state_id_domain = []

Back to entity