diff --git a/sale_order_lot_generator/README.rst b/sale_order_lot_generator/README.rst new file mode 100644 index 00000000000..ae5bc282c39 --- /dev/null +++ b/sale_order_lot_generator/README.rst @@ -0,0 +1,111 @@ +======================== +Sale Order Lot Generator +======================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:e0b85a7b15834bbd24c195755e75a9046c017f183f77793a95968c723378e5d8 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/17.0/sale_order_lot_generator + :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-17-0/sale-workflow-17-0-sale_order_lot_generator + :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=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Generate automatically a lot number for each sale lines when you confirm +a sale order. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +Go to product, inventory tab and check 'Auto Generate Lot' field. + +Usage +===== + +Create a sale order with a product with 'Auto Generate Lot' field +checked. + +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 +------- + +* Akretion + +Contributors +------------ + +- Akretion: + + - Valentin Chemiere + - Florian da Costa + - Mourad EL HADJ MIMOUNE + - David BEAL + +- `APSL-Nagarro `__: + + - Antoni Marroig + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +.. |maintainer-florian-dacosta| image:: https://github.com/florian-dacosta.png?size=40px + :target: https://github.com/florian-dacosta + :alt: florian-dacosta +.. |maintainer-mourad-ehm| image:: https://github.com/mourad-ehm.png?size=40px + :target: https://github.com/mourad-ehm + :alt: mourad-ehm +.. |maintainer-bealdav| image:: https://github.com/bealdav.png?size=40px + :target: https://github.com/bealdav + :alt: bealdav + +Current `maintainers `__: + +|maintainer-florian-dacosta| |maintainer-mourad-ehm| |maintainer-bealdav| + +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_lot_generator/__init__.py b/sale_order_lot_generator/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /dev/null +++ b/sale_order_lot_generator/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/sale_order_lot_generator/__manifest__.py b/sale_order_lot_generator/__manifest__.py new file mode 100644 index 00000000000..d240bb67b43 --- /dev/null +++ b/sale_order_lot_generator/__manifest__.py @@ -0,0 +1,14 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + "name": "Sale Order Lot Generator", + "version": "17.0.1.0.0", + "author": "Akretion, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/sale-workflow", + "license": "AGPL-3", + "category": "Sale", + "depends": ["sale_order_lot_selection"], + "maintainers": ["florian-dacosta", "mourad-ehm", "bealdav"], + "data": ["views/product_template.xml"], + "installable": True, +} diff --git a/sale_order_lot_generator/i18n/ca.po b/sale_order_lot_generator/i18n/ca.po new file mode 100644 index 00000000000..920da2cf6c2 --- /dev/null +++ b/sale_order_lot_generator/i18n/ca.po @@ -0,0 +1,67 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2021-02-23 17:45+0000\n" +"Last-Translator: Daniel Martinez Vila \n" +"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/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" +"X-Generator: Weblate 4.3.2\n" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "Generació automàtica de lot" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" +"Obliga a especificar un número de sèrie per a totes les línies que contenen " +"aquest producte des de la confirmació de la comanda de venda" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "Comanda de venda" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línia de comanda de vendes" + +#~ msgid "Display Name" +#~ msgstr "Nom Visible" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Darrera modificació el" + +#~ msgid "Product Template" +#~ msgstr "Plantilla de producte" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Comandes de venda" diff --git a/sale_order_lot_generator/i18n/de.po b/sale_order_lot_generator/i18n/de.po new file mode 100644 index 00000000000..452499edda1 --- /dev/null +++ b/sale_order_lot_generator/i18n/de.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2017-05-13 01:19+0000\n" +"Last-Translator: OCA Transbot , 2017\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: sale_order_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "Auftragsposition" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Verkaufsauftrag" diff --git a/sale_order_lot_generator/i18n/el_GR.po b/sale_order_lot_generator/i18n/el_GR.po new file mode 100644 index 00000000000..b955920adee --- /dev/null +++ b/sale_order_lot_generator/i18n/el_GR.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2017-05-13 01:19+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/" +"el_GR/)\n" +"Language: el_GR\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_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Εντολή Πώλησης" diff --git a/sale_order_lot_generator/i18n/es.po b/sale_order_lot_generator/i18n/es.po new file mode 100644 index 00000000000..c332032763e --- /dev/null +++ b/sale_order_lot_generator/i18n/es.po @@ -0,0 +1,67 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2023-10-15 19:36+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "Lote de generación automática" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" +"Obliga a especificar un número de serie para todas las líneas que contienen " +"este producto desde la confirmación de la orden de venta" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "Producto" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "Pedido de venta" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línea de pedido de venta" + +#~ msgid "Display Name" +#~ msgstr "Nombre mostrado" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Última modificación en" + +#~ msgid "Product Template" +#~ msgstr "Plantilla de producto" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Pedido de venta" diff --git a/sale_order_lot_generator/i18n/es_ES.po b/sale_order_lot_generator/i18n/es_ES.po new file mode 100644 index 00000000000..40e0ce6d97a --- /dev/null +++ b/sale_order_lot_generator/i18n/es_ES.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2017-05-13 01:19+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/" +"es_ES/)\n" +"Language: es_ES\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Pedido de venta" diff --git a/sale_order_lot_generator/i18n/es_VE.po b/sale_order_lot_generator/i18n/es_VE.po new file mode 100644 index 00000000000..00c981a3fc6 --- /dev/null +++ b/sale_order_lot_generator/i18n/es_VE.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2017-05-13 01:19+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_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línea de pedido de venta" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Pedidos de venta" diff --git a/sale_order_lot_generator/i18n/fi.po b/sale_order_lot_generator/i18n/fi.po new file mode 100644 index 00000000000..17f60f319a6 --- /dev/null +++ b/sale_order_lot_generator/i18n/fi.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2017-05-13 01:19+0000\n" +"Last-Translator: OCA Transbot , 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: sale_order_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Myyntitilaus" diff --git a/sale_order_lot_generator/i18n/fr.po b/sale_order_lot_generator/i18n/fr.po new file mode 100644 index 00000000000..b906ab709fe --- /dev/null +++ b/sale_order_lot_generator/i18n/fr.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# leemannd , 2017 +# OCA Transbot , 2017 +# Quentin THEURET , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-28 01:48+0000\n" +"PO-Revision-Date: 2018-02-28 01:48+0000\n" +"Last-Translator: Quentin THEURET , 2018\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: sale_order_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +#, fuzzy +msgid "Auto Generate Lot" +msgstr "Génération automatique des Lots" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "Sales Order Line" + +#~ msgid "Product Template" +#~ msgstr "Modèle de produit" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Bon de commande" diff --git a/sale_order_lot_generator/i18n/hr.po b/sale_order_lot_generator/i18n/hr.po new file mode 100644 index 00000000000..fbfa5c2a51b --- /dev/null +++ b/sale_order_lot_generator/i18n/hr.po @@ -0,0 +1,60 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# Bole , 2017 +# 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: 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_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +#, fuzzy +msgid "Auto Generate Lot" +msgstr "Automatsko kreiranje lot-a" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" +"Forsira navođenje serijskog broja za sve stavke koje sadrže ovaj proizvod od " +"potvrđivanja prodajnog naloga." + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "Stavka ponude" + +#~ msgid "Product Template" +#~ msgstr "Predložak proizvoda" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Prodajni nalog" diff --git a/sale_order_lot_generator/i18n/hr_HR.po b/sale_order_lot_generator/i18n/hr_HR.po new file mode 100644 index 00000000000..7a9e6f8a214 --- /dev/null +++ b/sale_order_lot_generator/i18n/hr_HR.po @@ -0,0 +1,54 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2017-05-13 01:19+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/" +"hr_HR/)\n" +"Language: hr_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_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Prodjani nalog" diff --git a/sale_order_lot_generator/i18n/hu.po b/sale_order_lot_generator/i18n/hu.po new file mode 100644 index 00000000000..c1ecb688331 --- /dev/null +++ b/sale_order_lot_generator/i18n/hu.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2017-05-13 01:19+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Hungarian (https://www.transifex.com/oca/teams/23907/hu/)\n" +"Language: hu\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_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Vevői megrendelés" diff --git a/sale_order_lot_generator/i18n/it.po b/sale_order_lot_generator/i18n/it.po new file mode 100644 index 00000000000..ad0874b9aba --- /dev/null +++ b/sale_order_lot_generator/i18n/it.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2023-12-01 15:35+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.17\n" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "Lotto auto generato" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" +"Forza l'indicazione di un numero di serie per tutte le righe che contengono " +"questo prodotto dalla conferma dell'ordine di vendita" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "Prodotto" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "Ordine di vendita" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "Riga ordine di vendita" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Ordini vendita" diff --git a/sale_order_lot_generator/i18n/nl.po b/sale_order_lot_generator/i18n/nl.po new file mode 100644 index 00000000000..b95ec1385e3 --- /dev/null +++ b/sale_order_lot_generator/i18n/nl.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2017-05-13 01:19+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Verkooporder" diff --git a/sale_order_lot_generator/i18n/nl_NL.po b/sale_order_lot_generator/i18n/nl_NL.po new file mode 100644 index 00000000000..20e431ad3a0 --- /dev/null +++ b/sale_order_lot_generator/i18n/nl_NL.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-06 13:17+0000\n" +"PO-Revision-Date: 2017-06-06 13:17+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: sale_order_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "Verkooporderregel" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Verkooporder" diff --git a/sale_order_lot_generator/i18n/pt.po b/sale_order_lot_generator/i18n/pt.po new file mode 100644 index 00000000000..17a60915dbe --- /dev/null +++ b/sale_order_lot_generator/i18n/pt.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2017-05-13 01:19+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Ordem de Venda" diff --git a/sale_order_lot_generator/i18n/pt_BR.po b/sale_order_lot_generator/i18n/pt_BR.po new file mode 100644 index 00000000000..fa7ca7fe932 --- /dev/null +++ b/sale_order_lot_generator/i18n/pt_BR.po @@ -0,0 +1,57 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# 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: 2024-05-22 16:36+0000\n" +"Last-Translator: Rodrigo Macedo \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.17\n" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "Lote de geração automática" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" +"Força a especificação de um Número de Série para todas as linhas que " +"contenham este produto desde a confirmação do Pedido de Venda" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "Produto" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "Pedido de Venda" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "Linha Pedido de Venda" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Pedido de Venda" diff --git a/sale_order_lot_generator/i18n/ro.po b/sale_order_lot_generator/i18n/ro.po new file mode 100644 index 00000000000..a4d31b44d0f --- /dev/null +++ b/sale_order_lot_generator/i18n/ro.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2017-05-13 01:19+0000\n" +"Last-Translator: OCA Transbot , 2017\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: sale_order_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "Linie comandă vânzare" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Comandă vânzare" diff --git a/sale_order_lot_generator/i18n/sale_order_lot_generator.pot b/sale_order_lot_generator/i18n/sale_order_lot_generator.pot new file mode 100644 index 00000000000..c10fc50a058 --- /dev/null +++ b/sale_order_lot_generator/i18n/sale_order_lot_generator.pot @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.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_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "" diff --git a/sale_order_lot_generator/i18n/sk.po b/sale_order_lot_generator/i18n/sk.po new file mode 100644 index 00000000000..cc52b119103 --- /dev/null +++ b/sale_order_lot_generator/i18n/sk.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-27 03:53+0000\n" +"PO-Revision-Date: 2018-01-27 03:53+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: Slovak (https://www.transifex.com/oca/teams/23907/sk/)\n" +"Language: sk\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>=2 && n<=4) ? 1 : 2;\n" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Objednávka predaja" diff --git a/sale_order_lot_generator/i18n/sl.po b/sale_order_lot_generator/i18n/sl.po new file mode 100644 index 00000000000..bf43b606c35 --- /dev/null +++ b/sale_order_lot_generator/i18n/sl.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2017-05-13 01:19+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_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "Postavka prodajnega naloga" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Prodajni nalog" diff --git a/sale_order_lot_generator/i18n/tr.po b/sale_order_lot_generator/i18n/tr.po new file mode 100644 index 00000000000..172dc0ebc2d --- /dev/null +++ b/sale_order_lot_generator/i18n/tr.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2017-05-13 01:19+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_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "Satış Siparişi Hattı" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Sipariş Emri" diff --git a/sale_order_lot_generator/i18n/tr_TR.po b/sale_order_lot_generator/i18n/tr_TR.po new file mode 100644 index 00000000000..e9f5d8efbb3 --- /dev/null +++ b/sale_order_lot_generator/i18n/tr_TR.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2017-05-13 01:19+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_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "Sipariş emri satırı " + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Satış emri" diff --git a/sale_order_lot_generator/i18n/vi_VN.po b/sale_order_lot_generator/i18n/vi_VN.po new file mode 100644 index 00000000000..7d82857583e --- /dev/null +++ b/sale_order_lot_generator/i18n/vi_VN.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2017-05-13 01:19+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/" +"teams/23907/vi_VN/)\n" +"Language: vi_VN\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_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "Đơn hàng Bán" diff --git a/sale_order_lot_generator/i18n/zh_CN.po b/sale_order_lot_generator/i18n/zh_CN.po new file mode 100644 index 00000000000..df8dec28cd3 --- /dev/null +++ b/sale_order_lot_generator/i18n/zh_CN.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_lot_generator +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-13 01:19+0000\n" +"PO-Revision-Date: 2017-05-13 01:19+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/" +"zh_CN/)\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" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,field_description:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "Auto Generate Lot" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_product__auto_generate_prodlot +#: model:ir.model.fields,help:sale_order_lot_generator.field_product_template__auto_generate_prodlot +msgid "" +"Forces to specifiy a Serial Number for all lines containing this product " +"since the confirmation of the Sale Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_product_template +msgid "Product" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_lot_generator +#: model:ir.model,name:sale_order_lot_generator.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#, fuzzy +#~ msgid "Sale Order" +#~ msgstr "销售订单" diff --git a/sale_order_lot_generator/models/__init__.py b/sale_order_lot_generator/models/__init__.py new file mode 100644 index 00000000000..53fa79af356 --- /dev/null +++ b/sale_order_lot_generator/models/__init__.py @@ -0,0 +1,3 @@ +from . import product_template +from . import sale_order +from . import sale_order_line diff --git a/sale_order_lot_generator/models/product_template.py b/sale_order_lot_generator/models/product_template.py new file mode 100644 index 00000000000..405e52cf26c --- /dev/null +++ b/sale_order_lot_generator/models/product_template.py @@ -0,0 +1,14 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + auto_generate_prodlot = fields.Boolean( + string="Auto Generate Lot", + help="Forces to specifiy a Serial Number for all " + "lines containing this product since the confirmation " + "of the Sale Order", + ) diff --git a/sale_order_lot_generator/models/sale_order.py b/sale_order_lot_generator/models/sale_order.py new file mode 100644 index 00000000000..e27dd9caa2b --- /dev/null +++ b/sale_order_lot_generator/models/sale_order.py @@ -0,0 +1,37 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import models + + +class SaleOrder(models.Model): + _inherit = "sale.order" + + def _get_max_lot_index(self): + self.ensure_one() + # when a new line is added to confirmed sale order + # get the max index_lot from the other lines + index_lot = 0 + lot_ids = self.order_line.filtered(lambda x: x.lot_id).mapped("lot_id") + for lot in lot_ids: + lot_name = lot.name + index_str = lot_name.replace(self.name + "-", "") + last_index = int(index_str) if index_str.isdigit() else 0 + index_lot = max(index_lot, last_index) + return index_lot + + def generate_lot(self): + for rec in self: + index_lot = rec._get_max_lot_index() + 1 + for line in rec.order_line: + if ( + line.product_id.auto_generate_prodlot + and not line.lot_id + and line.product_id.tracking != "none" + ): + lot_id = line.create_lot(index_lot) + index_lot += 1 + line.lot_id = lot_id + + def action_confirm(self): + self.generate_lot() + return super().action_confirm() diff --git a/sale_order_lot_generator/models/sale_order_line.py b/sale_order_lot_generator/models/sale_order_line.py new file mode 100644 index 00000000000..bfca2fdea44 --- /dev/null +++ b/sale_order_lot_generator/models/sale_order_line.py @@ -0,0 +1,41 @@ +# @author Valentin CHEMIERE +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import api, models + + +class SaleOrderLine(models.Model): + _inherit = "sale.order.line" + + def _prepare_vals_lot_number(self, index_lot): + # Prepare values before creating a lot number + self.ensure_one() + lot_number = "%s-%03d" % (self.order_id.name, index_lot) + return { + "name": lot_number, + "product_id": self.product_id.id, + "product_qty": self.product_uom_qty, + "company_id": self.order_id.company_id.id, + } + + def create_lot(self, index_lot=1): + self.ensure_one() + vals = self._prepare_vals_lot_number(index_lot) + return self.env["stock.lot"].create(vals) + + @api.model_create_multi + def create(self, values_list): + for values in values_list: + line = self.new(values) + # we create a lot before create a line because the super method + # must create a procurement and move + if ( + line.order_id.state == "sale" + and line.product_id.auto_generate_prodlot + and not line.lot_id + and line.product_id.tracking != "none" + ): + index_lot = line.order_id._get_max_lot_index() + 1 + lot_id = line.create_lot(index_lot) + values["lot_id"] = lot_id.id + return super().create(values_list) diff --git a/sale_order_lot_generator/pyproject.toml b/sale_order_lot_generator/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/sale_order_lot_generator/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/sale_order_lot_generator/readme/CONFIGURE.md b/sale_order_lot_generator/readme/CONFIGURE.md new file mode 100644 index 00000000000..b54cf4a8bec --- /dev/null +++ b/sale_order_lot_generator/readme/CONFIGURE.md @@ -0,0 +1 @@ +Go to product, inventory tab and check 'Auto Generate Lot' field. diff --git a/sale_order_lot_generator/readme/CONTRIBUTORS.md b/sale_order_lot_generator/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..a3b6617220e --- /dev/null +++ b/sale_order_lot_generator/readme/CONTRIBUTORS.md @@ -0,0 +1,7 @@ +- Akretion: + - Valentin Chemiere + - Florian da Costa \<\> + - Mourad EL HADJ MIMOUNE \<\> + - David BEAL \<\> +- [APSL-Nagarro](https://apsl.tech): + - Antoni Marroig \<\> \ No newline at end of file diff --git a/sale_order_lot_generator/readme/DESCRIPTION.md b/sale_order_lot_generator/readme/DESCRIPTION.md new file mode 100644 index 00000000000..03ad23f2961 --- /dev/null +++ b/sale_order_lot_generator/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +Generate automatically a lot number for each sale lines when you confirm +a sale order. diff --git a/sale_order_lot_generator/readme/USAGE.md b/sale_order_lot_generator/readme/USAGE.md new file mode 100644 index 00000000000..3070ee36b54 --- /dev/null +++ b/sale_order_lot_generator/readme/USAGE.md @@ -0,0 +1,2 @@ +Create a sale order with a product with 'Auto Generate Lot' field +checked. diff --git a/sale_order_lot_generator/static/description/icon.png b/sale_order_lot_generator/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/sale_order_lot_generator/static/description/icon.png differ diff --git a/sale_order_lot_generator/static/description/index.html b/sale_order_lot_generator/static/description/index.html new file mode 100644 index 00000000000..a85d5c52c71 --- /dev/null +++ b/sale_order_lot_generator/static/description/index.html @@ -0,0 +1,444 @@ + + + + + +Sale Order Lot Generator + + + +
+

