Package: odoo10-addon-attribute-set
This module allows the user to create Attributes to any model.
This is a basic module in the way thatit does not provide views to display these new Attributes.Each Attribute created will be related to anexisting field(in case of a“native”Attribute) or to a newlycreated 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 tocustom optionscreated for the Attribute, or toexisting Odoo objectsfrom other models.Last but not least an Attribute can beserializedusing the Odoo SA modulebase_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 speedwhen dealing with thousands of Attributes.Table of contentsUsageBug TrackerCreditsAuthorsContributorsMaintainersUsageEven if this module does not provide views to display some model’s Attributes, it provides however a Technical menu inSettings > Technical > Database Structure > Attributestocreate new Attributes.An Attribute is related to both an Attribute Group and an Attribute Set :TheAttribute Setis related to the“model’s category”, i.e. all the model’s instances which will display the same Attributes.TheAttribute Groupis 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 toother 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 :Your model must_inherit the mixin"attribute.set.owner.mixin"You need toadd a placeholder<separator name="attributes_placeholder" />at the desired location in the model’s form view.Finally,add a context{"include_native_attribute": 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.Bug TrackerBugs are tracked onGitHub 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 welcomedfeedback.Do not contact contributors directly about support or help with technical issues.CreditsAuthorsAkretionContributorsSébastien BEAU <sebastien.beau@akretion.com>Clément Mombereau <clement.mombereau@akretion.com.br>Benoît Guillot <benoit.guillot@akretion.com>Akretion Raphaël VALYI <raphael.valyi@akretion.com>David Dufresne <david.dufresne@savoirfairelinux.com>Denis Roussel <denis.roussel@acsone.eu>MaintainersThis module is maintained by the OCA.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 theOCA/odoo-pimproject on GitHub.You are welcome to contribute. To learn how please visithttps://odoo-community.org/page/Contribute.