Partner Address Types
partner_type_base · OCA/partner-contact
Health
67/100
fair
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis
0 migration notes
1 model
2 views
0 HTTP endpoints
Description
This module was written to extend the functionality of contact types for a flexible extension.
It adds computed helper fields on res.partner (is_address_readonly,
is_individual, can_be_parent, can_be_child) that other modules can
override to customize which partners can be parents or children, which
partners get a split name, and when the address fields are readonly.
In the partner form, the module:
- re-adds the address type selection (replaced by a readonly label in Odoo 19), so the type can be chosen when creating a contact;
- binds the readonly state of the address fields only to
is_address_readonly, so extension modules control it in one place.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_partner_form |
res.partner | form | Inherits base.view_partner_form | |
view_partner_simple_form |
res.partner | form | Inherits base.view_partner_simple_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
New fields (4)
-
can_be_childBooleancompute='_compute_contact_type'help='If true, the partner_id field is available.'search='_search_can_be_child' -
can_be_parentBooleancompute='_compute_contact_type'help='If true, the partner is available as parent.'search='_search_can_be_parent' -
is_address_readonlyBooleancompute='_compute_contact_type'help='If true, the address fields are readonly.' -
is_individualBooleancompute='_compute_contact_type'help='If true, the partner name is splitted.'
No public methods.
Loading…
Loading…