diff --git a/purchase_order_line_description/README.rst b/purchase_order_line_description/README.rst new file mode 100644 index 00000000000..03e15de6609 --- /dev/null +++ b/purchase_order_line_description/README.rst @@ -0,0 +1,91 @@ +=============================== +Purchase order line description +=============================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:ce774efc4cc79ec63d7c6821afd2fc70e5ecf6e1141e6e6638c2b6ae0e41c958 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fpurchase--workflow-lightgray.png?logo=github + :target: https://github.com/OCA/purchase-workflow/tree/16.0/purchase_order_line_description + :alt: OCA/purchase-workflow +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_order_line_description + :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/purchase-workflow&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows to use only the product purchase description on the purchase +order lines. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +#. Add or modify a purchase description to any of your products. +#. Create a purchase order and add a purchase line with this product and check + out that now purchase order line description only contains the description + you are created. + +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 +~~~~~~~ + +* Agile Business Group + +Contributors +~~~~~~~~~~~~ + +* Alex Comba +* `Tecnativa `_: + + * Vicent Cubells + +* Nikul Chaudhary +* David Vidal `Moduon ` + +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/purchase-workflow `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/purchase_order_line_description/__init__.py b/purchase_order_line_description/__init__.py new file mode 100644 index 00000000000..e87e85c4c49 --- /dev/null +++ b/purchase_order_line_description/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from . import models diff --git a/purchase_order_line_description/__manifest__.py b/purchase_order_line_description/__manifest__.py new file mode 100644 index 00000000000..afb674e38d6 --- /dev/null +++ b/purchase_order_line_description/__manifest__.py @@ -0,0 +1,12 @@ +# Copyright 2015 Alex Comba - Agile Business Group +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html +{ + "name": "Purchase order line description", + "version": "16.0.1.0.0", + "category": "Purchase Management", + "author": "Agile Business Group, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/purchase-workflow", + "license": "AGPL-3", + "depends": ["purchase"], + "data": [], +} diff --git a/purchase_order_line_description/i18n/de.po b/purchase_order_line_description/i18n/de.po new file mode 100644 index 00000000000..9a0758f6c79 --- /dev/null +++ b/purchase_order_line_description/i18n/de.po @@ -0,0 +1,57 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_order_line_description +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-16 12:06+0000\n" +"PO-Revision-Date: 2016-11-16 12:06+0000\n" +"Last-Translator: OCA Transbot , 2016\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" + +#. module: purchase_order_line_description +#: model:ir.model.fields,help:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +#: model_terms:ir.ui.view,arch_db:purchase_order_line_description.view_purchase_configuration +msgid "" +"Allows you to use only product purchase description on the purchase order " +"lines." +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model.fields,field_description:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +msgid "Order lines description" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Bestellposition" + +#. module: purchase_order_line_description +#: model:res.groups,name:purchase_order_line_description.group_use_product_description_per_po_line +msgid "Use only product purchase description on order lines" +msgstr "" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product name on the purchase order lines" +msgstr "" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product purchase description on the purchase order lines" +msgstr "" diff --git a/purchase_order_line_description/i18n/es.po b/purchase_order_line_description/i18n/es.po new file mode 100644 index 00000000000..930a076642a --- /dev/null +++ b/purchase_order_line_description/i18n/es.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_order_line_description +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-12-13 15:23+0000\n" +"PO-Revision-Date: 2018-12-13 16:23+0100\n" +"Last-Translator: cubells \n" +"Language-Team: \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 2.0.6\n" + +#. module: purchase_order_line_description +#: model:ir.model.fields,help:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +#: model_terms:ir.ui.view,arch_db:purchase_order_line_description.view_purchase_configuration +msgid "" +"Allows you to use only product purchase description on the purchase order " +"lines." +msgstr "" +"Le permite usar solamente la descripción de compra en las líneas de los " +"pedidos de compra." + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_res_config_settings +#, fuzzy +msgid "Config Settings" +msgstr "res.config.settings" + +#. module: purchase_order_line_description +#: model:ir.model.fields,field_description:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +msgid "Order lines description" +msgstr "Descripción de las líneas del pedido" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Línea orden de compra" + +#. module: purchase_order_line_description +#: model:res.groups,name:purchase_order_line_description.group_use_product_description_per_po_line +msgid "Use only product purchase description on order lines" +msgstr "" +"Usar solamente la descripción de compra del producto en las líneas de pedido" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product name on the purchase order lines" +msgstr "Usar el nombre de producto en las líneas del pedido de compra" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product purchase description on the purchase order lines" +msgstr "" +"Usar la descripción de compra del producto en las líneas del pedido de compra" diff --git a/purchase_order_line_description/i18n/es_MX.po b/purchase_order_line_description/i18n/es_MX.po new file mode 100644 index 00000000000..8bf3c864b9a --- /dev/null +++ b/purchase_order_line_description/i18n/es_MX.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_order_line_description +# +# Translators: +# Juan González , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-09 09:31+0000\n" +"PO-Revision-Date: 2016-12-09 09:31+0000\n" +"Last-Translator: Juan González , 2016\n" +"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/" +"es_MX/)\n" +"Language: es_MX\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: purchase_order_line_description +#: model:ir.model.fields,help:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +#: model_terms:ir.ui.view,arch_db:purchase_order_line_description.view_purchase_configuration +msgid "" +"Allows you to use only product purchase description on the purchase order " +"lines." +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model.fields,field_description:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +msgid "Order lines description" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Línea de orden de compra" + +#. module: purchase_order_line_description +#: model:res.groups,name:purchase_order_line_description.group_use_product_description_per_po_line +msgid "Use only product purchase description on order lines" +msgstr "" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product name on the purchase order lines" +msgstr "" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product purchase description on the purchase order lines" +msgstr "" diff --git a/purchase_order_line_description/i18n/fi.po b/purchase_order_line_description/i18n/fi.po new file mode 100644 index 00000000000..a6332c04dbf --- /dev/null +++ b/purchase_order_line_description/i18n/fi.po @@ -0,0 +1,57 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_order_line_description +# +# Translators: +# Timo Talvitie , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-02-25 05:43+0000\n" +"PO-Revision-Date: 2017-02-25 05:43+0000\n" +"Last-Translator: Timo Talvitie , 2017\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"Language: fi\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: purchase_order_line_description +#: model:ir.model.fields,help:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +#: model_terms:ir.ui.view,arch_db:purchase_order_line_description.view_purchase_configuration +msgid "" +"Allows you to use only product purchase description on the purchase order " +"lines." +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model.fields,field_description:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +msgid "Order lines description" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Ostotilausrivi" + +#. module: purchase_order_line_description +#: model:res.groups,name:purchase_order_line_description.group_use_product_description_per_po_line +msgid "Use only product purchase description on order lines" +msgstr "" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product name on the purchase order lines" +msgstr "" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product purchase description on the purchase order lines" +msgstr "" diff --git a/purchase_order_line_description/i18n/fr.po b/purchase_order_line_description/i18n/fr.po new file mode 100644 index 00000000000..f953c14e7d0 --- /dev/null +++ b/purchase_order_line_description/i18n/fr.po @@ -0,0 +1,57 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_order_line_description +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-16 12:06+0000\n" +"PO-Revision-Date: 2016-11-16 12:06+0000\n" +"Last-Translator: OCA Transbot , 2016\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" + +#. module: purchase_order_line_description +#: model:ir.model.fields,help:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +#: model_terms:ir.ui.view,arch_db:purchase_order_line_description.view_purchase_configuration +msgid "" +"Allows you to use only product purchase description on the purchase order " +"lines." +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model.fields,field_description:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +msgid "Order lines description" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Ligne de commande d'achat" + +#. module: purchase_order_line_description +#: model:res.groups,name:purchase_order_line_description.group_use_product_description_per_po_line +msgid "Use only product purchase description on order lines" +msgstr "" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product name on the purchase order lines" +msgstr "" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product purchase description on the purchase order lines" +msgstr "" diff --git a/purchase_order_line_description/i18n/it.po b/purchase_order_line_description/i18n/it.po new file mode 100644 index 00000000000..3deea7fc788 --- /dev/null +++ b/purchase_order_line_description/i18n/it.po @@ -0,0 +1,65 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_order_line_description +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-01-27 15:38+0000\n" +"PO-Revision-Date: 2023-02-14 16:31+0000\n" +"Last-Translator: Francesco Foresti \n" +"Language-Team: \n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.14.1\n" + +#. module: purchase_order_line_description +#: model:ir.model.fields,help:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +#: model_terms:ir.ui.view,arch_db:purchase_order_line_description.view_purchase_configuration +msgid "" +"Allows you to use only product purchase description on the purchase order " +"lines." +msgstr "" +"Permette di usare solo la descrizione per fornitori sulle righe dell'ordine " +"di acquisto." + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model.fields,field_description:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +msgid "Order lines description" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Riga ordine di acquisto" + +#. module: purchase_order_line_description +#: model:res.groups,name:purchase_order_line_description.group_use_product_description_per_po_line +msgid "Use only product purchase description on order lines" +msgstr "" +"Usa solo la descrizione per fornitori sulle righe dell'ordine di acquisto" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +#, fuzzy +msgid "Use the product name on the purchase order lines" +msgstr "" +"Permette di usare solo la descrizione per fornitori sulle righe dell'ordine " +"di acquisto" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +#, fuzzy +msgid "Use the product purchase description on the purchase order lines" +msgstr "" +"Permette di usare solo la descrizione per fornitori sulle righe dell'ordine " +"di acquisto" diff --git a/purchase_order_line_description/i18n/nl_NL.po b/purchase_order_line_description/i18n/nl_NL.po new file mode 100644 index 00000000000..bce53236540 --- /dev/null +++ b/purchase_order_line_description/i18n/nl_NL.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_order_line_description +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-19 07:43+0000\n" +"PO-Revision-Date: 2017-08-19 07:43+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: purchase_order_line_description +#: model:ir.model.fields,help:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +#: model_terms:ir.ui.view,arch_db:purchase_order_line_description.view_purchase_configuration +msgid "" +"Allows you to use only product purchase description on the purchase order " +"lines." +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model.fields,field_description:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +msgid "Order lines description" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Inkooporderregel" + +#. module: purchase_order_line_description +#: model:res.groups,name:purchase_order_line_description.group_use_product_description_per_po_line +msgid "Use only product purchase description on order lines" +msgstr "" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product name on the purchase order lines" +msgstr "" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product purchase description on the purchase order lines" +msgstr "" diff --git a/purchase_order_line_description/i18n/pt_BR.po b/purchase_order_line_description/i18n/pt_BR.po new file mode 100644 index 00000000000..82341511a38 --- /dev/null +++ b/purchase_order_line_description/i18n/pt_BR.po @@ -0,0 +1,60 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_order_line_description +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-16 12:06+0000\n" +"PO-Revision-Date: 2022-10-03 18:36+0000\n" +"Last-Translator: Douglas Custódio \n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/pt_BR/)\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.3.2\n" + +#. module: purchase_order_line_description +#: model:ir.model.fields,help:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +#: model_terms:ir.ui.view,arch_db:purchase_order_line_description.view_purchase_configuration +msgid "" +"Allows you to use only product purchase description on the purchase order " +"lines." +msgstr "" +"Permite usar apenas a descrição da compra do produto nas linhas do pedido." + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "Ajustes de Configuração" + +#. module: purchase_order_line_description +#: model:ir.model.fields,field_description:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +msgid "Order lines description" +msgstr "Descrição das linhas de pedidos" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Linha do Pedido de Compra" + +#. module: purchase_order_line_description +#: model:res.groups,name:purchase_order_line_description.group_use_product_description_per_po_line +msgid "Use only product purchase description on order lines" +msgstr "Use apenas a descrição da compra do produto nas linhas de pedido" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product name on the purchase order lines" +msgstr "Use o nome do produto nas linhas do pedido" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product purchase description on the purchase order lines" +msgstr "Use a descrição da compra do produto nas linhas do pedido" diff --git a/purchase_order_line_description/i18n/pt_PT.po b/purchase_order_line_description/i18n/pt_PT.po new file mode 100644 index 00000000000..69b9edda200 --- /dev/null +++ b/purchase_order_line_description/i18n/pt_PT.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_order_line_description +# +# Translators: +# Pedro Castro Silva , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-07 05:29+0000\n" +"PO-Revision-Date: 2017-01-07 05:29+0000\n" +"Last-Translator: Pedro Castro Silva , 2017\n" +"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/" +"teams/23907/pt_PT/)\n" +"Language: pt_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" + +#. module: purchase_order_line_description +#: model:ir.model.fields,help:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +#: model_terms:ir.ui.view,arch_db:purchase_order_line_description.view_purchase_configuration +msgid "" +"Allows you to use only product purchase description on the purchase order " +"lines." +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model.fields,field_description:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +msgid "Order lines description" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Linha de Encomenda de Compra" + +#. module: purchase_order_line_description +#: model:res.groups,name:purchase_order_line_description.group_use_product_description_per_po_line +msgid "Use only product purchase description on order lines" +msgstr "" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product name on the purchase order lines" +msgstr "" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product purchase description on the purchase order lines" +msgstr "" diff --git a/purchase_order_line_description/i18n/purchase_order_line_description.pot b/purchase_order_line_description/i18n/purchase_order_line_description.pot new file mode 100644 index 00000000000..0299324abc7 --- /dev/null +++ b/purchase_order_line_description/i18n/purchase_order_line_description.pot @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_order_line_description +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.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: purchase_order_line_description +#: model:ir.model.fields,help:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +#: model_terms:ir.ui.view,arch_db:purchase_order_line_description.view_purchase_configuration +msgid "Allows you to use only product purchase description on the purchase order lines." +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model.fields,field_description:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +msgid "Order lines description" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "" + +#. module: purchase_order_line_description +#: model:res.groups,name:purchase_order_line_description.group_use_product_description_per_po_line +msgid "Use only product purchase description on order lines" +msgstr "" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product name on the purchase order lines" +msgstr "" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product purchase description on the purchase order lines" +msgstr "" + diff --git a/purchase_order_line_description/i18n/ro.po b/purchase_order_line_description/i18n/ro.po new file mode 100644 index 00000000000..6fc04250620 --- /dev/null +++ b/purchase_order_line_description/i18n/ro.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_order_line_description +# +# Translators: +# Dorin Hongu , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-16 12:06+0000\n" +"PO-Revision-Date: 2016-11-16 12:06+0000\n" +"Last-Translator: Dorin Hongu , 2016\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" +"2:1));\n" + +#. module: purchase_order_line_description +#: model:ir.model.fields,help:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +#: model_terms:ir.ui.view,arch_db:purchase_order_line_description.view_purchase_configuration +msgid "" +"Allows you to use only product purchase description on the purchase order " +"lines." +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model.fields,field_description:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +msgid "Order lines description" +msgstr "" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Linie comandă achiziție" + +#. module: purchase_order_line_description +#: model:res.groups,name:purchase_order_line_description.group_use_product_description_per_po_line +msgid "Use only product purchase description on order lines" +msgstr "" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product name on the purchase order lines" +msgstr "" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product purchase description on the purchase order lines" +msgstr "" diff --git a/purchase_order_line_description/i18n/sl.po b/purchase_order_line_description/i18n/sl.po new file mode 100644 index 00000000000..b8f06b7fd66 --- /dev/null +++ b/purchase_order_line_description/i18n/sl.po @@ -0,0 +1,62 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * purchase_order_line_description +# +# Translators: +# OCA Transbot , 2016 +# Matjaž Mozetič , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-16 12:06+0000\n" +"PO-Revision-Date: 2021-02-24 11:45+0000\n" +"Last-Translator: Matjaz Mozetic \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" +"X-Generator: Weblate 4.3.2\n" + +#. module: purchase_order_line_description +#: model:ir.model.fields,help:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +#: model_terms:ir.ui.view,arch_db:purchase_order_line_description.view_purchase_configuration +msgid "" +"Allows you to use only product purchase description on the purchase order " +"lines." +msgstr "" +"Omogoči, da se v postavkah nabavnega naloga uporabi le nabavni opis " +"proizvoda." + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "Nastavitve" + +#. module: purchase_order_line_description +#: model:ir.model.fields,field_description:purchase_order_line_description.field_res_config_settings__group_use_product_description_per_po_line +msgid "Order lines description" +msgstr "Opis postavk naloga" + +#. module: purchase_order_line_description +#: model:ir.model,name:purchase_order_line_description.model_purchase_order_line +msgid "Purchase Order Line" +msgstr "Postavka nabavnega naloga" + +#. module: purchase_order_line_description +#: model:res.groups,name:purchase_order_line_description.group_use_product_description_per_po_line +msgid "Use only product purchase description on order lines" +msgstr "V postavkah naloga uporabljaj le nabavni opis proizvoda" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product name on the purchase order lines" +msgstr "Uporabi naziv proizvoda v postavkah nabavnega naloga" + +#. module: purchase_order_line_description +#: selection:res.config.settings,group_use_product_description_per_po_line:0 +msgid "Use the product purchase description on the purchase order lines" +msgstr "Uporabi nabavni opis proizvoda v postavkah nabavnega naloga" diff --git a/purchase_order_line_description/models/__init__.py b/purchase_order_line_description/models/__init__.py new file mode 100644 index 00000000000..4fecb4bd3b1 --- /dev/null +++ b/purchase_order_line_description/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from . import purchase_order_line diff --git a/purchase_order_line_description/models/purchase_order_line.py b/purchase_order_line_description/models/purchase_order_line.py new file mode 100644 index 00000000000..f2165188e24 --- /dev/null +++ b/purchase_order_line_description/models/purchase_order_line.py @@ -0,0 +1,22 @@ +# Copyright 2015 Alex Comba - Agile Business Group +# Copyright 2017 Tecnativa - vicent.cubells@tecnativa.com +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from odoo import api, models +from odoo.tools.misc import get_lang + + +class PurchaseOrderLine(models.Model): + _inherit = "purchase.order.line" + + @api.onchange("product_id") + def onchange_product_id(self): + res = super().onchange_product_id() + if not self.product_id: + return res + translated_product = self.product_id.with_context( + lang=self.partner_id.lang or get_lang(self.env).code + ) + if translated_product.description_purchase: + self.name = translated_product.description_purchase + return res diff --git a/purchase_order_line_description/readme/CONTRIBUTORS.rst b/purchase_order_line_description/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..9aea7a68766 --- /dev/null +++ b/purchase_order_line_description/readme/CONTRIBUTORS.rst @@ -0,0 +1,7 @@ +* Alex Comba +* `Tecnativa `_: + + * Vicent Cubells + +* Nikul Chaudhary +* David Vidal `Moduon ` diff --git a/purchase_order_line_description/readme/DESCRIPTION.rst b/purchase_order_line_description/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..7e62f8a36de --- /dev/null +++ b/purchase_order_line_description/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module allows to use only the product purchase description on the purchase +order lines. diff --git a/purchase_order_line_description/readme/USAGE.rst b/purchase_order_line_description/readme/USAGE.rst new file mode 100644 index 00000000000..cd7c542ce6e --- /dev/null +++ b/purchase_order_line_description/readme/USAGE.rst @@ -0,0 +1,4 @@ +#. Add or modify a purchase description to any of your products. +#. Create a purchase order and add a purchase line with this product and check + out that now purchase order line description only contains the description + you are created. diff --git a/purchase_order_line_description/static/description/icon.png b/purchase_order_line_description/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/purchase_order_line_description/static/description/icon.png differ diff --git a/purchase_order_line_description/static/description/index.html b/purchase_order_line_description/static/description/index.html new file mode 100644 index 00000000000..dc2a5244110 --- /dev/null +++ b/purchase_order_line_description/static/description/index.html @@ -0,0 +1,440 @@ + + + + + +Purchase order line description + + + +
+

