Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
2293 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Autor

thans for answer , i will try your way soon

Mejor respuesta

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
Descartar
Autor

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

Publicaciones relacionadas Respuestas Vistas Actividad
5
may 21
28527
1
mar 15
6433
4
mar 24
11155
0
mar 15
5577
2
feb 25
5975