Contact by Function
base_contact_function · OCA/partner-contact
-
Security25/25No findings
-
Activity0/25Last human commit 124 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
function_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceres_partner— Class 'res_partner' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceres_partner— Class 'res_partner' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceres_partner_category— Class 'res_partner_category' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceres_partner_category— Class 'res_partner_category' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceres_partner_category_function— Class 'res_partner_category_function' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceres_partner_category_function— Class 'res_partner_category_function' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceres_partner_function— Class 'res_partner_function' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceres_partner_function— Class 'res_partner_function' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceview_contact_by_function_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. (3 occurrences in this file) migration-view-attrs-states · sourceview_partner_category_form_admin— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (2 occurrences in this file) migration-view-tree-tag · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · 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
Contacts by Functions
This module allows you to manage contacts by functions.
A person can occupy many job positions in many organizations and you may need to retrieve all your contacts for a given job position.
This module replaces the single "job position" field on a contact and gives the possibility to declare many functions (i.e job positions) for a contact. You can also manage the functions on the organization (res.partner is_company=True) itself.
To retrieve contacts by functions, categories (tags) are used in order to group similar functions in a single category. Within a category, you can declare the sequence of functions so you could use this sequence to sort the contacts of this category by their function.
When you have functions for your contacts and functions for the categories you can tag the contacts (manually or automatically with the segmentation tool) and search with the tag name.
E.g.: You may need to have a category such as 'Head of State' to quickly identify contacts that occupies the functions 'President', 'Prime minister' or 'King'. For protocol reasons, you may want to have 'Kings' sorted first.
Contributors
- El Hadji Dem (elhadji.dem@savoirfairelinux.com)
- Sandy Carter (sandy.carter@savoirfairelinux.com)
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 9
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
function_form_view |
Function Form View | res.partner.function | form | New |
function_tree_view |
Function Tree View | res.partner.function | tree | New |
view_contact_by_function_form |
contact.functions.form.inherit | res.partner | form | Inherits base.view_partner_form |
view_partner_category_form_admin |
List Form | res.partner.category | tree | New |
view_partner_category_functions_form |
Partner Categories Functions | res.partner.category | form | Inherits base.view_partner_category_form |
view_partner_category_list_admin |
List Tree | res.partner.category | tree | New |
view_partner_simple_form |
res.partner.simplified.form | res.partner | form | New |
view_partner_tree_country_address |
res.partner | tree | Inherits base.view_partner_tree | |
view_position_info_form |
position.info.form.inherit | res.partner | form | Inherits base_contact.view_partner_form_inherit |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
No new fields.
Public methods (1)-
onchange_partner_function(self, cr, uid, ids, part, context=None)
No new fields.
Public methods (1)-
name_search(self, cr, user, name='', args=None, operator='ilike', context=None, limit=100)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.