NUTS Regions
base_location_nuts · OCA/partner-contact
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 12 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
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.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- l10n_it_location_nuts
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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
No new fields.
Public methods (2)-
action_partner_nuts(self) -
import_update_partner_nuts(self)
-
state_levelIntegerhelp='Level for the state NUTS category.'
No public methods.
-
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')
-
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…
Loading…
Loading…