odoo-addon-attribute-set


Nameodoo-addon-attribute-set JSON
Version 16.0.1.1.0.11 PyPI version JSON
download
home_pagehttps://github.com/OCA/odoo-pim
SummaryAttribute Set
upload_time2024-04-05 05:29:46
maintainerNone
docs_urlNone
authorAkretion,Odoo Community Association (OCA)
requires_python>=3.10
licenseAGPL-3
keywords
VCS
bugtrack_url
requirements unidecode
Travis-CI No Travis.
coveralls test coverage No coveralls.
            =============
Attribute Set
=============

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:70a22a010d1706666b49f94906da9a8c7273649e03b5fce69b741553bebb3799
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fodoo--pim-lightgray.png?logo=github
    :target: https://github.com/OCA/odoo-pim/tree/16.0/attribute_set
    :alt: OCA/odoo-pim
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/odoo-pim-16-0/odoo-pim-16-0-attribute_set
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/odoo-pim&target_branch=16.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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 <https://github.com/odoo/odoo/tree/16.0/addons/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**

.. contents::
   :local:

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"** (:code:`group_advanced_attribute_set`).

-----

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

1. Your model must **\_inherit the mixin** :code:`"attribute.set.owner.mixin"`
2. You need to **add a placeholder** :code:`<separator name="attributes_placeholder" />` at the desired location in the model's form view.
3. Finally, **add a context** :code:`{"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 Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/odoo-pim/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 <https://github.com/OCA/odoo-pim/issues/new?body=module:%20attribute_set%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~

* Akretion

Contributors
~~~~~~~~~~~~

* Sé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>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

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 <https://github.com/OCA/odoo-pim/tree/16.0/attribute_set>`_ project on GitHub.

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



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/OCA/odoo-pim",
    "name": "odoo-addon-attribute-set",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "Akretion,Odoo Community Association (OCA)",
    "author_email": "support@odoo-community.org",
    "download_url": null,
    "platform": null,
    "description": "=============\nAttribute Set\n=============\n\n.. \n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! This file is generated by oca-gen-addon-readme !!\n   !! changes will be overwritten.                   !!\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! source digest: sha256:70a22a010d1706666b49f94906da9a8c7273649e03b5fce69b741553bebb3799\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png\n    :target: https://odoo-community.org/page/development-status\n    :alt: Beta\n.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png\n    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n    :alt: License: AGPL-3\n.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fodoo--pim-lightgray.png?logo=github\n    :target: https://github.com/OCA/odoo-pim/tree/16.0/attribute_set\n    :alt: OCA/odoo-pim\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n    :target: https://translation.odoo-community.org/projects/odoo-pim-16-0/odoo-pim-16-0-attribute_set\n    :alt: Translate me on Weblate\n.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png\n    :target: https://runboat.odoo-community.org/builds?repo=OCA/odoo-pim&target_branch=16.0\n    :alt: Try me on Runboat\n\n|badge1| |badge2| |badge3| |badge4| |badge5|\n\nThis module allows the user to create Attributes to any model.\nThis is a basic module in the way that **it does not provide views to display these new Attributes.**\n\nEach 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).\n\nA *\"custom\"* Attribute can be of any type : Char, Text, Boolean, Date, Binary... but also Many2one or Many2many.\n\nIn 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.\n\nLast but not least an Attribute can be **serialized** using the Odoo SA module `base_sparse_field <https://github.com/odoo/odoo/tree/16.0/addons/base_sparse_field>`_ .\nIt 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.\n\n**Table of contents**\n\n.. contents::\n   :local:\n\nUsage\n=====\n\nEven 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**.\n\nAn Attribute is related to both an Attribute Group and an Attribute Set :\n\n- The **Attribute Set** is related to the *\"model's category\"*, i.e. all the model's instances which will display the same Attributes.\n- 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.\n\n\n     \ud83d\udd0e 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\"** (:code:`group_advanced_attribute_set`).\n\n-----\n\nIf you want to create a module displaying some specific model's Attributes :\n\n1. Your model must **\\_inherit the mixin** :code:`\"attribute.set.owner.mixin\"`\n2. You need to **add a placeholder** :code:`<separator name=\"attributes_placeholder\" />` at the desired location in the model's form view.\n3. Finally, **add a context** :code:`{\"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.\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues <https://github.com/OCA/odoo-pim/issues>`_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us to smash it by providing a detailed and welcomed\n`feedback <https://github.com/OCA/odoo-pim/issues/new?body=module:%20attribute_set%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.\n\nDo not contact contributors directly about support or help with technical issues.\n\nCredits\n=======\n\nAuthors\n~~~~~~~\n\n* Akretion\n\nContributors\n~~~~~~~~~~~~\n\n* S\u00e9bastien BEAU <sebastien.beau@akretion.com>\n* Cl\u00e9ment Mombereau <clement.mombereau@akretion.com.br>\n* Beno\u00eet Guillot <benoit.guillot@akretion.com>\n* Akretion Rapha\u00ebl VALYI <raphael.valyi@akretion.com>\n* David Dufresne <david.dufresne@savoirfairelinux.com>\n* Denis Roussel <denis.roussel@acsone.eu>\n\nMaintainers\n~~~~~~~~~~~\n\nThis module is maintained by the OCA.\n\n.. image:: https://odoo-community.org/logo.png\n   :alt: Odoo Community Association\n   :target: https://odoo-community.org\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\nThis module is part of the `OCA/odoo-pim <https://github.com/OCA/odoo-pim/tree/16.0/attribute_set>`_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n\n\n",
    "bugtrack_url": null,
    "license": "AGPL-3",
    "summary": "Attribute Set",
    "version": "16.0.1.1.0.11",
    "project_urls": {
        "Homepage": "https://github.com/OCA/odoo-pim"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cc4894695f845da9d0c47d273fc1ef6d3b6495c0ed5165503939b9ca9070c87a",
                "md5": "87231e18e3191e6d5f9a77427e1fd9f1",
                "sha256": "a30749982418991c4f3ad079449eccadb953f78be67255fc2c35a50a8e89c2fa"
            },
            "downloads": -1,
            "filename": "odoo_addon_attribute_set-16.0.1.1.0.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "87231e18e3191e6d5f9a77427e1fd9f1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 74648,
            "upload_time": "2024-04-05T05:29:46",
            "upload_time_iso_8601": "2024-04-05T05:29:46.386380Z",
            "url": "https://files.pythonhosted.org/packages/cc/48/94695f845da9d0c47d273fc1ef6d3b6495c0ed5165503939b9ca9070c87a/odoo_addon_attribute_set-16.0.1.1.0.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-05 05:29:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "OCA",
    "github_project": "odoo-pim",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "unidecode",
            "specs": []
        }
    ],
    "lcname": "odoo-addon-attribute-set"
}
        
Elapsed time: 0.21089s