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

Module: HR Address Extended

Entity: hr.version

Compute Method: _compute_private_city_id

Inputs Method Outputs
for record in self:
            if record.private_city_id and record.private_state_id and record.private_city_id.state_id != record.private_state_id:
                record.private_city_id = False

Back to entity