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

View 20.0
Inputs Method Outputs
  • private_city_id
  • private_state_id
  • private_city_id.state_id
+ 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
  • private_city_id

Back to entity