Skip to Content
Menu
This question has been flagged

There is a many-to-one relationship between the state and the country, so why doesn't this relationship exist with the city as well? This would facilitate data entry for employees and prevent spelling errors when writing city names.
And can fields for the municipality and neighborhood be added as well? This would benefit sales teams in their fieldwork targeting statistics.

Avatar
Discard
Best Answer

Hi,
Install the app "Extended Addresses" with technical name: base_address_extended in your instance.

See:  https://github.com/odoo/odoo/blob/17.0/addons/base_address_extended/models/res_city.py



Thanks

Avatar
Discard
Author

thans for answer , i will try your way soon

Best Answer

Until Odoo v15 there were two add-ons for Address, one related to city and zip code and the other which added fields like "house and Door" to the address:

From v16 there only base_address_extended is available and covers the cities function.

However, the important configuration, to make it possible to choose/create cities as a list/table of cities (with related zip codes, states and/or translations), improving usability and avoiding errors, is to activate "Enforce Cities" in the configuration of the desired countries:

I hope it helps.

Avatar
Discard
Author

thanks for answer , i try to change type of city to many to one and link it with state , that when i fill state , just appear it's cities
i'm still new programer . but i tring to be odoo more uniqe erp as my experiance of work

Related Posts Replies Views Activity
5
May 21
28555
1
Mar 15
6452
4
Mar 24
11171
0
Mar 15
5589
2
Feb 25
6006