Partner Property
partner_property · OCA/partner-contact
Health
68/100
fair
-
Security25/25No findings
-
Activity20/25Last human commit 9 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 16.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
2 models
2 views
0 HTTP endpoints
Description
This module adds the use of properties in partners (different for companies and individuals).
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- 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 |
|---|---|---|---|---|
res_partner_kanban_view |
res.partner.kanban | res.partner | kanban | Inherits base.res_partner_kanban_view |
view_partner_form |
res.partner.form | res.partner | form | Inherits base.view_partner_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (2)
-
partner_properties_definition_companyPropertiesDefinitioncompute='_compute_partner_properties_definition_company'inverse='_inverse_partner_properties_definition_company'search='_search_partner_properties_definition_company'string='Partner Properties (company)' -
partner_properties_definition_personPropertiesDefinitioncompute='_compute_partner_properties_definition_person'inverse='_inverse_partner_properties_definition_person'search='_search_partner_properties_definition_person'string='Partner Properties (person)'
-
web_search_read(self, domain, specification, offset=0, limit=None, order=None, count_limit=None)@api.modelOverride the method to return the "appropriate" company if searched by any of the fields. This method is used to display the search fields (Add custom filter), the properties in the partners are multi-company, and the domain [("partner_properties_definition_company", "!=', False)] would return all the companies, in that case the data of the last company would be displayed, which would be totally confusing. Example: Existing companies: Company A + Company B + Company C Selected company: Company A Now it will show: Property custom (Company A).
New fields (3)
-
properties_company_idMany2one → res.companycomodel_name='res.company'compute='_compute_properties_company_id'search='_search_properties_company_id' -
properties_type_companyPropertiescopy=Truedefinition='properties_company_id.partner_properties_definition_company' -
properties_type_personPropertiescopy=Truedefinition='properties_company_id.partner_properties_definition_person'
No public methods.
Loading…
Loading…
Loading…