diff --git a/hr_personal_equipment_variant_configurator/README.rst b/hr_personal_equipment_variant_configurator/README.rst new file mode 100644 index 00000000000..23dca7a18a6 --- /dev/null +++ b/hr_personal_equipment_variant_configurator/README.rst @@ -0,0 +1,97 @@ +========================================== +Hr Personal Equipment Variant Configurator +========================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:dc7277e80cd5a2364f3acd332b5a912db7503560fbfc1b2d17cdb22bcf3dd90b + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fhr-lightgray.png?logo=github + :target: https://github.com/OCA/hr/tree/16.0/hr_personal_equipment_variant_configurator + :alt: OCA/hr +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/hr-16-0/hr-16-0-hr_personal_equipment_variant_configurator + :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/hr&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows to choose between different product variants at the personal equipment request. + +**Table of contents** + +.. contents:: + :local: + +Installation +============ + +To install this module, you need to have HR module installed or it will be requested during installation. + +Configuration +============= + +Reproduce the following steps to configure the module: +1. Create a new product and set the check "Is Employee Personal Equipment" to true. +2. For this product create a new product variant. + +Usage +===== + +To use this module, you need to: +1. Go to Employees > Personal Equipment > Personal Equipment Requests. +2. Create a new Personal Equipment Request. +3. Choose a product between the available products. +4. Choose a variant for the selected product. + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* CreuBlanca + +Contributors +~~~~~~~~~~~~ + +* Alba Riera + +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/hr `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_personal_equipment_variant_configurator/__init__.py b/hr_personal_equipment_variant_configurator/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /dev/null +++ b/hr_personal_equipment_variant_configurator/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/hr_personal_equipment_variant_configurator/__manifest__.py b/hr_personal_equipment_variant_configurator/__manifest__.py new file mode 100644 index 00000000000..60db1a7bb9a --- /dev/null +++ b/hr_personal_equipment_variant_configurator/__manifest__.py @@ -0,0 +1,14 @@ +# Copyright 2021 Creu Blanca +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Hr Personal Equipment Variant Configurator", + "summary": """ + Manage variants of personal equipment""", + "version": "16.0.1.0.0", + "license": "AGPL-3", + "author": "CreuBlanca, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/hr", + "depends": ["hr_personal_equipment_request", "product_variant_configurator"], + "data": ["views/hr_personal_equipment_request.xml"], +} diff --git a/hr_personal_equipment_variant_configurator/i18n/es.po b/hr_personal_equipment_variant_configurator/i18n/es.po new file mode 100644 index 00000000000..59f1854538b --- /dev/null +++ b/hr_personal_equipment_variant_configurator/i18n/es.po @@ -0,0 +1,76 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_personal_equipment_variant_configurator +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-02-18 18:36+0000\n" +"Last-Translator: Ivorra78 \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: hr_personal_equipment_variant_configurator +#: model:ir.model,name:hr_personal_equipment_variant_configurator.model_hr_personal_equipment +msgid "Adds personal equipment information and allocation" +msgstr "Añade información de equipamiento personal y su asignación" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__can_create_product +msgid "Can Create Product" +msgstr "Puede Crear Producto" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__create_product_variant +msgid "Create product now!" +msgstr "¡Crear producto ahora!" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__display_name +msgid "Display Name" +msgstr "Mostrar Nombre" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__id +msgid "ID" +msgstr "ID" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment____last_update +msgid "Last Modified on" +msgstr "Última Modificación el" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__price_extra +msgid "Price Extra" +msgstr "Precio Extra" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,help:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__price_extra +msgid "" +"Price Extra: Extra price for the variant with the currently selected " +"attributes values on sale price. eg. 200 price extra, 1000 + 200 = 1200." +msgstr "" +"Precio extra: Precio extra de venta para la variante con los valores de " +"atributos seleccionados. Por ejemplo. 200 de precio extra, 1000 + 200 = 1200." + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__product_tmpl_id +msgid "Product Template" +msgstr "Producto" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__product_id +msgid "Product Variant" +msgstr "Variante del Producto" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__product_attribute_ids +msgid "Product attributes" +msgstr "Atributos de producto" diff --git a/hr_personal_equipment_variant_configurator/i18n/es_PA.po b/hr_personal_equipment_variant_configurator/i18n/es_PA.po new file mode 100644 index 00000000000..2017075ed31 --- /dev/null +++ b/hr_personal_equipment_variant_configurator/i18n/es_PA.po @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_personal_equipment_variant_configurator +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: es_PA\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: hr_personal_equipment_variant_configurator +#: model:ir.model,name:hr_personal_equipment_variant_configurator.model_hr_personal_equipment +msgid "Adds personal equipment information and allocation" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__can_create_product +msgid "Can Create Product" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__create_product_variant +msgid "Create product now!" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__display_name +msgid "Display Name" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__id +msgid "ID" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment____last_update +msgid "Last Modified on" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__price_extra +msgid "Price Extra" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,help:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__price_extra +msgid "" +"Price Extra: Extra price for the variant with the currently selected " +"attributes values on sale price. eg. 200 price extra, 1000 + 200 = 1200." +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__product_tmpl_id +msgid "Product Template" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__product_id +msgid "Product Variant" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__product_attribute_ids +msgid "Product attributes" +msgstr "" diff --git a/hr_personal_equipment_variant_configurator/i18n/hr_personal_equipment_variant_configurator.pot b/hr_personal_equipment_variant_configurator/i18n/hr_personal_equipment_variant_configurator.pot new file mode 100644 index 00000000000..f6b30e042c8 --- /dev/null +++ b/hr_personal_equipment_variant_configurator/i18n/hr_personal_equipment_variant_configurator.pot @@ -0,0 +1,71 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_personal_equipment_variant_configurator +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model,name:hr_personal_equipment_variant_configurator.model_hr_personal_equipment +msgid "Adds personal equipment information and allocation" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__can_create_product +msgid "Can Create Product" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__create_product_variant +msgid "Create product now!" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__display_name +msgid "Display Name" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__id +msgid "ID" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment____last_update +msgid "Last Modified on" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__price_extra +msgid "Price Extra" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,help:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__price_extra +msgid "" +"Price Extra: Extra price for the variant with the currently selected " +"attributes values on sale price. eg. 200 price extra, 1000 + 200 = 1200." +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__product_tmpl_id +msgid "Product Template" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__product_id +msgid "Product Variant" +msgstr "" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__product_attribute_ids +msgid "Product attributes" +msgstr "" diff --git a/hr_personal_equipment_variant_configurator/i18n/it.po b/hr_personal_equipment_variant_configurator/i18n/it.po new file mode 100644 index 00000000000..6dd434bd588 --- /dev/null +++ b/hr_personal_equipment_variant_configurator/i18n/it.po @@ -0,0 +1,77 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_personal_equipment_variant_configurator +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-04-29 17:36+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\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: hr_personal_equipment_variant_configurator +#: model:ir.model,name:hr_personal_equipment_variant_configurator.model_hr_personal_equipment +msgid "Adds personal equipment information and allocation" +msgstr "Aggiunge informazioni e assegnazione su attrezzatura individuale" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__can_create_product +msgid "Can Create Product" +msgstr "Può creare il prodotto" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__create_product_variant +msgid "Create product now!" +msgstr "Crea prodotto ora!" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__id +msgid "ID" +msgstr "ID" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment____last_update +msgid "Last Modified on" +msgstr "Ultima modifica il" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__price_extra +msgid "Price Extra" +msgstr "Extra prezzo" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,help:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__price_extra +msgid "" +"Price Extra: Extra price for the variant with the currently selected " +"attributes values on sale price. eg. 200 price extra, 1000 + 200 = 1200." +msgstr "" +"Extra prezzo : extra prezzo sul prezzo di vendita per la variante con gli " +"attributi attualmente selezionati: es. 200 di extra prezzo , 1000 + 200 = " +"1200." + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__product_tmpl_id +msgid "Product Template" +msgstr "Modello prodotto" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__product_id +msgid "Product Variant" +msgstr "Variante prodotto" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__product_attribute_ids +msgid "Product attributes" +msgstr "Attributi prodotto" diff --git a/hr_personal_equipment_variant_configurator/i18n/pt_BR.po b/hr_personal_equipment_variant_configurator/i18n/pt_BR.po new file mode 100644 index 00000000000..8e7a9e46abf --- /dev/null +++ b/hr_personal_equipment_variant_configurator/i18n/pt_BR.po @@ -0,0 +1,78 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_personal_equipment_variant_configurator +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-05-20 19:38+0000\n" +"Last-Translator: Rodrigo Macedo \n" +"Language-Team: none\n" +"Language: pt_BR\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: hr_personal_equipment_variant_configurator +#: model:ir.model,name:hr_personal_equipment_variant_configurator.model_hr_personal_equipment +msgid "Adds personal equipment information and allocation" +msgstr "Adiciona informações e alocação de equipamentos pessoais" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__can_create_product +msgid "Can Create Product" +msgstr "Pode Criar Produto" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__create_product_variant +msgid "Create product now!" +msgstr "Criar produto agora!" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__display_name +msgid "Display Name" +msgstr "Nome exibido" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__id +msgid "ID" +msgstr "ID" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment____last_update +msgid "Last Modified on" +msgstr "Ultima modificação em" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__price_extra +msgid "Price Extra" +msgstr "Preço Extra" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,help:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__price_extra +msgid "" +"Price Extra: Extra price for the variant with the currently selected " +"attributes values on sale price. eg. 200 price extra, 1000 + 200 = 1200." +msgstr "" +"Preço Extra: Preço extra para a variante com os valores dos atributos " +"atualmente selecionados no preço promocional. por exemplo. 200 preço extra, " +"1000 + 200 = 1200." + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__product_tmpl_id +msgid "Product Template" +msgstr "Modelo de Produto" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__product_id +msgid "Product Variant" +msgstr "Variante de Produto" + +#. module: hr_personal_equipment_variant_configurator +#: model:ir.model.fields,field_description:hr_personal_equipment_variant_configurator.field_hr_personal_equipment__product_attribute_ids +msgid "Product attributes" +msgstr "Atributos de Produto" diff --git a/hr_personal_equipment_variant_configurator/models/__init__.py b/hr_personal_equipment_variant_configurator/models/__init__.py new file mode 100644 index 00000000000..fb69d21704b --- /dev/null +++ b/hr_personal_equipment_variant_configurator/models/__init__.py @@ -0,0 +1 @@ +from . import hr_personal_equipment diff --git a/hr_personal_equipment_variant_configurator/models/hr_personal_equipment.py b/hr_personal_equipment_variant_configurator/models/hr_personal_equipment.py new file mode 100644 index 00000000000..8caf54b5471 --- /dev/null +++ b/hr_personal_equipment_variant_configurator/models/hr_personal_equipment.py @@ -0,0 +1,12 @@ +# Copyright 2021 Creu Blanca +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class HrPersonalEquipment(models.Model): + + _inherit = ["hr.personal.equipment", "product.configurator"] + _name = "hr.personal.equipment" + + product_tmpl_id = fields.Many2one(domain=[("is_personal_equipment", "=", True)]) diff --git a/hr_personal_equipment_variant_configurator/readme/CONFIGURE.rst b/hr_personal_equipment_variant_configurator/readme/CONFIGURE.rst new file mode 100644 index 00000000000..6f615a326b0 --- /dev/null +++ b/hr_personal_equipment_variant_configurator/readme/CONFIGURE.rst @@ -0,0 +1,3 @@ +Reproduce the following steps to configure the module: +1. Create a new product and set the check "Is Employee Personal Equipment" to true. +2. For this product create a new product variant. diff --git a/hr_personal_equipment_variant_configurator/readme/CONTRIBUTORS.rst b/hr_personal_equipment_variant_configurator/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..c5fbe36d180 --- /dev/null +++ b/hr_personal_equipment_variant_configurator/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Alba Riera diff --git a/hr_personal_equipment_variant_configurator/readme/DESCRIPTION.rst b/hr_personal_equipment_variant_configurator/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..7f4b1f0a128 --- /dev/null +++ b/hr_personal_equipment_variant_configurator/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module allows to choose between different product variants at the personal equipment request. diff --git a/hr_personal_equipment_variant_configurator/readme/INSTALL.rst b/hr_personal_equipment_variant_configurator/readme/INSTALL.rst new file mode 100644 index 00000000000..9b546f3535e --- /dev/null +++ b/hr_personal_equipment_variant_configurator/readme/INSTALL.rst @@ -0,0 +1 @@ +To install this module, you need to have HR module installed or it will be requested during installation. diff --git a/hr_personal_equipment_variant_configurator/readme/USAGE.rst b/hr_personal_equipment_variant_configurator/readme/USAGE.rst new file mode 100644 index 00000000000..766edf5a71d --- /dev/null +++ b/hr_personal_equipment_variant_configurator/readme/USAGE.rst @@ -0,0 +1,5 @@ +To use this module, you need to: +1. Go to Employees > Personal Equipment > Personal Equipment Requests. +2. Create a new Personal Equipment Request. +3. Choose a product between the available products. +4. Choose a variant for the selected product. diff --git a/hr_personal_equipment_variant_configurator/static/description/icon.png b/hr_personal_equipment_variant_configurator/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/hr_personal_equipment_variant_configurator/static/description/icon.png differ diff --git a/hr_personal_equipment_variant_configurator/static/description/index.html b/hr_personal_equipment_variant_configurator/static/description/index.html new file mode 100644 index 00000000000..b3af462bc30 --- /dev/null +++ b/hr_personal_equipment_variant_configurator/static/description/index.html @@ -0,0 +1,441 @@ + + + + + +Hr Personal Equipment Variant Configurator + + + +
+

