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] product_attribute_set: Migration to 17.0 #191

Open
wants to merge 42 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
42 commits
Select commit Hold shift + click to select a range
448f9e0
[REF] rename modules based on attribute_set and pim
clementmbr May 18, 2020
69d4098
[REF] rename 'attribute_nature' field into 'nature'
clementmbr May 18, 2020
8397594
[IMP] Add REAME to the 4 modules
clementmbr May 19, 2020
86d68c8
[IMP] Move Product's attributes_placeholder to product_attribute_set
clementmbr May 27, 2020
86d39ef
[IMP] remove class in super() and other misc improvements
clementmbr May 27, 2020
96d3478
[FIX] remove tests in product_attribute_set
clementmbr May 27, 2020
984d855
[REF] remove @api.multi
clementmbr Jun 3, 2020
46b8627
[13.0] Set modules to installable False
rousseldenis Jun 12, 2020
4376a56
[13.0] Set modules version to 13
rousseldenis Jun 12, 2020
ad73645
[13.0][MIG] product_attribute_set
rousseldenis Jun 15, 2020
1252dc9
[MIG] make all modules uninstallable
Feb 18, 2021
011790f
[MIG] update pre-commit conf from copier
Feb 18, 2021
9046f8f
[IMP] product_attribute_set: black, isort, prettier
Jan 6, 2021
f4e9a93
[MIG] product_attribute_set: Migration to 14.0
Jan 6, 2021
eb359f3
[FIX] product_category multiple write
Jan 4, 2021
a68fdba
Added translation using Weblate (Spanish)
BorjaGarciaRouco May 27, 2021
bcd9726
Update translation files
oca-transbot Oct 6, 2021
78f6d11
Added translation using Weblate (Spanish (Argentina))
ibuioli Sep 18, 2022
8ef1239
Translated using Weblate (Spanish (Argentina))
ibuioli Sep 18, 2022
ace2fa7
[IMP] product_attribute_set: black, isort, prettier
chandni299 Oct 11, 2022
6414b6e
[16.0][MIG] - product_attribute_set
sbejaoui Feb 28, 2023
045abdf
[16.0][MIG] - product_attribute_set: add trnaslation fr_BE
glitchov Mar 28, 2023
e0515cc
[16.0][MIG] - product_attribute_set: improve product view
glitchov Mar 29, 2023
b2f7d13
[IMP] improve code
sbejaoui Aug 15, 2023
b3d0ab1
[IMP] product_attribute_set: Remove domain as computed in attribute_set
rousseldenis Oct 24, 2023
7ad05c6
Translated using Weblate (Spanish)
Ivorra78 Nov 26, 2023
7c6a453
Translated using Weblate (Spanish (Argentina))
ibuioli Dec 9, 2023
5530bcc
Added translation using Weblate (French)
kbentaleb Jan 8, 2024
8f4bd73
Translated using Weblate (French)
kbentaleb Jan 8, 2024
8e9d72e
Added translation using Weblate (Italian)
mymage Jan 18, 2024
41291e0
Translated using Weblate (Italian)
mymage Jan 19, 2024
90cd858
[IMP] product_attribute_set: allow displaying attributes for product …
JordiMForgeFlow Nov 23, 2023
a25f76f
[IMP] product_attribute_set: allow assigning variant attribute to tem…
JordiMForgeFlow Dec 6, 2023
cab58f2
[IMP] product_attribute_set: show native fields for variants
JordiMForgeFlow Dec 6, 2023
bc2cfad
Added translation using Weblate (Turkish)
Mar 7, 2024
4438503
Translated using Weblate (Turkish)
Mar 7, 2024
67ac9a1
Translated using Weblate (Italian)
mymage Jul 22, 2024
7e481bf
Translated using Weblate (Spanish (Argentina))
ibuioli Jul 23, 2024
b164806
[IMP] product_attribute_set: pre-commit execution
Vandan-OSI Aug 29, 2024
3555cc7
[MIG]product_attribute_set: Migration to 17.0
Vandan-OSI Aug 29, 2024
6626f4e
[IMP] lint
dnplkndll Feb 5, 2025
07360bd
[DON'T MERGE] test-requirements.txt
dnplkndll Feb 5, 2025
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
103 changes: 103 additions & 0 deletions product_attribute_set/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
=====================
Product Attribute Set
=====================

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

.. |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/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-17-0/odoo-pim-17-0-product_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 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.

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:%20product_attribute_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 <[email protected]>
- Clément Mombereau <[email protected]>
- Benoît Guillot <[email protected]>
- David Dufresne <[email protected]>
- El Hadji Dem <[email protected]>
- Denis Roussel <[email protected]>
- Mohamed Alkobrosli <[email protected]>

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/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": "17.0.1.1.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>
105 changes: 105 additions & 0 deletions product_attribute_set/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# 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"
"PO-Revision-Date: 2023-11-26 19:34+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\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"
"X-Generator: Weblate 4.17\n"

#. module: product_attribute_set
#: model:ir.model,name:product_attribute_set.model_attribute_attribute
msgid "Attribute"
msgstr ""

#. 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 "Conjunto de atributos"

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

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

#. module: product_attribute_set
#: model:ir.model.fields,field_description:product_attribute_set.field_product_category__attribute_set_id
msgid "Default Attribute Set"
msgstr "Conjunto de Atributos por Defecto"

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

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

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

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

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

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

#. module: product_attribute_set
#: model:ir.model,name:product_attribute_set.model_product_category
msgid "Product Category"
msgstr "Categoría de Producto"

#. module: product_attribute_set
#: model:ir.model,name:product_attribute_set.model_product_product
msgid "Product Variant"
msgstr ""

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

#. module: product_attribute_set
#: model:ir.model.fields,field_description:product_attribute_set.computer_tech_description_attribute_ir_model_fields
msgid "Technical Description"
msgstr "Descripción Técnica"

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

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