diff --git a/product_state/README.rst b/product_state/README.rst new file mode 100644 index 00000000000..18dd9da80fc --- /dev/null +++ b/product_state/README.rst @@ -0,0 +1,116 @@ +============= +Product State +============= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:fd2c28f2f12d9bcf783b0c7e33f5fb6765e5bccda8b23c20aec401af713d871e + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fproduct--attribute-lightgray.png?logo=github + :target: https://github.com/OCA/product-attribute/tree/18.0/product_state + :alt: OCA/product-attribute +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_state + :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/product-attribute&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module introduces the state field on product template and allows +simple product life cycle: + +- draft: In Development +- sellable: Normal +- end: End of Lifecycle +- obsolete: Obsolete + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To add a product to a state: + +1. Go to the product itself and edit. +2. You can select the desired status in the list of buttons above the + form. + +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 +------- + +* ACSONE SA/NV + +Contributors +------------ + +- Cedric Pigeon +- Alexandre Saunier +- Nikul Chaudhary +- Eduardo Magdalena (C2i Change 2 improve + http://www.c2i.es) +- Andrii Skrypka +- Denis Roussel +- Riccardo Fresco +- Nils Coenen +- `Trobz `__: + + - Tuan Nguyen + +Other credits +------------- + +The migration of this module from 17.0 to 18.0 was financially supported +by Camptocamp. + +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. + +.. |maintainer-emagdalenaC2i| image:: https://github.com/emagdalenaC2i.png?size=40px + :target: https://github.com/emagdalenaC2i + :alt: emagdalenaC2i + +Current `maintainer `__: + +|maintainer-emagdalenaC2i| + +This module is part of the `OCA/product-attribute `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_state/__init__.py b/product_state/__init__.py new file mode 100644 index 00000000000..411fdc5d8f3 --- /dev/null +++ b/product_state/__init__.py @@ -0,0 +1,16 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import models + + +def post_init_hook(env): + """This hook is used to add a state on existing products + when module product_state is installed. + """ + + product_without_state = env["product.template"].search([("state", "=", False)]) + product_without_state.write({"state": "sellable"}) + product_without_state = env["product.template"].search( + [("product_state_id", "=", False)] + ) + product_without_state._inverse_product_state() diff --git a/product_state/__manifest__.py b/product_state/__manifest__.py new file mode 100644 index 00000000000..5924a8bbc7c --- /dev/null +++ b/product_state/__manifest__.py @@ -0,0 +1,23 @@ +# Copyright 2017 ACSONE SA/NV () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + "name": "Product State", + "summary": """ + Module introducing a state field on product template""", + "author": "ACSONE SA/NV, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/product-attribute", + "category": "Product", + "version": "18.0.1.0.0", + "license": "AGPL-3", + "depends": ["product"], + "data": [ + "data/product_state_data.xml", + "security/product_state_security.xml", + "security/ir.model.access.csv", + "views/product_template_views.xml", + "views/product_state_views.xml", + ], + "application": False, + "maintainers": ["emagdalenaC2i"], + "post_init_hook": "post_init_hook", +} diff --git a/product_state/data/product_state_data.xml b/product_state/data/product_state_data.xml new file mode 100644 index 00000000000..c7adb6834b0 --- /dev/null +++ b/product_state/data/product_state_data.xml @@ -0,0 +1,23 @@ + + + draft + In Development + 10 + + + sellable + Normal + 20 + True + + + end + End of Lifecycle + 30 + + + obsolete + Obsolete + 40 + + diff --git a/product_state/i18n/ca.po b/product_state/i18n/ca.po new file mode 100644 index 00000000000..a0f675f47bf --- /dev/null +++ b/product_state/i18n/ca.po @@ -0,0 +1,195 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_state +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2022-04-22 10:05+0000\n" +"Last-Translator: pablontura \n" +"Language-Team: none\n" +"Language: ca\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.3.2\n" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__active +msgid "Active" +msgstr "Actiu" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Code" +msgstr "Codi" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid +msgid "Created by" +msgstr "Creat per" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_date +msgid "Created on" +msgstr "Creat el" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__default +msgid "Default state" +msgstr "Estat per defecte" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__description +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Description" +msgstr "Descripció" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__display_name +msgid "Display Name" +msgstr "Nom de visualització" + +#. module: product_state +#: model:product.state,name:product_state.product_state_end +msgid "End of Lifecycle" +msgstr "Final del cicle de vida" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__id +msgid "ID" +msgstr "ID" + +#. module: product_state +#: model:product.state,name:product_state.product_state_draft +msgid "In Development" +msgstr "En Desenvolupament" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state____last_update +msgid "Last Modified on" +msgstr "Última modificació el" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid +msgid "Last Updated by" +msgstr "Última actualització per" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_date +msgid "Last Updated on" +msgstr "Última actualització el" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__name +msgid "Name" +msgstr "Nom" + +#. module: product_state +#: model:product.state,name:product_state.product_state_sellable +msgid "Normal" +msgstr "Normal" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__products_count +msgid "Number of products" +msgstr "Nombre de productes" + +#. module: product_state +#: model:product.state,name:product_state.product_state_obsolete +msgid "Obsolete" +msgstr "Obsolet" + +#. module: product_state +#: model:ir.model,name:product_state.model_product_template +msgid "Product" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_single_product_state +#: model:ir.model,name:product_state.model_product_state +#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view +msgid "Product State" +msgstr "Estat del producte" + +#. module: product_state +#: model:ir.model.constraint,message:product_state.constraint_product_state_code_unique +msgid "Product State Code must be unique." +msgstr "El codi d'estat del producte ha de ser únic." + +#. module: product_state +#: model:ir.ui.menu,name:product_state.menu_product_state +msgid "Product States" +msgstr "Estats del producte" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__state +#: model:ir.model.fields,field_description:product_state.field_product_template__state +msgid "Product Status" +msgstr "Estat del producte" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban +msgid "Products" +msgstr "Productes" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_product__product_state_id +#: model:ir.model.fields,help:product_state.field_product_template__product_state_id +msgid "Select a state for this product" +msgstr "Seleccioneu un estat per a aquest producte" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__sequence +msgid "Sequence" +msgstr "Seqüència" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id +#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id +#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state +msgid "State" +msgstr "Estat" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__code +msgid "State Code" +msgstr "Codi de l'Estat" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "State Name" +msgstr "Nom de l'Estat" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_state_products +#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids +#, fuzzy +msgid "State Products" +msgstr "Estat dels productes" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_template.py:0 +#, fuzzy, python-format +msgid "The product state code %s could not be found." +msgstr "No s'ha pogut trobar el codi d'estat del producte %s." + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_state.py:0 +#, python-format +msgid "There should be only one default state" +msgstr "Només hi hauria d'haver un estat per defecte" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_state__sequence +msgid "Used to order the States" +msgstr "S'utilitza per ordenar els Estats" + +#~ msgid "Product Template" +#~ msgstr "Plantilla de producte" diff --git a/product_state/i18n/de.po b/product_state/i18n/de.po new file mode 100644 index 00000000000..9c441ca6156 --- /dev/null +++ b/product_state/i18n/de.po @@ -0,0 +1,200 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_state +# +# Translators: +# Niki Waibel , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:38+0000\n" +"PO-Revision-Date: 2020-07-22 14:19+0000\n" +"Last-Translator: c2cdidier \n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\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 3.10\n" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__active +msgid "Active" +msgstr "" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Code" +msgstr "Code" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid +msgid "Created by" +msgstr "Erstellt durch" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_date +msgid "Created on" +msgstr "Erstellt am" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__default +msgid "Default state" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__description +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Description" +msgstr "Beschreibung" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__display_name +msgid "Display Name" +msgstr "Anzeigename" + +#. module: product_state +#: model:product.state,name:product_state.product_state_end +msgid "End of Lifecycle" +msgstr "Ende des Lebenszyklus" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__id +msgid "ID" +msgstr "ID" + +#. module: product_state +#: model:product.state,name:product_state.product_state_draft +msgid "In Development" +msgstr "In Entwicklung" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state____last_update +msgid "Last Modified on" +msgstr "Letzte Änderung am" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid +msgid "Last Updated by" +msgstr "Letzte Änderung durch" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_date +msgid "Last Updated on" +msgstr "Zuletzt aktualisiert am" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__name +msgid "Name" +msgstr "Name" + +#. module: product_state +#: model:product.state,name:product_state.product_state_sellable +msgid "Normal" +msgstr "Normal" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__products_count +msgid "Number of products" +msgstr "Anzahl der Produkte" + +#. module: product_state +#: model:product.state,name:product_state.product_state_obsolete +msgid "Obsolete" +msgstr "Veraltet" + +#. module: product_state +#: model:ir.model,name:product_state.model_product_template +msgid "Product" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_single_product_state +#: model:ir.model,name:product_state.model_product_state +#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view +msgid "Product State" +msgstr "Produkt Zustand" + +#. module: product_state +#: model:ir.model.constraint,message:product_state.constraint_product_state_code_unique +msgid "Product State Code must be unique." +msgstr "Produkt Zustandscode muss eindeutig sein." + +#. module: product_state +#: model:ir.ui.menu,name:product_state.menu_product_state +msgid "Product States" +msgstr "Produkt-Zustände" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__state +#: model:ir.model.fields,field_description:product_state.field_product_template__state +msgid "Product Status" +msgstr "Produkt-Status" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban +msgid "Products" +msgstr "Produkte" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_product__product_state_id +#: model:ir.model.fields,help:product_state.field_product_template__product_state_id +msgid "Select a state for this product" +msgstr "Wählen Sie einen Zustand für dieses Produkt" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__sequence +msgid "Sequence" +msgstr "Sequenz" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id +#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id +#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state +msgid "State" +msgstr "Zustand" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__code +msgid "State Code" +msgstr "Zustandscode" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "State Name" +msgstr "Zustandsname" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_state_products +#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids +msgid "State Products" +msgstr "Produkte Zustand" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_template.py:0 +#, python-format +msgid "The product state code %s could not be found." +msgstr "" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_state.py:0 +#, python-format +msgid "There should be only one default state" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_state__sequence +msgid "Used to order the States" +msgstr "Dient zu Sortierung der Zustände" + +#~ msgid "Product Template" +#~ msgstr "Produktvorlage" + +#~ msgid "product.state" +#~ msgstr "Produktzustand" diff --git a/product_state/i18n/es.po b/product_state/i18n/es.po new file mode 100644 index 00000000000..4b22de2b50e --- /dev/null +++ b/product_state/i18n/es.po @@ -0,0 +1,201 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_state +# +# Translators: +# Pedro M. Baeza , 2018 +# enjolras , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-29 08:49+0000\n" +"PO-Revision-Date: 2023-10-12 15:36+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\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_state +#: model:ir.model.fields,field_description:product_state.field_product_state__active +msgid "Active" +msgstr "Activo" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Code" +msgstr "Código" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__default +msgid "Default state" +msgstr "Estado por defecto" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__description +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Description" +msgstr "Descripción" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__display_name +msgid "Display Name" +msgstr "Mostrar Nombre" + +#. module: product_state +#: model:product.state,name:product_state.product_state_end +msgid "End of Lifecycle" +msgstr "Fin del ciclo de vida" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__id +msgid "ID" +msgstr "ID (identificación)" + +#. module: product_state +#: model:product.state,name:product_state.product_state_draft +msgid "In Development" +msgstr "En desarrollo" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state____last_update +msgid "Last Modified on" +msgstr "Última Modificación el" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_date +msgid "Last Updated on" +msgstr "Última Actualización el" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__name +msgid "Name" +msgstr "Nombre" + +#. module: product_state +#: model:product.state,name:product_state.product_state_sellable +msgid "Normal" +msgstr "Normal" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__products_count +msgid "Number of products" +msgstr "Número de productos" + +#. module: product_state +#: model:product.state,name:product_state.product_state_obsolete +msgid "Obsolete" +msgstr "Obsoleto" + +#. module: product_state +#: model:ir.model,name:product_state.model_product_template +msgid "Product" +msgstr "Producto" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_single_product_state +#: model:ir.model,name:product_state.model_product_state +#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view +msgid "Product State" +msgstr "Estado del producto" + +#. module: product_state +#: model:ir.model.constraint,message:product_state.constraint_product_state_code_unique +msgid "Product State Code must be unique." +msgstr "El código de estado del producto debe ser único." + +#. module: product_state +#: model:ir.ui.menu,name:product_state.menu_product_state +msgid "Product States" +msgstr "Estados del producto" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__state +#: model:ir.model.fields,field_description:product_state.field_product_template__state +msgid "Product Status" +msgstr "Plantilla de producto" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban +msgid "Products" +msgstr "Productos" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_product__product_state_id +#: model:ir.model.fields,help:product_state.field_product_template__product_state_id +msgid "Select a state for this product" +msgstr "Selecciona un estado para este producto" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__sequence +msgid "Sequence" +msgstr "Secuencia" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id +#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id +#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state +msgid "State" +msgstr "Estado" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__code +msgid "State Code" +msgstr "Código de estado" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "State Name" +msgstr "Nombre del estado" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_state_products +#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids +msgid "State Products" +msgstr "Productos estatales" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_template.py:0 +#, python-format +msgid "The product state code %s could not be found." +msgstr "No se ha encontrado el código de estado del producto %s." + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_state.py:0 +#, python-format +msgid "There should be only one default state" +msgstr "Sólo debería haber un estado predeterminado" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_state__sequence +msgid "Used to order the States" +msgstr "Usado para pedir a los estados" + +#~ msgid "Product Template" +#~ msgstr "Plantilla de producto" + +#~ msgid "product.state" +#~ msgstr "producto.estado" diff --git a/product_state/i18n/fr.po b/product_state/i18n/fr.po new file mode 100644 index 00000000000..93a955c5087 --- /dev/null +++ b/product_state/i18n/fr.po @@ -0,0 +1,201 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_state +# +# Translators: +# OCA Transbot , 2017 +# guillaume bauer , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-07-29 02:55+0000\n" +"PO-Revision-Date: 2020-07-22 14:19+0000\n" +"Last-Translator: c2cdidier \n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\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 3.10\n" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__active +msgid "Active" +msgstr "" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Code" +msgstr "Code" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid +msgid "Created by" +msgstr "Créé par" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_date +msgid "Created on" +msgstr "Créé le" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__default +msgid "Default state" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__description +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Description" +msgstr "Description" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__display_name +msgid "Display Name" +msgstr "Nom affiché" + +#. module: product_state +#: model:product.state,name:product_state.product_state_end +msgid "End of Lifecycle" +msgstr "Fin de vie" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__id +msgid "ID" +msgstr "ID" + +#. module: product_state +#: model:product.state,name:product_state.product_state_draft +msgid "In Development" +msgstr "Phase de recherche et de développement" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state____last_update +msgid "Last Modified on" +msgstr "Dernière modification le" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid +msgid "Last Updated by" +msgstr "Dernière modification par" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_date +msgid "Last Updated on" +msgstr "Dernière modification le" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__name +msgid "Name" +msgstr "Nom" + +#. module: product_state +#: model:product.state,name:product_state.product_state_sellable +msgid "Normal" +msgstr "Normal" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__products_count +msgid "Number of products" +msgstr "Nombre d'articles" + +#. module: product_state +#: model:product.state,name:product_state.product_state_obsolete +msgid "Obsolete" +msgstr "Obsolète" + +#. module: product_state +#: model:ir.model,name:product_state.model_product_template +msgid "Product" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_single_product_state +#: model:ir.model,name:product_state.model_product_state +#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view +msgid "Product State" +msgstr "Etat de l'article" + +#. module: product_state +#: model:ir.model.constraint,message:product_state.constraint_product_state_code_unique +msgid "Product State Code must be unique." +msgstr "Le code d'état de l'article doit être unique." + +#. module: product_state +#: model:ir.ui.menu,name:product_state.menu_product_state +msgid "Product States" +msgstr "Etats de l'article" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__state +#: model:ir.model.fields,field_description:product_state.field_product_template__state +msgid "Product Status" +msgstr "Statut de l'article" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban +msgid "Products" +msgstr "Articles" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_product__product_state_id +#: model:ir.model.fields,help:product_state.field_product_template__product_state_id +msgid "Select a state for this product" +msgstr "Sélectionner un état pour cet article" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__sequence +msgid "Sequence" +msgstr "Séquence" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id +#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id +#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state +msgid "State" +msgstr "Statut" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__code +msgid "State Code" +msgstr "Code du statut" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "State Name" +msgstr "Nom du statut" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_state_products +#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids +msgid "State Products" +msgstr "Statut des articles" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_template.py:0 +#, python-format +msgid "The product state code %s could not be found." +msgstr "" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_state.py:0 +#, python-format +msgid "There should be only one default state" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_state__sequence +msgid "Used to order the States" +msgstr "Utilisé pour trier les statuts" + +#~ msgid "Product Template" +#~ msgstr "Modèle de l'article" + +#~ msgid "product.state" +#~ msgstr "Statut de l'article" diff --git a/product_state/i18n/hr.po b/product_state/i18n/hr.po new file mode 100644 index 00000000000..48edc8d1e85 --- /dev/null +++ b/product_state/i18n/hr.po @@ -0,0 +1,206 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_state +# +# Translators: +# Bole , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-29 08:49+0000\n" +"PO-Revision-Date: 2018-01-29 08:49+0000\n" +"Last-Translator: Bole , 2018\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__active +msgid "Active" +msgstr "" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Code" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid +msgid "Created by" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_date +msgid "Created on" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__default +msgid "Default state" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__description +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Description" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__display_name +msgid "Display Name" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_end +msgid "End of Lifecycle" +msgstr "Kraj životnog ciklusa" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__id +msgid "ID" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_draft +msgid "In Development" +msgstr "U razvoju" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state____last_update +msgid "Last Modified on" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_date +msgid "Last Updated on" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__name +msgid "Name" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_sellable +msgid "Normal" +msgstr "Normalno" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__products_count +msgid "Number of products" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_obsolete +msgid "Obsolete" +msgstr "Zastarjelo" + +#. module: product_state +#: model:ir.model,name:product_state.model_product_template +msgid "Product" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_single_product_state +#: model:ir.model,name:product_state.model_product_state +#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view +#, fuzzy +msgid "Product State" +msgstr "Predložak proizvoda" + +#. module: product_state +#: model:ir.model.constraint,message:product_state.constraint_product_state_code_unique +msgid "Product State Code must be unique." +msgstr "" + +#. module: product_state +#: model:ir.ui.menu,name:product_state.menu_product_state +#, fuzzy +msgid "Product States" +msgstr "Predložak proizvoda" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__state +#: model:ir.model.fields,field_description:product_state.field_product_template__state +#, fuzzy +msgid "Product Status" +msgstr "Predložak proizvoda" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban +msgid "Products" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_product__product_state_id +#: model:ir.model.fields,help:product_state.field_product_template__product_state_id +msgid "Select a state for this product" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__sequence +msgid "Sequence" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id +#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id +#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state +#, fuzzy +msgid "State" +msgstr "Status" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__code +msgid "State Code" +msgstr "" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "State Name" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_state_products +#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids +#, fuzzy +msgid "State Products" +msgstr "Status" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_template.py:0 +#, python-format +msgid "The product state code %s could not be found." +msgstr "" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_state.py:0 +#, python-format +msgid "There should be only one default state" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_state__sequence +msgid "Used to order the States" +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Predložak proizvoda" + +#, fuzzy +#~ msgid "product.state" +#~ msgstr "Predložak proizvoda" diff --git a/product_state/i18n/it.po b/product_state/i18n/it.po new file mode 100644 index 00000000000..927ac5e636c --- /dev/null +++ b/product_state/i18n/it.po @@ -0,0 +1,191 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_state +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-11-02 09: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: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__active +msgid "Active" +msgstr "Attivo" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Code" +msgstr "Codice" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid +msgid "Created by" +msgstr "Creato da" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_date +msgid "Created on" +msgstr "Creato il" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__default +msgid "Default state" +msgstr "Stato predefinito" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__description +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Description" +msgstr "Descrizione" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: product_state +#: model:product.state,name:product_state.product_state_end +msgid "End of Lifecycle" +msgstr "Fine ciclo di vita" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__id +msgid "ID" +msgstr "ID" + +#. module: product_state +#: model:product.state,name:product_state.product_state_draft +msgid "In Development" +msgstr "in sviluppo" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state____last_update +msgid "Last Modified on" +msgstr "Ultima modifica il" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid +msgid "Last Updated by" +msgstr "Ultimo aggiornamento di" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_date +msgid "Last Updated on" +msgstr "Ultimo aggiornamento il" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__name +msgid "Name" +msgstr "Nome" + +#. module: product_state +#: model:product.state,name:product_state.product_state_sellable +msgid "Normal" +msgstr "Normale" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__products_count +msgid "Number of products" +msgstr "Numero di prodotti" + +#. module: product_state +#: model:product.state,name:product_state.product_state_obsolete +msgid "Obsolete" +msgstr "Obsoleto" + +#. module: product_state +#: model:ir.model,name:product_state.model_product_template +msgid "Product" +msgstr "Prodotto" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_single_product_state +#: model:ir.model,name:product_state.model_product_state +#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view +msgid "Product State" +msgstr "Stato prodotto" + +#. module: product_state +#: model:ir.model.constraint,message:product_state.constraint_product_state_code_unique +msgid "Product State Code must be unique." +msgstr "Codice di stato prodotto deve essere unico." + +#. module: product_state +#: model:ir.ui.menu,name:product_state.menu_product_state +msgid "Product States" +msgstr "Stati prodotto" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__state +#: model:ir.model.fields,field_description:product_state.field_product_template__state +msgid "Product Status" +msgstr "Stato prodotto" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban +msgid "Products" +msgstr "Prodotti" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_product__product_state_id +#: model:ir.model.fields,help:product_state.field_product_template__product_state_id +msgid "Select a state for this product" +msgstr "Selezionare uno stato per questo prodotto" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__sequence +msgid "Sequence" +msgstr "Sequenza" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id +#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id +#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state +msgid "State" +msgstr "Stato" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__code +msgid "State Code" +msgstr "Codice stato" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "State Name" +msgstr "Nome stato" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_state_products +#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids +msgid "State Products" +msgstr "Prodotti stato" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_template.py:0 +#, python-format +msgid "The product state code %s could not be found." +msgstr "Il codice di stato prodotto %s non è stato trovato." + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_state.py:0 +#, python-format +msgid "There should be only one default state" +msgstr "Ci deve essere un solo stato predefinito" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_state__sequence +msgid "Used to order the States" +msgstr "Usato per ordinare gli stati" diff --git a/product_state/i18n/nl.po b/product_state/i18n/nl.po new file mode 100644 index 00000000000..bc50d97cccb --- /dev/null +++ b/product_state/i18n/nl.po @@ -0,0 +1,194 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_state +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-05-09 16:47+0000\n" +"Last-Translator: Bosd \n" +"Language-Team: none\n" +"Language: nl\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.3.2\n" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__active +msgid "Active" +msgstr "" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Code" +msgstr "Code" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid +msgid "Created by" +msgstr "Aangemaakt door" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_date +msgid "Created on" +msgstr "Aangemaakt op" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__default +msgid "Default state" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__description +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Description" +msgstr "Omschrijving" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__display_name +msgid "Display Name" +msgstr "Weergavenaam" + +#. module: product_state +#: model:product.state,name:product_state.product_state_end +msgid "End of Lifecycle" +msgstr "Einde levenscyclus" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__id +msgid "ID" +msgstr "ID" + +#. module: product_state +#: model:product.state,name:product_state.product_state_draft +msgid "In Development" +msgstr "In ontwikkeling" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state____last_update +msgid "Last Modified on" +msgstr "Laatst gewijzigd op" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid +msgid "Last Updated by" +msgstr "Laatst bijgewerkt door" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_date +msgid "Last Updated on" +msgstr "Laatst bijgewerkt op" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__name +msgid "Name" +msgstr "Naam" + +#. module: product_state +#: model:product.state,name:product_state.product_state_sellable +msgid "Normal" +msgstr "Normaal" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__products_count +msgid "Number of products" +msgstr "Aantal producten" + +#. module: product_state +#: model:product.state,name:product_state.product_state_obsolete +msgid "Obsolete" +msgstr "Verouderd" + +#. module: product_state +#: model:ir.model,name:product_state.model_product_template +msgid "Product" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_single_product_state +#: model:ir.model,name:product_state.model_product_state +#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view +msgid "Product State" +msgstr "Product status" + +#. module: product_state +#: model:ir.model.constraint,message:product_state.constraint_product_state_code_unique +msgid "Product State Code must be unique." +msgstr "Product Status Code moet uniek zijn." + +#. module: product_state +#: model:ir.ui.menu,name:product_state.menu_product_state +msgid "Product States" +msgstr "Product status" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__state +#: model:ir.model.fields,field_description:product_state.field_product_template__state +msgid "Product Status" +msgstr "Product status" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban +msgid "Products" +msgstr "Producten" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_product__product_state_id +#: model:ir.model.fields,help:product_state.field_product_template__product_state_id +msgid "Select a state for this product" +msgstr "Selecteer een status voor dir product" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__sequence +msgid "Sequence" +msgstr "Volgorde" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id +#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id +#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state +msgid "State" +msgstr "Status" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__code +msgid "State Code" +msgstr "Status code" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "State Name" +msgstr "Statusnaam" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_state_products +#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids +msgid "State Products" +msgstr "Product status" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_template.py:0 +#, python-format +msgid "The product state code %s could not be found." +msgstr "" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_state.py:0 +#, python-format +msgid "There should be only one default state" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_state__sequence +msgid "Used to order the States" +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Productsjabloon" diff --git a/product_state/i18n/nl_NL.po b/product_state/i18n/nl_NL.po new file mode 100644 index 00000000000..c663dcc7b0c --- /dev/null +++ b/product_state/i18n/nl_NL.po @@ -0,0 +1,204 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_state +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-27 04:44+0000\n" +"PO-Revision-Date: 2017-05-27 04:44+0000\n" +"Last-Translator: Peter Hageman , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\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_state +#: model:ir.model.fields,field_description:product_state.field_product_state__active +msgid "Active" +msgstr "" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Code" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid +msgid "Created by" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_date +msgid "Created on" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__default +msgid "Default state" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__description +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Description" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__display_name +msgid "Display Name" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_end +msgid "End of Lifecycle" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__id +msgid "ID" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_draft +msgid "In Development" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state____last_update +msgid "Last Modified on" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_date +msgid "Last Updated on" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__name +msgid "Name" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_sellable +msgid "Normal" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__products_count +msgid "Number of products" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_obsolete +msgid "Obsolete" +msgstr "" + +#. module: product_state +#: model:ir.model,name:product_state.model_product_template +msgid "Product" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_single_product_state +#: model:ir.model,name:product_state.model_product_state +#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view +#, fuzzy +msgid "Product State" +msgstr "Productsjabloon" + +#. module: product_state +#: model:ir.model.constraint,message:product_state.constraint_product_state_code_unique +msgid "Product State Code must be unique." +msgstr "" + +#. module: product_state +#: model:ir.ui.menu,name:product_state.menu_product_state +#, fuzzy +msgid "Product States" +msgstr "Productsjabloon" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__state +#: model:ir.model.fields,field_description:product_state.field_product_template__state +#, fuzzy +msgid "Product Status" +msgstr "Productsjabloon" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban +msgid "Products" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_product__product_state_id +#: model:ir.model.fields,help:product_state.field_product_template__product_state_id +msgid "Select a state for this product" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__sequence +msgid "Sequence" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id +#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id +#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state +msgid "State" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__code +msgid "State Code" +msgstr "" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "State Name" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_state_products +#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids +msgid "State Products" +msgstr "" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_template.py:0 +#, python-format +msgid "The product state code %s could not be found." +msgstr "" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_state.py:0 +#, python-format +msgid "There should be only one default state" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_state__sequence +msgid "Used to order the States" +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Productsjabloon" + +#, fuzzy +#~ msgid "product.state" +#~ msgstr "Productsjabloon" diff --git a/product_state/i18n/product_state.pot b/product_state/i18n/product_state.pot new file mode 100644 index 00000000000..df541204a4c --- /dev/null +++ b/product_state/i18n/product_state.pot @@ -0,0 +1,183 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_state +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.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: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__active +msgid "Active" +msgstr "" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Code" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid +msgid "Created by" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_date +msgid "Created on" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__default +msgid "Default state" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__description +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Description" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__display_name +msgid "Display Name" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_end +msgid "End of Lifecycle" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__id +msgid "ID" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_draft +msgid "In Development" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_date +msgid "Last Updated on" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__name +msgid "Name" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_sellable +msgid "Normal" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__products_count +msgid "Number of products" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_obsolete +msgid "Obsolete" +msgstr "" + +#. module: product_state +#: model:ir.model,name:product_state.model_product_template +msgid "Product" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_single_product_state +#: model:ir.model,name:product_state.model_product_state +#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view +msgid "Product State" +msgstr "" + +#. module: product_state +#: model:ir.model.constraint,message:product_state.constraint_product_state_code_unique +msgid "Product State Code must be unique." +msgstr "" + +#. module: product_state +#: model:ir.ui.menu,name:product_state.menu_product_state +msgid "Product States" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__state +#: model:ir.model.fields,field_description:product_state.field_product_template__state +msgid "Product Status" +msgstr "" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban +msgid "Products" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_product__product_state_id +#: model:ir.model.fields,help:product_state.field_product_template__product_state_id +msgid "Select a state for this product" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__sequence +msgid "Sequence" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id +#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id +#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state +msgid "State" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__code +msgid "State Code" +msgstr "" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "State Name" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_state_products +#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids +msgid "State Products" +msgstr "" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_template.py:0 +#, python-format +msgid "The product state code %s could not be found." +msgstr "" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_state.py:0 +#, python-format +msgid "There should be only one default state" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_state__sequence +msgid "Used to order the States" +msgstr "" diff --git a/product_state/i18n/pt.po b/product_state/i18n/pt.po new file mode 100644 index 00000000000..0216c9e591c --- /dev/null +++ b/product_state/i18n/pt.po @@ -0,0 +1,203 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_state +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2020-03-23 14:13+0000\n" +"Last-Translator: Pedro Castro Silva \n" +"Language-Team: none\n" +"Language: pt\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 3.10\n" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__active +msgid "Active" +msgstr "" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Code" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid +msgid "Created by" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_date +msgid "Created on" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__default +msgid "Default state" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__description +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Description" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__display_name +msgid "Display Name" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_end +msgid "End of Lifecycle" +msgstr "Fim de Ciclo de Vida" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__id +msgid "ID" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_draft +msgid "In Development" +msgstr "Em Desenvolvimento" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state____last_update +msgid "Last Modified on" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_date +msgid "Last Updated on" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__name +msgid "Name" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_sellable +msgid "Normal" +msgstr "Normal" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__products_count +msgid "Number of products" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_obsolete +msgid "Obsolete" +msgstr "Obsoleto" + +#. module: product_state +#: model:ir.model,name:product_state.model_product_template +msgid "Product" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_single_product_state +#: model:ir.model,name:product_state.model_product_state +#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view +#, fuzzy +msgid "Product State" +msgstr "Modelo de Produto" + +#. module: product_state +#: model:ir.model.constraint,message:product_state.constraint_product_state_code_unique +msgid "Product State Code must be unique." +msgstr "" + +#. module: product_state +#: model:ir.ui.menu,name:product_state.menu_product_state +#, fuzzy +msgid "Product States" +msgstr "Modelo de Produto" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__state +#: model:ir.model.fields,field_description:product_state.field_product_template__state +#, fuzzy +msgid "Product Status" +msgstr "Modelo de Produto" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban +msgid "Products" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_product__product_state_id +#: model:ir.model.fields,help:product_state.field_product_template__product_state_id +msgid "Select a state for this product" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__sequence +msgid "Sequence" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id +#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id +#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state +#, fuzzy +msgid "State" +msgstr "Estado" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__code +msgid "State Code" +msgstr "" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "State Name" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_state_products +#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids +#, fuzzy +msgid "State Products" +msgstr "Estado" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_template.py:0 +#, python-format +msgid "The product state code %s could not be found." +msgstr "" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_state.py:0 +#, python-format +msgid "There should be only one default state" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_state__sequence +msgid "Used to order the States" +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Modelo de Produto" + +#, fuzzy +#~ msgid "product.state" +#~ msgstr "Modelo de Produto" diff --git a/product_state/i18n/sl.po b/product_state/i18n/sl.po new file mode 100644 index 00000000000..17a113f4db6 --- /dev/null +++ b/product_state/i18n/sl.po @@ -0,0 +1,204 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_state +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-27 03:49+0000\n" +"PO-Revision-Date: 2018-01-27 03:49+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__active +msgid "Active" +msgstr "" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Code" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_uid +msgid "Created by" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__create_date +msgid "Created on" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__default +msgid "Default state" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__description +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "Description" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__display_name +msgid "Display Name" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_end +msgid "End of Lifecycle" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__id +msgid "ID" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_draft +msgid "In Development" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state____last_update +msgid "Last Modified on" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__write_date +msgid "Last Updated on" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__name +msgid "Name" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_sellable +msgid "Normal" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__products_count +msgid "Number of products" +msgstr "" + +#. module: product_state +#: model:product.state,name:product_state.product_state_obsolete +msgid "Obsolete" +msgstr "" + +#. module: product_state +#: model:ir.model,name:product_state.model_product_template +msgid "Product" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_single_product_state +#: model:ir.model,name:product_state.model_product_state +#: model_terms:ir.ui.view,arch_db:product_state.product_state_search_form_view +#, fuzzy +msgid "Product State" +msgstr "Predloga proizvoda" + +#. module: product_state +#: model:ir.model.constraint,message:product_state.constraint_product_state_code_unique +msgid "Product State Code must be unique." +msgstr "" + +#. module: product_state +#: model:ir.ui.menu,name:product_state.menu_product_state +#, fuzzy +msgid "Product States" +msgstr "Predloga proizvoda" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__state +#: model:ir.model.fields,field_description:product_state.field_product_template__state +#, fuzzy +msgid "Product Status" +msgstr "Predloga proizvoda" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_kanban +msgid "Products" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_product__product_state_id +#: model:ir.model.fields,help:product_state.field_product_template__product_state_id +msgid "Select a state for this product" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__sequence +msgid "Sequence" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_product_state +#: model:ir.model.fields,field_description:product_state.field_product_product__product_state_id +#: model:ir.model.fields,field_description:product_state.field_product_template__product_state_id +#: model_terms:ir.ui.view,arch_db:product_state.view_product_template_search_state +msgid "State" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,field_description:product_state.field_product_state__code +msgid "State Code" +msgstr "" + +#. module: product_state +#: model_terms:ir.ui.view,arch_db:product_state.view_product_state_form +msgid "State Name" +msgstr "" + +#. module: product_state +#: model:ir.actions.act_window,name:product_state.action_open_state_products +#: model:ir.model.fields,field_description:product_state.field_product_state__product_ids +msgid "State Products" +msgstr "" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_template.py:0 +#, python-format +msgid "The product state code %s could not be found." +msgstr "" + +#. module: product_state +#. odoo-python +#: code:addons/product_state/models/product_state.py:0 +#, python-format +msgid "There should be only one default state" +msgstr "" + +#. module: product_state +#: model:ir.model.fields,help:product_state.field_product_state__sequence +msgid "Used to order the States" +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Predloga proizvoda" + +#, fuzzy +#~ msgid "product.state" +#~ msgstr "Predloga proizvoda" diff --git a/product_state/models/__init__.py b/product_state/models/__init__.py new file mode 100644 index 00000000000..294a305ebb3 --- /dev/null +++ b/product_state/models/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2017 ACSONE SA/NV () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +from . import product_state +from . import product_template diff --git a/product_state/models/product_state.py b/product_state/models/product_state.py new file mode 100644 index 00000000000..c4d254a8389 --- /dev/null +++ b/product_state/models/product_state.py @@ -0,0 +1,49 @@ +# Copyright 2017 ACSONE SA/NV () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from odoo import api, fields, models +from odoo.exceptions import ValidationError + + +class ProductState(models.Model): + _name = "product.state" + _description = "Product State" + _order = "sequence, id" + + name = fields.Char(comodel_name="State Name", required=True, translate=True) + code = fields.Char(string="State Code", required=True) + sequence = fields.Integer(help="Used to order the States", default=25) + active = fields.Boolean(default=True) + description = fields.Text(translate=True) + product_ids = fields.One2many( + comodel_name="product.template", + inverse_name="product_state_id", + string="State Products", + ) + products_count = fields.Integer( + string="Number of products", + compute="_compute_products_count", + ) + default = fields.Boolean("Default state") + _sql_constraints = [ + ("code_unique", "UNIQUE(code)", "Product State Code must be unique.") + ] + + @api.depends("product_ids") + def _compute_products_count(self): + data = self.env["product.template"].read_group( + [("product_state_id", "in", self.ids)], + ["product_state_id"], + ["product_state_id"], + ) + mapped_data = { + record["product_state_id"][0]: record["product_state_id_count"] + for record in data + } + for state in self: + state.products_count = mapped_data.get(state.id, 0) + + @api.constrains("default") + def _check_default(self): + if self.search_count([("default", "=", True)]) > 1: + raise ValidationError(self.env._("There should be only one default state")) diff --git a/product_state/models/product_template.py b/product_state/models/product_template.py new file mode 100644 index 00000000000..18cacfc9a12 --- /dev/null +++ b/product_state/models/product_template.py @@ -0,0 +1,64 @@ +# Copyright 2017-2021 ACSONE SA/NV () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from odoo import api, fields, models +from odoo.exceptions import UserError + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + state = fields.Char( + string="Product Status", + index=True, + compute="_compute_product_state", + inverse="_inverse_product_state", + readonly=True, + store=True, + ) + product_state_id = fields.Many2one( + comodel_name="product.state", + string="State", + help="Select a state for this product", + group_expand="_read_group_state_id", + inverse="_inverse_product_state_id", + default=lambda self: self._get_default_product_state().id, + index=True, + tracking=10, + copy=False, + ) + + def _inverse_product_state_id(self): + """ + Allow to ease triggering other stuff when product state changes + without a write() + """ + + @api.model + def _get_default_product_state(self): + return self.env["product.state"].search([("default", "=", True)], limit=1) + + @api.depends("product_state_id") + def _compute_product_state(self): + for product_tmpl in self: + product_tmpl.state = product_tmpl.product_state_id.code + + def _inverse_product_state(self): + for product_tmpl in self: + self._set_product_state_id(product_tmpl) + + # This method can be called by variant so the record is either + # product.template or product.product + @api.model + def _set_product_state_id(self, record): + """The record param is for similar state field at product.product model.""" + ProductState = record.env["product.state"] + product_state = ProductState.search([("code", "=", record.state)], limit=1) + if record.state and not product_state: + msg = self.env._("The product state code %s could not be found.") + raise UserError(msg % record.state) + record.product_state_id = product_state.id + + @api.model + def _read_group_state_id(self, states, domain): + return states.search([]) diff --git a/product_state/pyproject.toml b/product_state/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/product_state/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/product_state/readme/CONTRIBUTORS.md b/product_state/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..389f2d52e19 --- /dev/null +++ b/product_state/readme/CONTRIBUTORS.md @@ -0,0 +1,11 @@ +- Cedric Pigeon \<\> +- Alexandre Saunier \<\> +- Nikul Chaudhary \<\> +- Eduardo Magdalena \<\> (C2i Change 2 improve + ) +- Andrii Skrypka \<\> +- Denis Roussel \<\> +- Riccardo Fresco \<\> +- Nils Coenen \<\> +- [Trobz](https://trobz.com): + - Tuan Nguyen \<\> diff --git a/product_state/readme/CREDITS.md b/product_state/readme/CREDITS.md new file mode 100644 index 00000000000..a2a771b1ca6 --- /dev/null +++ b/product_state/readme/CREDITS.md @@ -0,0 +1 @@ +The migration of this module from 17.0 to 18.0 was financially supported by Camptocamp. \ No newline at end of file diff --git a/product_state/readme/DESCRIPTION.md b/product_state/readme/DESCRIPTION.md new file mode 100644 index 00000000000..7ff986a25cd --- /dev/null +++ b/product_state/readme/DESCRIPTION.md @@ -0,0 +1,7 @@ +This module introduces the state field on product template and allows +simple product life cycle: + +- draft: In Development +- sellable: Normal +- end: End of Lifecycle +- obsolete: Obsolete diff --git a/product_state/readme/USAGE.md b/product_state/readme/USAGE.md new file mode 100644 index 00000000000..3d736a470e4 --- /dev/null +++ b/product_state/readme/USAGE.md @@ -0,0 +1,5 @@ +To add a product to a state: + +1. Go to the product itself and edit. +2. You can select the desired status in the list of buttons above the + form. diff --git a/product_state/security/ir.model.access.csv b/product_state/security/ir.model.access.csv new file mode 100644 index 00000000000..ff5abd8cee1 --- /dev/null +++ b/product_state/security/ir.model.access.csv @@ -0,0 +1,3 @@ +"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" +"access_product_state_manager","product.state","model_product_state","group_product_state_manager",1,1,1,1 +"access_product_state_public","product.state.public","model_product_state","base.group_public",1,0,0,0 diff --git a/product_state/security/product_state_security.xml b/product_state/security/product_state_security.xml new file mode 100644 index 00000000000..840b1119b9d --- /dev/null +++ b/product_state/security/product_state_security.xml @@ -0,0 +1,6 @@ + + + + Product State Manager + + diff --git a/product_state/static/description/icon.png b/product_state/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/product_state/static/description/icon.png differ diff --git a/product_state/static/description/index.html b/product_state/static/description/index.html new file mode 100644 index 00000000000..ea24d79e4a3 --- /dev/null +++ b/product_state/static/description/index.html @@ -0,0 +1,460 @@ + + + + + +Product State + + + +
+

