Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] attribute_set: Migration to 17.0 #175

Open
wants to merge 47 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
f0a7160
[REF] rename modules based on attribute_set and pim
clementmbr May 18, 2020
336c7b9
[FIX] when including native field not present in form
clementmbr May 18, 2020
d91ace7
[REF] rename 'attribute_nature' field into 'nature'
clementmbr May 18, 2020
fbcb2e7
[IMP] Add REAME to the 4 modules
clementmbr May 19, 2020
ec80fd2
[FIX] propagate readonly attribute for included native attributes
clementmbr May 19, 2020
784b811
[IMP] base.user_admin in Attribute Set and PIM Manager group
clementmbr May 27, 2020
d4e4ed6
[IMP] remove class in super() and other misc improvements
clementmbr May 27, 2020
0f0155f
[IMP] remove attribute_set access rights for group_no_one
clementmbr May 27, 2020
453f607
[REF] remove @api.multi
clementmbr Jun 3, 2020
0d459ef
[IMP] Add test write on partner's attributes
clementmbr Jun 3, 2020
6b06c2f
[IMP] Rename "Advanced Attribute Set settings" group
clementmbr Jun 3, 2020
77c6dd4
[13.0] Set modules to installable False
rousseldenis Jun 12, 2020
af6883b
[13.0] Set modules version to 13
rousseldenis Jun 12, 2020
5a1a056
[13.0][MIG] attribute_set
rousseldenis Jun 12, 2020
e06a82f
[13.0][FIX] attribute_set: Reintroduce deprecated functions
rousseldenis Jun 12, 2020
7161bb1
[FIX] required properties in fields_view_get must be linked to relate…
Jun 18, 2020
6fc6bad
attribute_set 13.0.1.0.1
Sep 28, 2020
b97d402
[MIG] make all modules uninstallable
Feb 18, 2021
416b7c1
[MIG] update pre-commit conf from copier
Feb 18, 2021
67b3a87
[IMP] attribute_set: black, isort, prettier
Feb 22, 2021
f51eecb
attribute_set 14.0.1.0.1
OCA-git-bot May 15, 2021
d182b7c
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 31, 2022
ff094fd
[IMP] Add attribute widget field
qgroulard Nov 12, 2020
e1f67ad
attribute_set 14.0.1.1.0
OCA-git-bot Jun 15, 2022
653e0fd
[MIG] attribute_set: Migration to 15.0
JasminSForgeFlow Aug 29, 2022
b766b60
[FIX] attribute_set: fix create options w/ rel model
kevinkhao Dec 2, 2022
b4ac47b
[16.0][MIG] - attribute_set
sbejaoui Feb 28, 2023
3237b0c
[IMP] attribute_set: set ctx for native fields
sbejaoui Feb 28, 2023
b885dc6
[FIX] attribute_set: fix menu position
sbejaoui Mar 2, 2023
eb64251
[IMP] attribute_set: add group menu item
sbejaoui Mar 3, 2023
9f08946
[IMP] attribute_set: misc improvement
sbejaoui Aug 15, 2023
518f4cd
[UPD] Update attribute_set.pot
Aug 18, 2023
9ebe368
[UPD] README.rst
OCA-git-bot Aug 18, 2023
1d03015
[UPD] README.rst
OCA-git-bot Sep 3, 2023
08d6ac2
[IMP] attibute_set: Use get_view() to insert attribute to retrieve le…
rousseldenis Oct 23, 2023
6cc880f
[FIX] attribute_set: Hide attribute.option's value_ref field
rousseldenis Oct 23, 2023
dcb791d
[FIX] attribute_set: Force load of attributes
lmignon Aug 28, 2023
574a2fc
[FIX] avoid ir.model accessError
sbejaoui Oct 2, 2023
6e5353d
[FIX] attribute_set: Set model name on attribute.set
rousseldenis Oct 23, 2023
4131f86
[FIX] attribute_set: Build attribute eview with sudo
rousseldenis Oct 23, 2023
1db334d
[UPD] Update attribute_set.pot
Nov 16, 2023
b34ce31
[BOT] post-merge updates
OCA-git-bot Nov 16, 2023
0f7a012
[UPD] Update attribute_set.pot
Nov 20, 2023
9a2542d
Added translation using Weblate (Spanish)
Ivorra78 Nov 26, 2023
2808fb1
Translated using Weblate (Spanish)
Ivorra78 Nov 26, 2023
42f1c20
[IMP] attribute_set: pre-commit auto fixes
damcar Dec 4, 2023
e47c653
[MIG] attribute_set: Migration to 17.0
damcar Dec 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 146 additions & 0 deletions attribute_set/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
=============
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/17.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-17-0/odoo-pim-17-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=17.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"**
(``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": 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 <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:%2017.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/17.0/attribute_set>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions attribute_set/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import utils
20 changes: 20 additions & 0 deletions attribute_set/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Attribute Set",
"version": "17.0.1.0.0",
"category": "Generic Modules/Others",
"license": "AGPL-3",
"author": "Akretion,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/odoo-pim",
"depends": ["base", "base_sparse_field"],
"data": [
"security/ir.model.access.csv",
"security/attribute_security.xml",
"views/menu_view.xml",
"views/attribute_attribute_view.xml",
"views/attribute_group_view.xml",
"views/attribute_option_view.xml",
"views/attribute_set_view.xml",
],
"external_dependencies": {"python": ["unidecode"]},
"installable": True,
}
Loading
Loading