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

[16.0][MIG] product_attribute_set #142

Merged
merged 27 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
291af39
[REF] rename modules based on attribute_set and pim
clementmbr May 18, 2020
266987e
[REF] rename 'attribute_nature' field into 'nature'
clementmbr May 18, 2020
a5c1355
[IMP] Add REAME to the 4 modules
clementmbr May 19, 2020
1a233a5
[IMP] Move Product's attributes_placeholder to product_attribute_set
clementmbr May 27, 2020
35bf2d6
[IMP] remove class in super() and other misc improvements
clementmbr May 27, 2020
a9525ff
[FIX] remove tests in product_attribute_set
clementmbr May 27, 2020
80bd890
[REF] remove @api.multi
clementmbr Jun 3, 2020
3793633
[13.0] Set modules to installable False
rousseldenis Jun 12, 2020
4c2d80a
[13.0] Set modules version to 13
rousseldenis Jun 12, 2020
e846f07
[13.0][MIG] product_attribute_set
rousseldenis Jun 15, 2020
ebbb071
[MIG] make all modules uninstallable
Feb 18, 2021
2a3c769
[MIG] update pre-commit conf from copier
Feb 18, 2021
a5266f7
[IMP] product_attribute_set: black, isort, prettier
Jan 6, 2021
cd74163
[MIG] product_attribute_set: Migration to 14.0
Jan 6, 2021
1667e88
[FIX] product_category multiple write
Jan 4, 2021
4289b5d
product_attribute_set 14.0.1.0.1
OCA-git-bot May 15, 2021
3b02409
Added translation using Weblate (Spanish)
BorjaGarciaRouco May 27, 2021
f8caa25
Update translation files
oca-transbot Oct 6, 2021
a234aab
product_attribute_set 14.0.1.0.2
OCA-git-bot Oct 6, 2021
4350bca
Added translation using Weblate (Spanish (Argentina))
ibuioli Sep 18, 2022
a1ffea3
Translated using Weblate (Spanish (Argentina))
ibuioli Sep 18, 2022
f03b34b
[IMP] product_attribute_set: black, isort, prettier
chandni299 Oct 11, 2022
d28e5aa
[16.0][MIG] - product_attribute_set
sbejaoui Feb 28, 2023
f30191a
[16.0][MIG] - product_attribute_set: add trnaslation fr_BE
glitchov Mar 28, 2023
59aebe6
[16.0][MIG] - product_attribute_set: improve product view
glitchov Mar 29, 2023
45101c1
[IMP] improve code
sbejaoui Aug 15, 2023
1072cc5
[IMP] product_attribute_set: Remove domain as computed in attribute_set
rousseldenis Oct 24, 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
85 changes: 85 additions & 0 deletions product_attribute_set/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
=====================
Product Attribute Set
=====================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/14.0/product_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-14-0/odoo-pim-14-0-product_attribute_set
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/295/14.0
:alt: Try me on Runbot

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

This module allows to display product's Attributes in product form views thanks to the `attribute_set <https://github.com/akretion/odoo-pim/tree/12.0/attribute_set>`_ module. It also adds a suggested link between product's Category and product's Attribute Set.

However this module **does not provide an Attribute menu** to easily manage product's Attribute as this feature is covered by the `pim_attribute_set <https://github.com/akretion/odoo-pim/tree/12.0/pim_attribute_set>`_ module in the PIM (Product Information Management) application developed by `Akretion <https://akretion.com/>`_

**Table of contents**

.. contents::
:local:

Usage
=====