Purchase order line description

+ + +

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

+

This module allows to use only the product purchase description on the purchase +order lines.

+

Table of contents

+ +
+

Usage

+
    +
  1. Add or modify a purchase description to any of your products.
  2. +
  3. Create a purchase order and add a purchase line with this product and check +out that now purchase order line description only contains the description +you are created.
  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

+
    +
  • Agile Business Group
  • +
+
+
+

Contributors

+ +
+
+

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

+

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

+
+
+
+ + diff --git a/purchase_order_line_description/tests/__init__.py b/purchase_order_line_description/tests/__init__.py new file mode 100644 index 00000000000..fa371de283c --- /dev/null +++ b/purchase_order_line_description/tests/__init__.py @@ -0,0 +1 @@ +from . import test_purchase_order_line_description diff --git a/purchase_order_line_description/tests/test_purchase_order_line_description.py b/purchase_order_line_description/tests/test_purchase_order_line_description.py new file mode 100644 index 00000000000..933fccf8c4b --- /dev/null +++ b/purchase_order_line_description/tests/test_purchase_order_line_description.py @@ -0,0 +1,71 @@ +# Copyright 2015 Alex Comba - Agile Business Group +# Copyright 2017 Tecnativa - vicent.cubells@tecnativa.com +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields +from odoo.tests import common + + +class TestPurchaseOrderLineDescription(common.SavepointCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + partner = cls.env["res.partner"].create( + { + "name": "Test partner", + } + ) + cls.product = cls.env["product.product"].create( + { + "name": "Product", + "standard_price": 10, + "description_purchase": "description for purchase", + } + ) + res_users_purchase_user = cls.env.ref("purchase.group_purchase_user") + cls.test_user = cls.env["res.users"].create( + { + "name": "test", + "login": "test", + "groups_id": [(6, 0, [res_users_purchase_user.id])], + } + ) + cls.order = cls.env["purchase.order"].create( + { + "partner_id": partner.id, + "order_line": [ + ( + 0, + 0, + { + "product_id": cls.product.id, + "name": cls.product.name, + "price_unit": 79.80, + "product_qty": 15.0, + "product_uom": cls.env.ref("uom.product_uom_unit").id, + "date_planned": fields.Date.today(), + }, + ) + ], + } + ) + + def test_onchange_product_id(self): + self.assertEqual(self.product.name, self.order.order_line[0].name) + # Test onchange product + self.order.order_line[0].with_user(self.test_user).onchange_product_id() + self.assertEqual( + self.product.description_purchase, self.order.order_line[0].name + ) + + def test_translated_description(self): + """PO description rendered in supplier lang.""" + self.env["res.lang"].load_lang("es_ES") + self.order.partner_id.lang = "es_ES" + self.product.with_context( + lang="es_ES" + ).description_purchase = "descripción para compras" + with common.Form(self.order.with_user(self.test_user)) as order: + with order.order_line.new() as line: + line.product_id = self.product + self.assertEqual(line.name, "descripción para compras") diff --git a/setup/purchase_order_line_description/odoo/addons/purchase_order_line_description b/setup/purchase_order_line_description/odoo/addons/purchase_order_line_description new file mode 120000 index 00000000000..f8b48510260 --- /dev/null +++ b/setup/purchase_order_line_description/odoo/addons/purchase_order_line_description @@ -0,0 +1 @@ +../../../../purchase_order_line_description \ No newline at end of file diff --git a/setup/purchase_order_line_description/setup.py b/setup/purchase_order_line_description/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/purchase_order_line_description/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)