diff --git a/sale_order_line_description/README.rst b/sale_order_line_description/README.rst new file mode 100644 index 00000000000..01579920f44 --- /dev/null +++ b/sale_order_line_description/README.rst @@ -0,0 +1,105 @@ +=========================== +Sale order line description +=========================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:7789baf205a94a4d7fc525ff5619ddd7e965e83cf41d7696a64033a1d23bfe78 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fsale--workflow-lightgray.png?logo=github + :target: https://github.com/OCA/sale-workflow/tree/16.0/sale_order_line_description + :alt: OCA/sale-workflow +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_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/sale-workflow&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module sets to use only product's sale description field on the sale order +lines, instead of "Ref+Name+Sale Description". + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +The user has to belong to group_use_product_description_per_so_line. +This is possible by selecting the related option in the following menu: + +* *Sales > Settings > Quotations & Orders > Product Sale Description* + +Usage +===== + +#. Go to **Sales > Settings > Quotations & Orders** and check "Product Sale + description* to use only product sale description on the sales order lines. +#. Go to **Setting > Users & Companies > Users** and check you have checked + the "Use only product purchase description on order lines" access right for + your user. +#. Add or modify a sale description to any of your products. +#. Create a sale order and add a sale order line with this product and check + out that now sale order line description only contains the sale description + you entered. + +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 +* Daniel Campos +* Simone Rubino +* `Tecnativa `_ : + + * Vicent Cubells + + * Rataapong Chokmasermkul + +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/sale-workflow `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sale_order_line_description/__init__.py b/sale_order_line_description/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /dev/null +++ b/sale_order_line_description/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/sale_order_line_description/__manifest__.py b/sale_order_line_description/__manifest__.py new file mode 100644 index 00000000000..e4b222dbfd5 --- /dev/null +++ b/sale_order_line_description/__manifest__.py @@ -0,0 +1,13 @@ +# Copyright 2013-15 Agile Business Group sagl () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + "name": "Sale order line description", + "version": "16.0.1.0.0", + "category": "Sales Management", + "author": "Agile Business Group, " "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/sale-workflow", + "license": "AGPL-3", + "depends": ["sale"], + "data": ["security/sale_security.xml", "views/res_config_settings_views.xml"], + "installable": True, +} diff --git a/sale_order_line_description/i18n/ca.po b/sale_order_line_description/i18n/ca.po new file mode 100644 index 00000000000..340f3db8262 --- /dev/null +++ b/sale_order_line_description/i18n/ca.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_description +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: sale-workflow (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-14 06:38+0000\n" +"PO-Revision-Date: 2015-09-03 07:09+0000\n" +"Last-Translator: <>\n" +"Language-Team: Catalan (http://www.transifex.com/oca/OCA-sale-workflow-8-0/" +"language/ca/)\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" + +#. module: sale_order_line_description +#: model:ir.model.fields,field_description:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "Allow using only the product sale description on the sales order lines" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Allows you to use only product sale description on the sales order line" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model.fields,help:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "" +"Allows you to use only product sale description on the sales order line." +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Product sale description" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línia de comanda de vendes" + +#. module: sale_order_line_description +#: model:res.groups,name:sale_order_line_description.group_use_product_description_per_so_line +msgid "Use only product sale description on order lines" +msgstr "" diff --git a/sale_order_line_description/i18n/de.po b/sale_order_line_description/i18n/de.po new file mode 100644 index 00000000000..8f6933dc115 --- /dev/null +++ b/sale_order_line_description/i18n/de.po @@ -0,0 +1,62 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_description +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-23 01:51+0000\n" +"PO-Revision-Date: 2021-07-09 15:48+0000\n" +"Last-Translator: Maria Sparenberg \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 4.3.2\n" + +#. module: sale_order_line_description +#: model:ir.model.fields,field_description:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "Allow using only the product sale description on the sales order lines" +msgstr "" +"Ausschließliche Verwendung der Verkaufsbeschreibung eines Produktes in " +"Auftragszeilen erlauben" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Allows you to use only product sale description on the sales order line" +msgstr "" +"Diese Einstellung erlaubt, dass nur die Verkaufsbeschreibung eines Produktes " +"in Auftragszeilen verwendet werden kann." + +#. module: sale_order_line_description +#: model:ir.model.fields,help:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "" +"Allows you to use only product sale description on the sales order line." +msgstr "" +"Diese Einstellung erlaubt, dass nur die Verkaufsbeschreibung eines Produktes " +"in Auftragszeilen verwendet werden kann." + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "Konfigurationseinstellungen" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Product sale description" +msgstr "Verkaufsbeschreibung des Produktes" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_sale_order_line +msgid "Sales Order Line" +msgstr "Auftragsposition" + +#. module: sale_order_line_description +#: model:res.groups,name:sale_order_line_description.group_use_product_description_per_so_line +msgid "Use only product sale description on order lines" +msgstr "Nur die Verkaufsbeschreibung des Produktes in Auftragszeilen verwenden" diff --git a/sale_order_line_description/i18n/es.po b/sale_order_line_description/i18n/es.po new file mode 100644 index 00000000000..268243fdbdc --- /dev/null +++ b/sale_order_line_description/i18n/es.po @@ -0,0 +1,63 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_description +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: sale-workflow (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-10-23 08:14+0000\n" +"PO-Revision-Date: 2023-07-24 21:09+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: Spanish (http://www.transifex.com/oca/OCA-sale-workflow-8-0/" +"language/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: sale_order_line_description +#: model:ir.model.fields,field_description:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "Allow using only the product sale description on the sales order lines" +msgstr "" +"Permitir usar solo la descripción de la venta del producto en las líneas de " +"la orden de venta" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Allows you to use only product sale description on the sales order line" +msgstr "" +"Le permite usar solo la descripción de la venta del producto en la línea de " +"la orden de venta" + +#. module: sale_order_line_description +#: model:ir.model.fields,help:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "" +"Allows you to use only product sale description on the sales order line." +msgstr "" +"Le permite usar solo la descripción de la venta del producto en la línea de " +"la orden de venta." + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "ajustes de configuración" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Product sale description" +msgstr "Descripción de la venta del producto" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línea de pedido de venta" + +#. module: sale_order_line_description +#: model:res.groups,name:sale_order_line_description.group_use_product_description_per_so_line +msgid "Use only product sale description on order lines" +msgstr "" +"Utilice solo la descripción de la venta del producto en las líneas de pedido" diff --git a/sale_order_line_description/i18n/es_VE.po b/sale_order_line_description/i18n/es_VE.po new file mode 100644 index 00000000000..097f148d38c --- /dev/null +++ b/sale_order_line_description/i18n/es_VE.po @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_description +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-23 01:51+0000\n" +"PO-Revision-Date: 2017-11-23 01:51+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Venezuela) (https://www.transifex.com/oca/" +"teams/23907/es_VE/)\n" +"Language: es_VE\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: sale_order_line_description +#: model:ir.model.fields,field_description:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "Allow using only the product sale description on the sales order lines" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Allows you to use only product sale description on the sales order line" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model.fields,help:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "" +"Allows you to use only product sale description on the sales order line." +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Product sale description" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línea de pedido de venta" + +#. module: sale_order_line_description +#: model:res.groups,name:sale_order_line_description.group_use_product_description_per_so_line +msgid "Use only product sale description on order lines" +msgstr "" diff --git a/sale_order_line_description/i18n/fr.po b/sale_order_line_description/i18n/fr.po new file mode 100644 index 00000000000..e4b07797f32 --- /dev/null +++ b/sale_order_line_description/i18n/fr.po @@ -0,0 +1,64 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_description +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: sale-workflow (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-09-09 12:27+0000\n" +"PO-Revision-Date: 2021-11-15 18:36+0000\n" +"Last-Translator: Yves Le Doeuff \n" +"Language-Team: French (http://www.transifex.com/oca/OCA-sale-workflow-8-0/" +"language/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 4.3.2\n" + +#. module: sale_order_line_description +#: model:ir.model.fields,field_description:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "Allow using only the product sale description on the sales order lines" +msgstr "" +"Autorise l'utilisation de la seule description de vente du produit sur les " +"lignes de commande client" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Allows you to use only product sale description on the sales order line" +msgstr "" +"Permet d'utiliser uniquement la description de vente du produit sur la ligne " +"de commande" + +#. module: sale_order_line_description +#: model:ir.model.fields,help:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "" +"Allows you to use only product sale description on the sales order line." +msgstr "" +"Permet d'utiliser uniquement la description de vente du produit sur la ligne " +"de commande." + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Product sale description" +msgstr "Description de vente" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_sale_order_line +msgid "Sales Order Line" +msgstr "Ligne de bon de commande" + +#. module: sale_order_line_description +#: model:res.groups,name:sale_order_line_description.group_use_product_description_per_so_line +msgid "Use only product sale description on order lines" +msgstr "" +"Utilisez uniquement la description de vente du produit sur les lignes de " +"commande" diff --git a/sale_order_line_description/i18n/fr_FR.po b/sale_order_line_description/i18n/fr_FR.po new file mode 100644 index 00000000000..83309d076eb --- /dev/null +++ b/sale_order_line_description/i18n/fr_FR.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_description +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-11-15 18:36+0000\n" +"Last-Translator: Yves Le Doeuff \n" +"Language-Team: none\n" +"Language: fr_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 4.3.2\n" + +#. module: sale_order_line_description +#: model:ir.model.fields,field_description:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "Allow using only the product sale description on the sales order lines" +msgstr "" +"Autorise l'utilisation de la seule description de vente du produit sur les " +"lignes de commande client" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Allows you to use only product sale description on the sales order line" +msgstr "" +"Permet d'utiliser uniquement la description de vente du produit sur la ligne " +"de commande" + +#. module: sale_order_line_description +#: model:ir.model.fields,help:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "" +"Allows you to use only product sale description on the sales order line." +msgstr "" +"Permet d'utiliser uniquement la description de vente du produit sur la ligne " +"de commande." + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Product sale description" +msgstr "Description de vente" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_sale_order_line +msgid "Sales Order Line" +msgstr "Ligne de bon de commande" + +#. module: sale_order_line_description +#: model:res.groups,name:sale_order_line_description.group_use_product_description_per_so_line +msgid "Use only product sale description on order lines" +msgstr "" +"Utilisez uniquement la description de vente du produit sur les lignes de " +"commande" diff --git a/sale_order_line_description/i18n/hr.po b/sale_order_line_description/i18n/hr.po new file mode 100644 index 00000000000..692f0e3b0bb --- /dev/null +++ b/sale_order_line_description/i18n/hr.po @@ -0,0 +1,57 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_description +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-23 01:51+0000\n" +"PO-Revision-Date: 2017-11-23 01:51+0000\n" +"Last-Translator: Bole , 2017\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: sale_order_line_description +#: model:ir.model.fields,field_description:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "Allow using only the product sale description on the sales order lines" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Allows you to use only product sale description on the sales order line" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model.fields,help:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "" +"Allows you to use only product sale description on the sales order line." +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_res_config_settings +#, fuzzy +msgid "Config Settings" +msgstr "sale.config.settings" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Product sale description" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_sale_order_line +msgid "Sales Order Line" +msgstr "Stavka ponude" + +#. module: sale_order_line_description +#: model:res.groups,name:sale_order_line_description.group_use_product_description_per_so_line +msgid "Use only product sale description on order lines" +msgstr "" diff --git a/sale_order_line_description/i18n/it.po b/sale_order_line_description/i18n/it.po new file mode 100644 index 00000000000..a09367aafdc --- /dev/null +++ b/sale_order_line_description/i18n/it.po @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_description +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-23 01:51+0000\n" +"PO-Revision-Date: 2023-05-12 12:57+0000\n" +"Last-Translator: mymage \n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\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.14.1\n" + +#. module: sale_order_line_description +#: model:ir.model.fields,field_description:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "Allow using only the product sale description on the sales order lines" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Allows you to use only product sale description on the sales order line" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model.fields,help:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "" +"Allows you to use only product sale description on the sales order line." +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Product sale description" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_sale_order_line +msgid "Sales Order Line" +msgstr "Riga ordine di vendita" + +#. module: sale_order_line_description +#: model:res.groups,name:sale_order_line_description.group_use_product_description_per_so_line +msgid "Use only product sale description on order lines" +msgstr "" diff --git a/sale_order_line_description/i18n/nl_NL.po b/sale_order_line_description/i18n/nl_NL.po new file mode 100644 index 00000000000..65b36ad654b --- /dev/null +++ b/sale_order_line_description/i18n/nl_NL.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_description +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: sale-workflow (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-29 03:51+0000\n" +"PO-Revision-Date: 2015-09-03 07:09+0000\n" +"Last-Translator: <>\n" +"Language-Team: Dutch (Netherlands) (http://www.transifex.com/oca/OCA-sale-" +"workflow-8-0/language/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: sale_order_line_description +#: model:ir.model.fields,field_description:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "Allow using only the product sale description on the sales order lines" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Allows you to use only product sale description on the sales order line" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model.fields,help:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "" +"Allows you to use only product sale description on the sales order line." +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Product sale description" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_sale_order_line +msgid "Sales Order Line" +msgstr "Verkooporderregel" + +#. module: sale_order_line_description +#: model:res.groups,name:sale_order_line_description.group_use_product_description_per_so_line +msgid "Use only product sale description on order lines" +msgstr "" diff --git a/sale_order_line_description/i18n/pt_BR.po b/sale_order_line_description/i18n/pt_BR.po new file mode 100644 index 00000000000..ffe96c2c135 --- /dev/null +++ b/sale_order_line_description/i18n/pt_BR.po @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_description +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-23 01:51+0000\n" +"PO-Revision-Date: 2017-11-23 01:51+0000\n" +"Last-Translator: OCA Transbot , 2017\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" + +#. module: sale_order_line_description +#: model:ir.model.fields,field_description:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "Allow using only the product sale description on the sales order lines" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Allows you to use only product sale description on the sales order line" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model.fields,help:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "" +"Allows you to use only product sale description on the sales order line." +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Product sale description" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_sale_order_line +msgid "Sales Order Line" +msgstr "Linha Pedido de Venda" + +#. module: sale_order_line_description +#: model:res.groups,name:sale_order_line_description.group_use_product_description_per_so_line +msgid "Use only product sale description on order lines" +msgstr "" diff --git a/sale_order_line_description/i18n/ro.po b/sale_order_line_description/i18n/ro.po new file mode 100644 index 00000000000..bb62a553381 --- /dev/null +++ b/sale_order_line_description/i18n/ro.po @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_description +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: sale-workflow (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-22 12:40+0000\n" +"PO-Revision-Date: 2015-09-03 07:09+0000\n" +"Last-Translator: <>\n" +"Language-Team: Romanian (http://www.transifex.com/oca/OCA-sale-workflow-8-0/" +"language/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: sale_order_line_description +#: model:ir.model.fields,field_description:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "Allow using only the product sale description on the sales order lines" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Allows you to use only product sale description on the sales order line" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model.fields,help:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "" +"Allows you to use only product sale description on the sales order line." +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Product sale description" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_sale_order_line +msgid "Sales Order Line" +msgstr "Linie comandă vânzare" + +#. module: sale_order_line_description +#: model:res.groups,name:sale_order_line_description.group_use_product_description_per_so_line +msgid "Use only product sale description on order lines" +msgstr "" diff --git a/sale_order_line_description/i18n/sale_order_line_description.pot b/sale_order_line_description/i18n/sale_order_line_description.pot new file mode 100644 index 00000000000..a9f5543ed7b --- /dev/null +++ b/sale_order_line_description/i18n/sale_order_line_description.pot @@ -0,0 +1,51 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_description +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.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: sale_order_line_description +#: model:ir.model.fields,field_description:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "Allow using only the product sale description on the sales order lines" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "" +"Allows you to use only product sale description on the sales order line" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model.fields,help:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "" +"Allows you to use only product sale description on the sales order line." +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Product sale description" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#. module: sale_order_line_description +#: model:res.groups,name:sale_order_line_description.group_use_product_description_per_so_line +msgid "Use only product sale description on order lines" +msgstr "" diff --git a/sale_order_line_description/i18n/sl.po b/sale_order_line_description/i18n/sl.po new file mode 100644 index 00000000000..00b73ebe7a1 --- /dev/null +++ b/sale_order_line_description/i18n/sl.po @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_description +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-23 01:51+0000\n" +"PO-Revision-Date: 2017-11-23 01:51+0000\n" +"Last-Translator: OCA Transbot , 2017\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: sale_order_line_description +#: model:ir.model.fields,field_description:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "Allow using only the product sale description on the sales order lines" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Allows you to use only product sale description on the sales order line" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model.fields,help:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "" +"Allows you to use only product sale description on the sales order line." +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Product sale description" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_sale_order_line +msgid "Sales Order Line" +msgstr "Postavka prodajnega naloga" + +#. module: sale_order_line_description +#: model:res.groups,name:sale_order_line_description.group_use_product_description_per_so_line +msgid "Use only product sale description on order lines" +msgstr "" diff --git a/sale_order_line_description/i18n/tr.po b/sale_order_line_description/i18n/tr.po new file mode 100644 index 00000000000..7b83a5089ef --- /dev/null +++ b/sale_order_line_description/i18n/tr.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_description +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-23 01:51+0000\n" +"PO-Revision-Date: 2017-11-23 01:51+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"Language: tr\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: sale_order_line_description +#: model:ir.model.fields,field_description:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "Allow using only the product sale description on the sales order lines" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Allows you to use only product sale description on the sales order line" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model.fields,help:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "" +"Allows you to use only product sale description on the sales order line." +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Product sale description" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_sale_order_line +msgid "Sales Order Line" +msgstr "Satış Siparişi Hattı" + +#. module: sale_order_line_description +#: model:res.groups,name:sale_order_line_description.group_use_product_description_per_so_line +msgid "Use only product sale description on order lines" +msgstr "" diff --git a/sale_order_line_description/i18n/tr_TR.po b/sale_order_line_description/i18n/tr_TR.po new file mode 100644 index 00000000000..0261ea3a279 --- /dev/null +++ b/sale_order_line_description/i18n/tr_TR.po @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_description +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-23 01:51+0000\n" +"PO-Revision-Date: 2017-11-23 01:51+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/" +"tr_TR/)\n" +"Language: tr_TR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: sale_order_line_description +#: model:ir.model.fields,field_description:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "Allow using only the product sale description on the sales order lines" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Allows you to use only product sale description on the sales order line" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model.fields,help:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "" +"Allows you to use only product sale description on the sales order line." +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Product sale description" +msgstr "" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_sale_order_line +msgid "Sales Order Line" +msgstr "Sipariş emri satırı " + +#. module: sale_order_line_description +#: model:res.groups,name:sale_order_line_description.group_use_product_description_per_so_line +msgid "Use only product sale description on order lines" +msgstr "" diff --git a/sale_order_line_description/i18n/zh_CN.po b/sale_order_line_description/i18n/zh_CN.po new file mode 100644 index 00000000000..22b9315332c --- /dev/null +++ b/sale_order_line_description/i18n/zh_CN.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_description +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-09-01 11:23+0000\n" +"Last-Translator: 黎伟杰 <674416404@qq.com>\n" +"Language-Team: none\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 3.8\n" + +#. module: sale_order_line_description +#: model:ir.model.fields,field_description:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "Allow using only the product sale description on the sales order lines" +msgstr "仅允许在销售订单行上使用产品销售说明" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Allows you to use only product sale description on the sales order line" +msgstr "仅允许在销售订单行上使用产品销售描述" + +#. module: sale_order_line_description +#: model:ir.model.fields,help:sale_order_line_description.field_res_config_settings__group_use_product_description_per_so_line +msgid "" +"Allows you to use only product sale description on the sales order line." +msgstr "仅允许在销售订单行上使用产品销售说明。" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_res_config_settings +msgid "Config Settings" +msgstr "配置设置" + +#. module: sale_order_line_description +#: model_terms:ir.ui.view,arch_db:sale_order_line_description.view_sales_config +msgid "Product sale description" +msgstr "产品销售说明" + +#. module: sale_order_line_description +#: model:ir.model,name:sale_order_line_description.model_sale_order_line +msgid "Sales Order Line" +msgstr "销售订单行" + +#. module: sale_order_line_description +#: model:res.groups,name:sale_order_line_description.group_use_product_description_per_so_line +msgid "Use only product sale description on order lines" +msgstr "仅在订单行上使用产品销售说明" diff --git a/sale_order_line_description/models/__init__.py b/sale_order_line_description/models/__init__.py new file mode 100644 index 00000000000..1a68e643973 --- /dev/null +++ b/sale_order_line_description/models/__init__.py @@ -0,0 +1,2 @@ +from . import res_config_settings +from . import sale_order_line diff --git a/sale_order_line_description/models/res_config_settings.py b/sale_order_line_description/models/res_config_settings.py new file mode 100644 index 00000000000..0f5d62fc972 --- /dev/null +++ b/sale_order_line_description/models/res_config_settings.py @@ -0,0 +1,17 @@ +# Copyright 2013-15 Agile Business Group sagl () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + _inherit = "res.config.settings" + + group_use_product_description_per_so_line = fields.Boolean( + string="Allow using only the product sale description on the sales order " + "lines", + implied_group="sale_order_line_description." + "group_use_product_description_per_so_line", + help="Allows you to use only product sale description on the " + "sales order line.", + ) diff --git a/sale_order_line_description/models/sale_order_line.py b/sale_order_line_description/models/sale_order_line.py new file mode 100644 index 00000000000..a41fcbf2553 --- /dev/null +++ b/sale_order_line_description/models/sale_order_line.py @@ -0,0 +1,28 @@ +# Copyright 2013-15 Agile Business Group sagl () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, models + + +class SaleOrderLine(models.Model): + _inherit = "sale.order.line" + + @api.depends("product_id") + def _compute_name(self): + res = super()._compute_name() + if not self.product_id: # pragma: no cover + return res + if ( + self.user_has_groups( + "sale_order_line_description." + "group_use_product_description_per_so_line" + ) + and self.product_id.description_sale + ): + product = self.product_id + if self.order_id.partner_id: + product = product.with_context( + lang=self.order_id.partner_id.lang, + ) + self.name = product.description_sale + return res diff --git a/sale_order_line_description/readme/CONFIGURE.rst b/sale_order_line_description/readme/CONFIGURE.rst new file mode 100644 index 00000000000..5cdd94a6ae4 --- /dev/null +++ b/sale_order_line_description/readme/CONFIGURE.rst @@ -0,0 +1,4 @@ +The user has to belong to group_use_product_description_per_so_line. +This is possible by selecting the related option in the following menu: + +* *Sales > Settings > Quotations & Orders > Product Sale Description* diff --git a/sale_order_line_description/readme/CONTRIBUTORS.rst b/sale_order_line_description/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..3e9a08782dd --- /dev/null +++ b/sale_order_line_description/readme/CONTRIBUTORS.rst @@ -0,0 +1,8 @@ +* Alex Comba +* Daniel Campos +* Simone Rubino +* `Tecnativa `_ : + + * Vicent Cubells + + * Rataapong Chokmasermkul diff --git a/sale_order_line_description/readme/DESCRIPTION.rst b/sale_order_line_description/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..771e03de7d6 --- /dev/null +++ b/sale_order_line_description/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module sets to use only product's sale description field on the sale order +lines, instead of "Ref+Name+Sale Description". diff --git a/sale_order_line_description/readme/USAGE.rst b/sale_order_line_description/readme/USAGE.rst new file mode 100644 index 00000000000..144fd5ecbe4 --- /dev/null +++ b/sale_order_line_description/readme/USAGE.rst @@ -0,0 +1,9 @@ +#. Go to **Sales > Settings > Quotations & Orders** and check "Product Sale + description* to use only product sale description on the sales order lines. +#. Go to **Setting > Users & Companies > Users** and check you have checked + the "Use only product purchase description on order lines" access right for + your user. +#. Add or modify a sale description to any of your products. +#. Create a sale order and add a sale order line with this product and check + out that now sale order line description only contains the sale description + you entered. diff --git a/sale_order_line_description/security/sale_security.xml b/sale_order_line_description/security/sale_security.xml new file mode 100644 index 00000000000..08ece87bc6a --- /dev/null +++ b/sale_order_line_description/security/sale_security.xml @@ -0,0 +1,6 @@ + + + Use only product sale description on order lines + + + diff --git a/sale_order_line_description/static/description/icon.png b/sale_order_line_description/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/sale_order_line_description/static/description/icon.png differ diff --git a/sale_order_line_description/static/description/index.html b/sale_order_line_description/static/description/index.html new file mode 100644 index 00000000000..5c5ad7ef24b --- /dev/null +++ b/sale_order_line_description/static/description/index.html @@ -0,0 +1,459 @@ + + + + + +Sale order line description + + + +
+