Product State

+ + +

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

+

This module introduces the state field on product template and allows +simple product life cycle:

+
    +
  • draft: In Development
  • +
  • sellable: Normal
  • +
  • end: End of Lifecycle
  • +
  • obsolete: Obsolete
  • +
+

Table of contents

+ +
+

Usage

+

To add a product to a state:

+
    +
  1. Go to the product itself and edit.
  2. +
  3. You can select the desired status in the list of buttons above the +form.
  4. +
+
+
+

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

+
    +
  • ACSONE SA/NV
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

The migration of this module from 17.0 to 18.0 was financially supported +by Camptocamp.

+
+
+

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.

+

Current maintainer:

+

emagdalenaC2i

+

This module is part of the OCA/product-attribute project on GitHub.

+

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

+
+
+
+ + diff --git a/product_state/tests/__init__.py b/product_state/tests/__init__.py new file mode 100644 index 00000000000..cf5f2559a8f --- /dev/null +++ b/product_state/tests/__init__.py @@ -0,0 +1,2 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +from . import test_product_state diff --git a/product_state/tests/test_product_state.py b/product_state/tests/test_product_state.py new file mode 100644 index 00000000000..30d02bc2a50 --- /dev/null +++ b/product_state/tests/test_product_state.py @@ -0,0 +1,102 @@ +# Copyright 2021 ACSONE SA/NV () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +import logging + +from odoo.exceptions import UserError, ValidationError +from odoo.tests.common import TransactionCase + +_logger = logging.getLogger(__name__) + + +class TestProductState(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.ProductState = cls.env["product.state"] + cls.state = cls.ProductState.create({"name": "State Name", "code": "Code"}) + cls.product_obj = cls.env["product.template"] + cls.product_1 = cls.env.ref("product.product_product_4_product_template") + + @classmethod + def _create_product(cls, state=None): + vals = { + "name": "Product Test for State", + } + if state: + vals.update({"product_state_id": state.id}) + cls.product = cls.product_obj.create(vals) + + def test_01_product_state(self): + """ + Check if existing product has the default value (see init_hook) + Check if new state has no products + Create a product, check if it has the default state + Create a product with state + Check if new state has 1 product + """ + self.assertTrue(self.product_1.product_state_id) + self.assertFalse( + self.state.products_count, + ) + self._create_product() + self.assertEqual( + self.env.ref("product_state.product_state_sellable"), + self.product.product_state_id, + ) + self._create_product(self.state) + self.assertEqual( + self.state, + self.product.product_state_id, + ) + self.assertEqual( + 1, + self.state.products_count, + ) + + def test_02_set_product_state(self): + """ + Create product, it has default state + Then, update the state + It should have the existing one (Code) + """ + self._create_product() + self.assertEqual( + self.env.ref("product_state.product_state_sellable"), + self.product.product_state_id, + ) + self.product.state = "Code" + self.assertEqual( + self.state, + self.product.product_state_id, + ) + + def test_03_set_constrains_product_state(self): + """ + Create another default state, + It should have the existing only one default state at time + """ + with self.assertRaises(ValidationError) as cm: + self.env["product.state"].create( + {"name": "Default State 2", "code": "df2", "default": True} + ) + wn_expect = cm.exception.args[0] + self.assertEqual("There should be only one default state", wn_expect) + + def test_04_invalid_state(self): + self._create_product() + with self.assertRaises(UserError): + self.product.state = "new_code" + + def test_05_copy(self): + """ + Create product with non-default state. + Copy product. + The copy should have the default state. + """ + self._create_product() + self.product.state = "Code" + copied_product = self.product.copy() + self.assertEqual( + self.env.ref("product_state.product_state_sellable"), + copied_product.product_state_id, + ) diff --git a/product_state/views/product_state_views.xml b/product_state/views/product_state_views.xml new file mode 100644 index 00000000000..20523acebb0 --- /dev/null +++ b/product_state/views/product_state_views.xml @@ -0,0 +1,102 @@ + + + product.state.search.form + product.state + + + + + + + + Product State + ir.actions.act_window + product.state + kanban,form,list + {} + [('id', '=', product_state_id)] + current + + + product.state.form + product.state + +
+ +
+ +
+
+
+ + + + + + + + +
+
+
+
+ + product.state.tree + product.state + + + + + + + + + + product.state.kanban + product.state + + + + + + + +
+

+ +

+ +
+
+
+
+
+
+ + State + product.state + kanban,form,list + +
diff --git a/product_state/views/product_template_views.xml b/product_state/views/product_template_views.xml new file mode 100644 index 00000000000..c0d3b5f9061 --- /dev/null +++ b/product_state/views/product_template_views.xml @@ -0,0 +1,52 @@ + + + State Products + ir.actions.act_window + product.template + kanban,form,list + {} + [('product_state_id', '=', id)] + + + product.template.search.state + product.template + + + + + + + + + + + product.template.common.form + product.template + + +
+ +
+
+
+ + product.template.tree (product_state_id) + product.template + + 50 + + + + + + +