Skip to content

Commit

Permalink
Merge PR #142 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Nov 20, 2023
2 parents fc3988f + 1072cc5 commit eb40176
Show file tree
Hide file tree
Showing 21 changed files with 1,403 additions and 0 deletions.
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 <[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]>

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

0 comments on commit eb40176

Please sign in to comment.