TIP: You can type at any time to perform a new search.
NUTS Regions
base_location_nuts · OCA/partner-contact
- Repository
- OCA/partner-contact · module folder · Try on Runboat
- Module version
- 1.3.0
- Category
- Localization/Europe
- Folder size
- 0.68 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/partner-contact
- Last tracking update
- 2026-08-07 08:42:56
- Authors
- Odoo Community Association (OCA), Agile Business Group, Tecnativa
- Maintainers
- Odoo Community Association (OCA), Agile Business Group, Tecnativa
- Committers
- Sergio Zanchetta, Weblate, Eduardo de Miguel, Andrii Kompaniiets, OCA-git-bot, oca-ci, Oscar Herraiz
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- l10n_de_location_nuts, l10n_es_location_nuts, l10n_it_location_nuts
- Description
This module allows to import NUTS locations. Creates four new fields in Partner object, one per NUTS level - NUTS L1: Country level - NUTS L2: Normally state or big region level - NUTS L3: Normally substate or state level - NUTS L4: Normally small region or province level This module allows to set the flag *Not updatable* in a NUTS region so that it gets no more updated nor deleted by the import wizard. Usually NUTS regions have to stay updated with the real ones, but the user may want to update a region's field (name, parent, ...) or create a new ones. With this module, flagging such records as *Not updatable* prevents them from being overwritten or deleted by the import wizard.
Code Analysis ⓘ
Views touched (7)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
nuts_import_form |
NUTS import | nuts.import | form | New |
res_partner_nuts_form |
NUTS Items form | res.partner.nuts | form | New |
res_partner_nuts_tree |
NUTS Items tree | res.partner.nuts | list | New |
view_country_form |
NUTS fields | res.country | form | Inherits base.view_country_form |
view_partner_form_nuts |
Partner form with NUTS | res.partner | form | Inherits base.view_partner_form |
view_res_partner_filter_nuts |
Partner search with NUTS | res.partner | Inherits base.view_res_partner_filter | |
view_res_partner_nuts_filter |
NUTS search filters | res.partner.nuts | search | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (4)
New fields (0)
No new fields.
Public methods (2)-
action_partner_nuts(self) -
import_update_partner_nuts(self)
New fields (1)
-
state_levelIntegerhelp='Level for the state NUTS category.'
No public methods.
New fields (5)
-
allowed_nut_idsMany2many → res.partner.nutscompute='_compute_allowed_nuts'string='Allowed nuts' args: 'res.partner.nuts' -
nuts1_idMany2one → res.partner.nutscomodel_name='res.partner.nuts'domain="[('level', '=', 1), ('id', 'in', allowed_nut_ids)]"string='NUTS L1' -
nuts2_idMany2one → res.partner.nutscomodel_name='res.partner.nuts'domain="[('level', '=', 2), ('id', 'in', allowed_nut_ids)]"string='NUTS L2' -
nuts3_idMany2one → res.partner.nutscomodel_name='res.partner.nuts'domain="[('level', '=', 3), ('id', 'in', allowed_nut_ids)]"string='NUTS L3' -
nuts4_idMany2one → res.partner.nutscomodel_name='res.partner.nuts'domain="[('level', '=', 4), ('id', 'in', allowed_nut_ids)]"string='NUTS L4'
-
onchange_state_id_base_location_nuts(self)@api.onchange('state_id')
New fields (9)
-
child_idsOne2many → res.partner.nutscomodel_name='res.partner.nuts'inverse_name='parent_id'string='Children' -
codeCharrequired=True -
country_idMany2one → res.countrycomodel_name='res.country'required=True -
levelIntegerrequired=True -
nameCharrequired=Truetranslate=True -
not_updatableBoolean -
parent_idMany2one → res.partner.nutscomodel_name='res.partner.nuts'ondelete='restrict' -
parent_pathCharindex=True -
state_idMany2one → res.country.statecomodel_name='res.country.state'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 193 days ago
- Last activity
- 59 days ago
- Repository
- OCA/partner-contact
- Pull request
- [19.0][MIG] base_location_nuts: Migration to 19.0 (#2285)