Sale Order Lot Generator

+ + +

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

+

Generate automatically a lot number for each sale lines when you confirm +a sale order.

+

Table of contents

+ +
+

Configuration

+

Go to product, inventory tab and check ‘Auto Generate Lot’ field.

+
+
+

Usage

+

Create a sale order with a product with ‘Auto Generate Lot’ field +checked.

+
+
+

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

+
    +
  • Akretion
  • +
+
+
+

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.

+

Current maintainers:

+

florian-dacosta mourad-ehm bealdav

+

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_lot_generator/tests/__init__.py b/sale_order_lot_generator/tests/__init__.py new file mode 100644 index 00000000000..1eca3741312 --- /dev/null +++ b/sale_order_lot_generator/tests/__init__.py @@ -0,0 +1 @@ +from . import test_sale_order_lot_generator diff --git a/sale_order_lot_generator/tests/test_sale_order_lot_generator.py b/sale_order_lot_generator/tests/test_sale_order_lot_generator.py new file mode 100644 index 00000000000..4d1df7a13e6 --- /dev/null +++ b/sale_order_lot_generator/tests/test_sale_order_lot_generator.py @@ -0,0 +1,73 @@ +# © 2017 Akretion, Mourad EL HADJ MIMOUNE +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +import odoo.tests.common as test_common + + +class TestSaleOrderLotGenerator(test_common.SingleTransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.prd_flipover = cls.env.ref("product.product_product_20") + cls.prd_desk = cls.env.ref("product.product_product_22") + cls.prd_acoustic = cls.env.ref("product.product_product_25") + cls.prd_flipover.write( + {"tracking": "lot", "type": "product", "auto_generate_prodlot": True} + ) + cls.prd_desk.write( + {"tracking": "lot", "type": "product", "auto_generate_prodlot": True} + ) + cls.prd_acoustic.write( + {"tracking": "lot", "type": "product", "auto_generate_prodlot": True} + ) + + def test_sale_order_lot_generator(self): + # create order + self.order1 = self.env["sale.order"].create( + # Lumber partner + {"partner_id": self.env.ref("base.res_partner_18").id} + ) + self.sol1 = self.env["sale.order.line"].create( + { + "name": "sol1", + "order_id": self.order1.id, + "product_id": self.prd_flipover.id, + "product_uom_qty": 1, + } + ) + # confirm orders + self.order1.action_confirm() + lot_number = "%s-%03d" % (self.order1.name, 1) + self.assertEqual(self.sol1.lot_id.name, lot_number) + # add second line after order redraft + self.order1._action_cancel() + self.order1.action_draft() + self.sol2 = self.env["sale.order.line"].create( + { + "name": "sol2", + "order_id": self.order1.id, + "product_id": self.prd_desk.id, + "product_uom_qty": 1, + } + ) + self.order1.action_confirm() + lot_number = "%s-%03d" % (self.order1.name, 2) + self.assertEqual(self.sol2.lot_id.name, lot_number) + # add third line after order confirm + self.sol3 = self.env["sale.order.line"].create( + { + "name": "sol3", + "order_id": self.order1.id, + "product_id": self.prd_acoustic.id, + "product_uom_qty": 1, + } + ) + lot_number = "%s-%03d" % (self.order1.name, 3) + self.assertEqual(self.sol3.lot_id.name, lot_number) + for line in self.order1.picking_ids.move_line_ids: + if line.product_id.id == self.prd_flipover.id: + self.assertEqual(line.lot_id, self.sol1.lot_id) + if line.product_id.id == self.prd_desk.id: + self.assertEqual(line.lot_id, self.sol2.lot_id) + if line.product_id.id == self.prd_acoustic.id: + self.assertEqual(line.lot_id, self.sol3.lot_id) diff --git a/sale_order_lot_generator/views/product_template.xml b/sale_order_lot_generator/views/product_template.xml new file mode 100644 index 00000000000..379fc318256 --- /dev/null +++ b/sale_order_lot_generator/views/product_template.xml @@ -0,0 +1,14 @@ + + + + + product.template + + + + + + + + + diff --git a/test-requirements.txt b/test-requirements.txt index 66bc2cbae3f..a13a0db9968 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1 +1,2 @@ odoo_test_helper +odoo-addon-sale_order_lot_selection @ git+https://github.com/OCA/sale-workflow.git@refs/pull/3259/head#subdirectory=sale_order_lot_selection