| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/product-attribute |
| GIT | |
| GIT | https://github.com/OCA/product-attribute.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/product-attribute/tree/16.0/product_attribute_model_link |
| VERSION | |
| VERSION | 1.0.1 |
| CATEGORY | |
| CATEGORY | Product |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Cetmix |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Cetmix |
| COMMITTERS | |
| COMMITTERS | Weblate, OCA-git-bot, oca-ci, Ivan Sokolov, angelinaanaki |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/product-attribute |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:53:48 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/product-attribute: - product_attribute_archive odoo/odoo: - product - base - base_setup - web - bus - web_tour - uom |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_attribute_model_link_form |
product.attribute.model.link.form | product.attribute | xpath | Inherits product.product_attribute_view_form |
view_linked_record_wizard_form |
linked.record.wizard.form | linked.record.wizard | form | New |
linked_record_ref
Reference
selection='_select_target_model'
string='Linked Record'
action_save_linked_record(self)
apply_to_products_on_create
Boolean
help='If enabled when a new attribute value is created it will be automatically added to all existing products that use this attribute. Attention! You must completely understand possible consequences and use this option with care!'
create_from_attribute_values
Boolean
help='If enabled when a new attribute value is added to the attribute a new record will be created in the linked model. Attention! The only value passed explicitly on creation will be the linked field containing the new attribute value name. You must ensure that this would be enough for new record creation. Otherwise an exception will be raised. If a digital field is used a conversion attempt will be done. If conversion fails an exception might be raised.'
delete_when_attribute_value_is_deleted
Boolean
help="When enabled if an attribute value is deleted linked record will be deleted too. Use with extreme care! This option is available only if 'Create from Attribute Values' option is enabled."
domain
Char
default='[]'
help='If configured only records matching the domain will be used for attribute value creation. Warning: updating domain will not affect existing attribute values!'
string='Domain (optional)'
linked_field_id
Many2one → ir.model.fields
domain="[('store', '=', True), ('relation', '=', False), ('model_id', '=', linked_model_id)]"
help='Field of the selected model that will be used for the attribute value names. Can be any field except for related or computed non-stored ones. Digital field values will be converted to Char automatically. Warning: changing or removing existing value will not affect existing attribute values!'
args: 'ir.model.fields', 'Linked field'
linked_model_id
Many2one → ir.model
domain="[('transient', '=', False)]"
help='Model which records will be used for the attribute values. Cannot be a transient model. Warning: changing or removing existing value will not affect existing attribute values!'
args: 'ir.model', 'Linked model'
modify_from_attribute_values
Boolean
help="If enabled when an attribute value is renamed linked field value in the linked model will be updated accordingly. If a digital field is used a conversion attempt will be done. If conversion fails an exception might be raised. This option is available only if 'Create from Attribute Values' option is enabled."
res_model_name
Char
related='linked_model_id.model'
string='Model'
add_attribute_value_from_linked_record(self)
create(self, vals_list)
unlink(self)
write(self, vals)
linked_record_ref
Reference
selection='_selection_target_model'
string='Linked record'
action_open_linked_record_wizard(self)
convert_attribute_value(self, value, linked_field)
create(self, vals_list)
unlink(self)
write(self, vals)