TIP: You can type at any time to perform a new search.
Partner Custom Attributes
partner_custom_attributes · OCA/product-attribute
Security findings
Migration considerations
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools.translate` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.osv.orm` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
ResPartner— Class 'ResPartner' still inherits from the old-style `osv.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 · sourceResPartner— Class 'ResPartner' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceopen_partner_by_attribute_set— Class 'open_partner_by_attribute_set' 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_form_view_set_button— For a target of Odoo 17.0+: view 'res_partner_form_view_set_button' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/product-attribute · module folder · Try on Runboat
- Module version
- 0.1.0
- Category
- Generic Modules/Others
- Folder size
- 0.02 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://www.camptocamp.com/
- Last tracking update
- 2026-08-07 07:17:47
- Authors
- Camptocamp, Odoo Community Association (OCA)
- Maintainers
- Camptocamp, Odoo Community Association (OCA)
- Committers
- Pedro M. Baeza
- Odoo dependencies
- None
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
Partner custom attributes ========================= This module adds the possibility to easily create custom fields on Partners. Each partner can be linked to an attribute set. Each attribute has custom fields. This module is inspired by the module product_custom_attributes by Benoît GUILLOT, Akretion
Code Analysis
Views touched (3)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
open_partner_by_attribute_set_view |
open.partner.by.attribute.set.view | open.partner.by.attribute.set | form | New |
partner_attributes_form_view |
partner.attributes.normal.wizard | res.partner | form | New |
res_partner_form_view_set_button |
attributes.partner.normal.form | res.partner | form | Inherits base.view_partner_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (2)
New fields (0)
No new fields.
Public methods (1)-
open_partner_by_attribute(self, cr, uid, ids, context=None)Opens a partner by attributes Returns a custom action built modifying the original one.
New fields (0)
No new fields.
Public methods (3)-
fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False)Dynamically add attributes to the view. Return field_view_get. Modifies dynamically the view to show the attributes. If the users presses the Open Attributes button, the attributes are shown in a new form field. Otherwise, if the attribute set is known beforehand, attributes are added to a new tab in the main form view. -
open_attributes(self, cr, uid, ids, context=None)Open the attributes of an object. Return action. This method is called when the user presses the Open Attributes button in the form view of the object. It opens a dynamically-built form view. :param ids: this is normally a singleton. If a longer list is passed, we consider only the first item. -
save_and_close_partner_attributes(self, cr, uid, ids, context=None)Button to save and close. Return action.
Loading…
Loading…
Loading…