Skip to main content
Odoo Community Association

Attribute Set

Beta License: AGPL-3 OCA/odoo-pim Translate me on Weblate Try me on Runboat

This module allows the user to create Attributes to any model. This is a basic module in the way that it does not provide views to display these new Attributes.

Each Attribute created will be related to an existing field (in case of a “native” Attribute) or to a newly created field (in case of a “custom” Attribute).

A “custom” Attribute can be of any type : Char, Text, Boolean, Date, Binary… but also Many2one or Many2many.

In case of m2o or m2m, these attributes can be related to custom options created for the Attribute, or to existing Odoo objects from other models.

Last but not least an Attribute can be serialized using the Odoo SA module base_sparse_field . It means that all the serialized attributes will be stored in a single “JSON serialization field” and will not create new columns in the database (and better, it will not create new SQL tables in case of Many2many Attributes), increasing significantly the requests speed when dealing with thousands of Attributes.

Table of contents

Usage

Even if this module does not provide views to display some model’s Attributes, it provides however a Technical menu in Settings > Technical > Database Structure > Attributes to create new Attributes.

An Attribute is related to both an Attribute Group and an Attribute Set :

  • The Attribute Set is related to the “model’s category”, i.e. all the model’s instances which will display the same Attributes.

  • The Attribute Group is related to the “attribute’s category”. All the attributes from the same Attribute Set and Attribute Group will be displayed under the same field’s Group in the model’s view.

    🔎 In order to create a custom Attribute many2one or many2many related to other Odoo model, you need to activate the Technical Setting “Advanced Attribute Set settings” (group_advanced_attribute_set).


If you want to create a module displaying some specific model’s Attributes :

  1. Your model must _inherit the mixin "attribute.set.owner.mixin"

  2. You need to add a placeholder <separator name="attributes_placeholder" /> at the desired location in the model’s form view.

  3. Finally, add a context {"include_native_attribute_view_ref": True} on the action leading to this form view if the model’s view needs to display attributes related to native fields together with the other “custom” attributes.

Known issues / Roadmap

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Akretion

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/odoo-pim project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Metadata

Release files for odoo-addon-attribute-set 20.0.1.0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-attribute-set 20.0.1.0.0.6
File Interpreter ABI Platform Actions
odoo_addon_attribute_set-20.0.1.0.0.6-py3-none-any.whl Python 3 none any Details for odoo_addon_attribute_set-20.0.1.0.0.6-py3-none-any.whl

Release files / odoo_addon_attribute_set-20.0.1.0.0.6-py3-none-any.whl

Download URL odoo_addon_attribute_set-20.0.1.0.0.6-py3-none-any.whl
Size 109.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d36776fb8ec1e0e2b95152d8c438657c48b6fa8f2b71770074a0df0b6f3af5e
BLAKE2b-256 checksum
How to use checksums
efd90cd2eabfb674c210b517b4da59b062ce0a81551fd8d114cc3487cbb41991
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for odoo-addon-attribute-set 20.0.1.0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

20.0.1.0.0.6 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page