TIP: You can type at any time to perform a new search.
Show partner relations in own tab
partner_multi_relation_tabs · OCA/partner-contact
- Repository
- OCA/partner-contact · module folder · Try on Runboat
- Module version
- 2.0.0
- Category
- Customer Relationship Management
- Folder size
- 0.29 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/partner-contact
- Last tracking update
- 2026-08-07 07:31:56
- Authors
- Odoo Community Association (OCA), Therp BV
- Maintainers
- Odoo Community Association (OCA), Therp BV
- Committers
- Simone Orsi, Ronald Portier, GitHub, Stephan Keller, Weblate, OCA Transbot, OCA-git-bot, oca-travis, Jan Verbeek, Radovan Skolnik
Code Analysis ⓘ
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…