Show partner relations in own tab
partner_multi_relation_tabs · OCA/partner-contact
Health
48/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 49 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 10.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.29 MB
Module directory on disk
Code analysis
4 migration notes
6 models
5 views
0 HTTP endpoints
Migration considerations
ResPartner— Migrating to 16.0: the web client no longer calls `fields_view_get`: override `_get_view` instead. migration-fields-view-get · sourceResPartnerRelationType— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourceResPartnerTab— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourcetree_res_partner_tab— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
form_res_partner_relation_type |
res.partner.relation.type | form | Inherits partner_multi_relation.form_res_partner_relation_type | |
form_res_partner_tab |
res.partner.tab | form | New | |
search_res_partner_relation_all |
res.partner.relation.all | search | Inherits partner_multi_relation.search_res_partner_relation_all | |
search_res_partner_relation_type |
res.partner.relation.type | search | Inherits partner_multi_relation.search_res_partner_relation_type | |
tree_res_partner_tab |
res.partner.tab | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
New fields (0)
No new fields.
Public methods (3)-
add_field(self, tab)Add tab field to model. Will replace existing field if already present. -
browse(self, arg=None, prefetch=None)@api.modelMake sure tabs are always up to date. -
fields_view_get(self, view_id=None, view_type='form', toolbar=False, submenu=False)@api.modelOverride to add relation tabs to form.
New fields (1)
-
tab_idMany2one → res.partner.tabcomodel_name='res.partner.tab'readonly=Truestring='Show relation on tab'
-
onchange_partner_id(self)@api.onchange('this_partner_id', 'other_partner_id')Add tab if needed to type_selection_id domain. This method makes sure that when a relation is added to a tab, it is with a relation type meant to be placed on that tab.
New fields (2)
-
tab_left_idMany2one → res.partner.tabcomodel_name='res.partner.tab'help='Tab in which these relations will be visible on partner.'string='Tab for this relation' -
tab_right_idMany2one → res.partner.tabcomodel_name='res.partner.tab'help='Tab in which inverse relations will be visible on partner.'string='Tab for inverse relation'
No public methods.
New fields (1)
-
tab_idMany2one → res.partner.tabcomodel_name='res.partner.tab'readonly=Truestring='Show relation on tab'
No public methods.
New fields (5)
-
codeCharhelp='Language independent code for tab'required=Truestring='Code' -
contact_typeSelectionselection='get_partner_types'string='Valid for partner type' -
nameCharhelp='Will provide title for tab in user language'index=Truerequired=Truestring='Name'translate=True -
partner_category_idMany2one → res.partner.categorycomodel_name='res.partner.category'string='Valid for partner category' -
partner_idsMany2many → res.partnercomodel_name='res.partner'help='This tab will only show for certain partners.\nDo not combine this with selection for contact type or category.'string='Partners with this tab'
-
create(self, vals)@api.modelCreate new tab. -
get_partner_types(self)@api.modelPartner types are defined by model res.partner.relation.type. -
get_tabs(self)@api.modelConvert information on tabs in database to array of objects. -
unlink(self)@api.multiUnlink should first remove references. -
update_types(self, vals=None)@api.multiUpdate types on write or unlink. If we have no vals, assume unlink. -
write(self, vals)@api.multiRemove tab from types no longer satifying criteria.
New fields (1)
-
last_valueInteger
-
get_sequence(self)@api.model@ormcache()Get last sequence for res_partner_tab_sequence. -
increment_sequence(self)@api.modelSet sequence, creating sequence object if needed.
Loading…
Loading…