To understand how to create and use Attributes, please refer to the `attribute_set` module's README.

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/odoo-pim/issues/new?body=module:%20product_attribute_set%0Aversion:%2014.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>
* David Dufresne <david.dufresne@savoirfairelinux.com>
* El Hadji Dem <elhadji.dem@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/14.0/product_attribute_set>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions product_attribute_set/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
14 changes: 14 additions & 0 deletions product_attribute_set/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2015 Akretion (http://www.akretion.com).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Product Attribute Set",
"version": "16.0.1.0.0",
"category": "PIM",
"license": "AGPL-3",
"author": "Akretion,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/odoo-pim",
"depends": ["product", "attribute_set"],
"data": ["views/product.xml", "views/product_category.xml"],
"demo": ["demo/product_attribute.xml"],
"installable": True,
}
77 changes: 77 additions & 0 deletions product_attribute_set/demo/product_attribute.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Attribute Sets -->
<record id="computer_attribute_set" model="attribute.set">
<field name="name">Computer</field>
<field name="model_id" ref="product.model_product_template" />
</record>
<record id="mouse_attribute_set" model="attribute.set">
<field name="name">Mouse</field>
<field name="model_id" ref="product.model_product_template" />
</record>
<!-- Attribute Groups -->
<record id="computer_technical_attribute_group" model="attribute.group">
<field name="name">Technical</field>
<field name="sequence" eval="1" />
<field name="model_id" ref="product.model_product_template" />
</record>
<record id="computer_transport_attribute_group" model="attribute.group">
<field name="name">Transport</field>
<field name="sequence" eval="2" />
<field name="model_id" ref="product.model_product_template" />
</record>
<!-- Custom attributes -->
<record id="computer_processor_attribute" model="attribute.attribute">
<field name="nature">custom</field>
<field name="field_description">Processor</field>
<field name="name">x_processor</field>
<field name="attribute_type">select</field>
<field name="attribute_group_id" ref="computer_technical_attribute_group" />
<field name="attribute_set_ids" eval="[(4, ref('computer_attribute_set'))]" />
<field name="model_id" ref="product.model_product_template" />
</record>
<record id="computer_processor_attribute_option_1" model="attribute.option">
<field name="name">Intel i5</field>
<field name="attribute_id" ref="computer_processor_attribute" />
</record>
<record id="computer_processor_attribute_option_2" model="attribute.option">
<field name="name">Intel i6</field>
<field name="attribute_id" ref="computer_processor_attribute" />
</record>
<record id="computer_processor_attribute_option_3" model="attribute.option">
<field name="name">Intel i7</field>
<field name="attribute_id" ref="computer_processor_attribute" />
</record>
<record id="computer_tech_description_attribute" model="attribute.attribute">
<field name="nature">custom</field>
<field name="field_description">Technical Description</field>
<field name="name">x_technical_description</field>
<field name="attribute_type">text</field>
<field name="attribute_group_id" ref="computer_technical_attribute_group" />
<field name="attribute_set_ids" eval="[(4, ref('computer_attribute_set'))]" />
<field name="model_id" ref="product.model_product_template" />
</record>
<record id="computer_linux_compatible_attribute" model="attribute.attribute">
<field name="nature">custom</field>
<field name="name">x_linux_compatible</field>
<field name="attribute_type">boolean</field>
<field name="attribute_group_id" ref="computer_technical_attribute_group" />
<field name="attribute_set_ids" eval="[(4, ref('computer_attribute_set'))]" />
<field name="model_id" ref="product.model_product_template" />
</record>
<!-- Native attributes -->
<record id="computer_weight_attribute" model="attribute.attribute">
<field name="nature">native</field>
<field name="field_id" eval="ref('product.field_product_template__weight')" />
<field name="attribute_group_id" ref="computer_transport_attribute_group" />
<field name="attribute_set_ids" eval="[(4, ref('computer_attribute_set'))]" />
<field name="model_id" ref="product.model_product_template" />
</record>
<record id="computer_volume_attribute" model="attribute.attribute">
<field name="nature">native</field>
<field name="field_id" eval="ref('product.field_product_template__volume')" />
<field name="attribute_group_id" ref="computer_transport_attribute_group" />
<field name="attribute_set_ids" eval="[(4, ref('computer_attribute_set'))]" />
<field name="model_id" ref="product.model_product_template" />
</record>
</odoo>
158 changes: 158 additions & 0 deletions product_attribute_set/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_attribute_set
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"

#. module: product_attribute_set
#: model:ir.model.fields,field_description:product_attribute_set.field_product_product__attribute_set_id
#: model:ir.model.fields,field_description:product_attribute_set.field_product_template__attribute_set_id
#: model_terms:ir.ui.view,arch_db:product_attribute_set.product_template_search_view
msgid "Attribute Set"
msgstr ""

#. module: product_attribute_set
#: model:ir.model.fields,field_description:product_attribute_set.field_product_template__attribute_set_completion_rate
msgid "Attribute Set Completion Rate"
msgstr ""

#. module: product_attribute_set
#: model:ir.model.fields,field_description:product_attribute_set.field_product_template__attribute_set_completion_state
msgid "Attribute Set Completion State"
msgstr ""

#. module: product_attribute_set
#: model:ir.model.fields,field_description:product_attribute_set.field_product_template__attribute_set_completed_ids
msgid "Attribute Set completed criterias"
msgstr ""

