Browse Source

[14.0][FIX] base_location: Update name when changing city's state or country

14.0
Yann Papouin 4 years ago
parent
commit
3fe791bfe3
  1. 2
      base_location/models/res_city_zip.py

2
base_location/models/res_city_zip.py

@ -35,7 +35,7 @@ class ResCityZip(models.Model):
)
]
@api.depends("name", "city_id")
@api.depends("name", "city_id", "city_id.state_id", "city_id.country_id")
def _compute_new_display_name(self):
for rec in self:
name = [rec.name, rec.city_id.name]

Loading…
Cancel
Save