Repository
odoo/odoo · module folder
Module version
0.1.0
Category
Hidden/Tools
Folder size
0.35 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-07 05:29:18
Authors
Maintainers
None
Committers
Thibault Delavallée, Martin Trigaux, Odoo Translation Bot, Barad Mahendra, Jorge Pinna Puissant, Xavier-Do, Achraf (abz), Raf Geens, william-andre, MerlinGuillaume, John Laterre (jol), Thomas Lefebvre (thle)
Odoo dependencies
odoo/odoo:
Python dependencies
None
System dependencies
None
Required by
base_location, hr_holidays_public_city, l10n_br_base, l10n_cl, l10n_cn_city, l10n_co, l10n_ec_ote, l10n_pe, l10n_ro_city, l10n_tw
Description
City Management in Addresses
============================

This module allows to enforce users to choose the city of a partner inside a given list instead of a free text field.
        

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_city_filter res.city search New
view_city_tree res.city tree New
view_res_country_city_extended_form res.country form Inherits base.view_country_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (4)
  • country_id Many2one → res.country
    required=True string='Country' args: 'res.country'
  • name Char
    required=True translate=True args: 'Name'
  • state_id Many2one → res.country.state
    domain="[('country_id', '=', country_id)]" args: 'res.country.state', 'State'
  • zipcode Char
    args: 'Zip'
Public methods (1)
  • name_get(self)

New fields (1)
  • enforce_cities Boolean
    help="Check this box to ensure every address created in that country has a 'City' chosen in the list of the country's cities." string='Enforce Cities'
Public methods (0)

No public methods.

New fields (2)
  • city_id Many2one → res.city
    string='City of Address' args: 'res.city'
  • country_enforce_cities Boolean
    readonly=True related='country_id.enforce_cities'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…