#. module: product_attribute_set
#: model:ir.model.fields,field_description:product_attribute_set.field_product_template__attribute_set_not_completed_ids
msgid "Attribute Set not completed criterias"
msgstr ""

#. module: product_attribute_set
#: model:ir.model.fields,help:product_attribute_set.field_product_template__attribute_set_completion_rate
msgid "Attribute set completeness percentage"
msgstr ""

#. module: product_attribute_set
#: model:ir.model.fields,help:product_attribute_set.field_product_template__attribute_set_completion_state
msgid "Attribute set completeness status"
msgstr ""

#. module: product_attribute_set
#: model_terms:ir.ui.view,arch_db:product_attribute_set.product_template_form_view
msgid "Attributes"
msgstr ""

#. module: product_attribute_set
#: model:ir.model.fields,field_description:product_attribute_set.field_product_template__attribute_set_completeness_ids
msgid "Completeness Requirements"
msgstr ""

#. module: product_attribute_set
#: model:attribute.set,name:product_attribute_set.computer_attribute_set
msgid "Computer"
msgstr ""

#. module: product_attribute_set
#: model:ir.model.fields,field_description:product_attribute_set.field_product_category__attribute_set_id
msgid "Default Attribute Set"
msgstr ""

#. module: product_attribute_set
#: model:ir.model.fields,field_description:product_attribute_set.field_product_category__display_name
#: model:ir.model.fields,field_description:product_attribute_set.field_product_template__display_name
msgid "Display Name"
msgstr ""

#. module: product_attribute_set
#: model:ir.model.fields,field_description:product_attribute_set.field_product_category__id
#: model:ir.model.fields,field_description:product_attribute_set.field_product_template__id
msgid "ID"
msgstr ""

#. module: product_attribute_set
#: model:attribute.option,name:product_attribute_set.computer_processor_attribute_option_1
msgid "Intel i5"
msgstr ""

#. module: product_attribute_set
#: model:attribute.option,name:product_attribute_set.computer_processor_attribute_option_2
msgid "Intel i6"
msgstr ""

#. module: product_attribute_set
#: model:attribute.option,name:product_attribute_set.computer_processor_attribute_option_3
msgid "Intel i7"
msgstr ""

#. module: product_attribute_set
#: model:ir.model.fields,field_description:product_attribute_set.field_product_category____last_update
#: model:ir.model.fields,field_description:product_attribute_set.field_product_template____last_update
msgid "Last Modified on"
msgstr ""

#. module: product_attribute_set
#: model:attribute.set,name:product_attribute_set.mouse_attribute_set
msgid "Mouse"
msgstr ""

#. module: product_attribute_set
#: model:attribute.attribute,field_description:product_attribute_set.computer_processor_attribute
#: model:ir.model.fields,field_description:product_attribute_set.computer_processor_attribute_ir_model_fields
msgid "Processor"
msgstr ""

#. module: product_attribute_set
#: model:ir.model,name:product_attribute_set.model_product_category
msgid "Product Category"
msgstr ""

#. module: product_attribute_set
#: model:ir.model,name:product_attribute_set.model_product_template
msgid "Product Template"
msgstr ""

#. module: product_attribute_set
#: model:attribute.group,name:product_attribute_set.computer_technical_attribute_group
msgid "Technical"
msgstr ""

#. module: product_attribute_set
#: model:attribute.attribute,field_description:product_attribute_set.computer_tech_description_attribute
#: model:ir.model.fields,field_description:product_attribute_set.computer_tech_description_attribute_ir_model_fields
msgid "Technical Description"
msgstr ""

#. module: product_attribute_set
#: model:attribute.group,name:product_attribute_set.computer_transport_attribute_group
msgid "Transport"
msgstr ""

#. module: product_attribute_set
#: model:attribute.attribute,field_description:product_attribute_set.computer_volume_attribute
msgid "Volume"
msgstr ""

#. module: product_attribute_set
#: model:attribute.attribute,field_description:product_attribute_set.computer_weight_attribute
msgid "Weight"
msgstr ""

#. module: product_attribute_set
#: model:attribute.attribute,field_description:product_attribute_set.computer_linux_compatible_attribute
#: model:ir.model.fields,field_description:product_attribute_set.computer_linux_compatible_attribute_ir_model_fields
msgid "X Linux Compatible"
msgstr ""
Loading
Loading