Sale order line description

+ + +

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

+

This module sets to use only product’s sale description field on the sale order +lines, instead of “Ref+Name+Sale Description”.

+

Table of contents

+ +
+

Configuration

+

The user has to belong to group_use_product_description_per_so_line. +This is possible by selecting the related option in the following menu:

+
    +
  • Sales > Settings > Quotations & Orders > Product Sale Description
  • +
+
+
+

Usage

+
    +
  1. Go to Sales > Settings > Quotations & Orders and check “Product Sale +description* to use only product sale description on the sales order lines.
  2. +
  3. Go to Setting > Users & Companies > Users and check you have checked +the “Use only product purchase description on order lines” access right for +your user.
  4. +
  5. Add or modify a sale description to any of your products.
  6. +
  7. Create a sale order and add a sale order line with this product and check +out that now sale order line description only contains the sale description +you entered.
  8. +
+
+
+

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

+

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

+
+
+
+ + diff --git a/sale_order_line_description/tests/__init__.py b/sale_order_line_description/tests/__init__.py new file mode 100644 index 00000000000..67709762e39 --- /dev/null +++ b/sale_order_line_description/tests/__init__.py @@ -0,0 +1 @@ +from . import test_sale diff --git a/sale_order_line_description/tests/test_sale.py b/sale_order_line_description/tests/test_sale.py new file mode 100644 index 00000000000..ba9e055f014 --- /dev/null +++ b/sale_order_line_description/tests/test_sale.py @@ -0,0 +1,77 @@ +# Copyright 2017 Simone Rubino - Agile Business Group +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +import odoo.tests.common as common +from odoo.tests import tagged + + +@tagged("post_install", "-at_install") +class TestSaleOrderLineDescriptionChange(common.TransactionCase): + def setUp(self): + super(TestSaleOrderLineDescriptionChange, self).setUp() + + # Create models + self.sale_order_model = self.env["sale.order"] + self.sale_order_line_model = self.env["sale.order.line"] + self.partner_model = self.env["res.partner"] + self.product_model = self.env["product.product"] + self.user_model = self.env["res.users"].with_context( + no_reset_password=True, mail_create_nosubscribe=True + ) + + # Create two different users + self.group_only_sale_description = self.env.ref( + "sale_order_line_description.group_use_product_description_per_so_line" + ) + self.user_1 = self._create_user("TestUser1") + self.user_2 = self._create_user("TestUser2", self.group_only_sale_description) + + # Create the sale order + self.partner = self.partner_model.create({"name": "Test partner"}) + self.sale_order = self.sale_order_model.create({"partner_id": self.partner.id}) + + self.product = self.product_model.create( + { + "name": "Test product", + "description_sale": "Sale description for test product", + } + ) + + def _create_user(self, name, group=None): + groups_id = self.env.user.groups_id + if group: + groups_id += group + return self.user_model.create( + { + "name": name, + "login": name, + "email": name + "@example.com", + "groups_id": groups_id, + } + ) + + def test_check_sale_order_line_description(self): + line_values = {"order_id": self.sale_order.id, "product_id": self.product.id} + + # Create sale order line with TestUser1 + sale_order_line = self.sale_order_line_model.with_user(self.user_1).create( + line_values.copy() + ) + self.assertEqual( + sale_order_line.name, + "\n".join([self.product.name, self.product.description_sale]), + "Standard behavior does not concatenate " + "product description and product sale description", + ) + + # Create sale order line with TestUser2 + sale_order_line = self.sale_order_line_model.with_user(self.user_2).create( + line_values.copy() + ) + self.assertEqual( + sale_order_line.name, + self.product.description_sale, + "Adding group " + + self.group_only_sale_description.name + + " does not modify sale order line description", + ) diff --git a/sale_order_line_description/views/res_config_settings_views.xml b/sale_order_line_description/views/res_config_settings_views.xml new file mode 100644 index 00000000000..15cc3693140 --- /dev/null +++ b/sale_order_line_description/views/res_config_settings_views.xml @@ -0,0 +1,28 @@ + + + sale settings + res.config.settings + + + +
+
+ +
+
+
+
+
+
+
+
diff --git a/setup/sale_order_line_description/odoo/addons/sale_order_line_description b/setup/sale_order_line_description/odoo/addons/sale_order_line_description new file mode 120000 index 00000000000..7492bfa1fac --- /dev/null +++ b/setup/sale_order_line_description/odoo/addons/sale_order_line_description @@ -0,0 +1 @@ +../../../../sale_order_line_description \ No newline at end of file diff --git a/setup/sale_order_line_description/setup.py b/setup/sale_order_line_description/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/sale_order_line_description/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)