Hr Personal Equipment Variant Configurator

+ + +

Beta License: AGPL-3 OCA/hr Translate me on Weblate Try me on Runboat

+

This module allows to choose between different product variants at the personal equipment request.

+

Table of contents

+ +
+

Installation

+

To install this module, you need to have HR module installed or it will be requested during installation.

+
+
+

Configuration

+

Reproduce the following steps to configure the module: +1. Create a new product and set the check “Is Employee Personal Equipment” to true. +2. For this product create a new product variant.

+
+
+

Usage

+

To use this module, you need to: +1. Go to Employees > Personal Equipment > Personal Equipment Requests. +2. Create a new Personal Equipment Request. +3. Choose a product between the available products. +4. Choose a variant for the selected product.

+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • CreuBlanca
  • +
+
+ +
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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/hr project on GitHub.

+

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

+
+
+
+ + diff --git a/hr_personal_equipment_variant_configurator/views/hr_personal_equipment_request.xml b/hr_personal_equipment_variant_configurator/views/hr_personal_equipment_request.xml new file mode 100644 index 00000000000..464e24f8ebf --- /dev/null +++ b/hr_personal_equipment_variant_configurator/views/hr_personal_equipment_request.xml @@ -0,0 +1,53 @@ + + + + + hr.personal.equipment.request.form (in hr_personal_equipment_variant_configurator) + hr.personal.equipment.request + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + diff --git a/setup/hr_personal_equipment_variant_configurator/odoo/addons/hr_personal_equipment_variant_configurator b/setup/hr_personal_equipment_variant_configurator/odoo/addons/hr_personal_equipment_variant_configurator new file mode 120000 index 00000000000..72f5016be44 --- /dev/null +++ b/setup/hr_personal_equipment_variant_configurator/odoo/addons/hr_personal_equipment_variant_configurator @@ -0,0 +1 @@ +../../../../hr_personal_equipment_variant_configurator \ No newline at end of file diff --git a/setup/hr_personal_equipment_variant_configurator/setup.py b/setup/hr_personal_equipment_variant_configurator/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/hr_personal_equipment_variant_configurator/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)