diff --git a/sale_order_line_date/README.rst b/sale_order_line_date/README.rst new file mode 100644 index 00000000000..7041e42a921 --- /dev/null +++ b/sale_order_line_date/README.rst @@ -0,0 +1,99 @@ +==================== +Sale Order Line Date +==================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:32c5eb12baadadef6f5eaa72a4450a011955744982977f442a79f74866f88286 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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_line_date + :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_line_date + :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| + +This module adds a commitment date to each sale order line and propagate +it to stock moves and pickings. The commitment date of the whole sale +order is computed based on each sale order line date and the sale order +shipping policy. It can't be modified. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +Create a Quotation or a Sales Order and it fills the requested date in +the sale order line + +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 +------- + +* OdooMRP team +* AvanzOSC +* Serv. Tecnol. Avanzados - Pedro M. Baeza + +Contributors +------------ + +- Oihane Crucelaegui +- Esther Martín +- Pedro M. Baeza +- Ana Juaristi +- Jordi Ballester +- Aaron Henriquez +- Serpent Consulting Services Pvt. Ltd. +- Francesco Apruzzese +- Mykhailo Panarin +- Open-Net Sàrl +- Miquel Raïch +- Moaad Bourhim +- Bernat Puig + +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_date/__init__.py b/sale_order_line_date/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /dev/null +++ b/sale_order_line_date/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/sale_order_line_date/__manifest__.py b/sale_order_line_date/__manifest__.py new file mode 100644 index 00000000000..86eaf755b15 --- /dev/null +++ b/sale_order_line_date/__manifest__.py @@ -0,0 +1,22 @@ +# © 2016 OdooMRP team +# © 2016 AvanzOSC +# © 2016 Serv. Tecnol. Avanzados - Pedro M. Baeza +# © 2016 ForgeFlow, S.L. +# Copyright 2017 Serpent Consulting Services Pvt. Ltd. +# Copyright 2018 Camptocamp SA +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) + +{ + "name": "Sale Order Line Date", + "version": "17.0.1.0.0", + "summary": "Adds a commitment date to each sale order line.", + "author": "OdooMRP team," + "AvanzOSC," + "Serv. Tecnol. Avanzados - Pedro M. Baeza," + "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/sale-workflow", + "category": "Sale", + "license": "AGPL-3", + "depends": ["sale_stock"], + "data": ["views/sale_order_view.xml", "reports/sale_order_report.xml"], +} diff --git a/sale_order_line_date/i18n/ca.po b/sale_order_line_date/i18n/ca.po new file mode 100644 index 00000000000..b8c8c139dc3 --- /dev/null +++ b/sale_order_line_date/i18n/ca.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 2022-03-21 14:17+0000\n" +"Last-Translator: Noel estudillo \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_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "Data de compromís" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "Data de lliurament" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +msgid "Sales Order" +msgstr "Comandes de venda" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línia de comanda de vendes" diff --git a/sale_order_line_date/i18n/de.po b/sale_order_line_date/i18n/de.po new file mode 100644 index 00000000000..735e9809cce --- /dev/null +++ b/sale_order_line_date/i18n/de.po @@ -0,0 +1,46 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 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_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "Bestätigtes Datum" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "Lieferdatum" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +msgid "Sales Order" +msgstr "Verkaufsauftrag" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "Auftragsposition" + +#~ msgid "Quotation" +#~ msgstr "Angebot" + +#~ msgid "Requested Date" +#~ msgstr "Wunsch-Lieferdatum" diff --git a/sale_order_line_date/i18n/el_GR.po b/sale_order_line_date/i18n/el_GR.po new file mode 100644 index 00000000000..bdb11ba17b8 --- /dev/null +++ b/sale_order_line_date/i18n/el_GR.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 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_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Εντολή Πώλησης" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "" diff --git a/sale_order_line_date/i18n/es.po b/sale_order_line_date/i18n/es.po new file mode 100644 index 00000000000..9ceb92891aa --- /dev/null +++ b/sale_order_line_date/i18n/es.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 2020-07-27 10:19+0000\n" +"Last-Translator: Daniel Martinez Vila \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 3.10\n" + +#. module: sale_order_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "Fecha de compromiso" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "Fecha de entrega" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +msgid "Sales Order" +msgstr "Órdenes de venta" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línea pedido de venta" diff --git a/sale_order_line_date/i18n/es_ES.po b/sale_order_line_date/i18n/es_ES.po new file mode 100644 index 00000000000..33595526b28 --- /dev/null +++ b/sale_order_line_date/i18n/es_ES.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 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_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Pedido de venta" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "" diff --git a/sale_order_line_date/i18n/es_VE.po b/sale_order_line_date/i18n/es_VE.po new file mode 100644 index 00000000000..3da26d12353 --- /dev/null +++ b/sale_order_line_date/i18n/es_VE.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 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_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Pedidos de venta" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línea de pedido de venta" diff --git a/sale_order_line_date/i18n/fi.po b/sale_order_line_date/i18n/fi.po new file mode 100644 index 00000000000..876e3eb40d6 --- /dev/null +++ b/sale_order_line_date/i18n/fi.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 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_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Myyntitilaus" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "" diff --git a/sale_order_line_date/i18n/fr.po b/sale_order_line_date/i18n/fr.po new file mode 100644 index 00000000000..a81ba8c4220 --- /dev/null +++ b/sale_order_line_date/i18n/fr.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 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_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Bon de commande" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "Sales Order Line" diff --git a/sale_order_line_date/i18n/hr.po b/sale_order_line_date/i18n/hr.po new file mode 100644 index 00000000000..73bc97288a3 --- /dev/null +++ b/sale_order_line_date/i18n/hr.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# Translators: +# OCA Transbot , 2018 +# Bole , 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: Bole , 2018\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: sale_order_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Prodajni nalog" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "Stavka ponude" diff --git a/sale_order_line_date/i18n/hr_HR.po b/sale_order_line_date/i18n/hr_HR.po new file mode 100644 index 00000000000..9fd1ec6e3f3 --- /dev/null +++ b/sale_order_line_date/i18n/hr_HR.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 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_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Prodjani nalog" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "" diff --git a/sale_order_line_date/i18n/hu.po b/sale_order_line_date/i18n/hu.po new file mode 100644 index 00000000000..23c0cdf129b --- /dev/null +++ b/sale_order_line_date/i18n/hu.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 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_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Vevői megrendelés" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "" diff --git a/sale_order_line_date/i18n/it.po b/sale_order_line_date/i18n/it.po new file mode 100644 index 00000000000..2df57aaf4aa --- /dev/null +++ b/sale_order_line_date/i18n/it.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 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_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "Data impegno" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "Data consegna" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +msgid "Sales Order" +msgstr "Ordine di vendita" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "Riga ordine di vendita" diff --git a/sale_order_line_date/i18n/nl.po b/sale_order_line_date/i18n/nl.po new file mode 100644 index 00000000000..dc786989193 --- /dev/null +++ b/sale_order_line_date/i18n/nl.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 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_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Verkooporder" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "" diff --git a/sale_order_line_date/i18n/nl_NL.po b/sale_order_line_date/i18n/nl_NL.po new file mode 100644 index 00000000000..078ebac9131 --- /dev/null +++ b/sale_order_line_date/i18n/nl_NL.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# Translators: +# Peter Hageman , 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: 2020-11-05 09:08+0000\n" +"Last-Translator: Cas Vissers \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" +"X-Generator: Weblate 3.10\n" + +#. module: sale_order_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "Bevestigde datum" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "Leverdatum" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Verkooporder" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "Verkooporderregel" diff --git a/sale_order_line_date/i18n/pt.po b/sale_order_line_date/i18n/pt.po new file mode 100644 index 00000000000..77af19304e8 --- /dev/null +++ b/sale_order_line_date/i18n/pt.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 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_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Ordem de Venda" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "" diff --git a/sale_order_line_date/i18n/pt_BR.po b/sale_order_line_date/i18n/pt_BR.po new file mode 100644 index 00000000000..d7d6f9af9eb --- /dev/null +++ b/sale_order_line_date/i18n/pt_BR.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 2023-11-14 14:36+0000\n" +"Last-Translator: Adriano Prado \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_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "Data do compromisso" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "Data Entrega" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +msgid "Sales Order" +msgstr "Pedido de Venda" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "Linha pedido de venda" diff --git a/sale_order_line_date/i18n/ro.po b/sale_order_line_date/i18n/ro.po new file mode 100644 index 00000000000..5dbf3abf869 --- /dev/null +++ b/sale_order_line_date/i18n/ro.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: odoomrp-wip (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-20 18:11+0000\n" +"PO-Revision-Date: 2015-09-10 16:42+0000\n" +"Last-Translator: <>\n" +"Language-Team: Romanian (http://www.transifex.com/oca/odoomrp-wip-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_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Comandă vânzare" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "Linie comandă vânzare" diff --git a/sale_order_line_date/i18n/sale_order_line_date.pot b/sale_order_line_date/i18n/sale_order_line_date.pot new file mode 100644 index 00000000000..2dd852a1b5e --- /dev/null +++ b/sale_order_line_date/i18n/sale_order_line_date.pot @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +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_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "" diff --git a/sale_order_line_date/i18n/sk.po b/sale_order_line_date/i18n/sk.po new file mode 100644 index 00000000000..54e8a8cbcc5 --- /dev/null +++ b/sale_order_line_date/i18n/sk.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Objednávka predaja" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "" diff --git a/sale_order_line_date/i18n/sl.po b/sale_order_line_date/i18n/sl.po new file mode 100644 index 00000000000..b7aa0f95401 --- /dev/null +++ b/sale_order_line_date/i18n/sl.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 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_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Prodajni nalog" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "Postavka prodajnega naloga" diff --git a/sale_order_line_date/i18n/tr.po b/sale_order_line_date/i18n/tr.po new file mode 100644 index 00000000000..cb727483bce --- /dev/null +++ b/sale_order_line_date/i18n/tr.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 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_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Sipariş Emri" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "Satış Siparişi Hattı" diff --git a/sale_order_line_date/i18n/tr_TR.po b/sale_order_line_date/i18n/tr_TR.po new file mode 100644 index 00000000000..e12e7ccef85 --- /dev/null +++ b/sale_order_line_date/i18n/tr_TR.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 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_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Satış emri" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "Sipariş emri satırı " diff --git a/sale_order_line_date/i18n/vi_VN.po b/sale_order_line_date/i18n/vi_VN.po new file mode 100644 index 00000000000..a68f7451fd8 --- /dev/null +++ b/sale_order_line_date/i18n/vi_VN.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 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_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "Đơn hàng Bán" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "" diff --git a/sale_order_line_date/i18n/zh_CN.po b/sale_order_line_date/i18n/zh_CN.po new file mode 100644 index 00000000000..b02c4d6305c --- /dev/null +++ b/sale_order_line_date/i18n/zh_CN.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_order_line_date +# +# 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: 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_line_date +#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document +msgid "Commitment Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date +msgid "Delivery Date" +msgstr "" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order +#, fuzzy +msgid "Sales Order" +msgstr "销售订单" + +#. module: sale_order_line_date +#: model:ir.model,name:sale_order_line_date.model_sale_order_line +msgid "Sales Order Line" +msgstr "" diff --git a/sale_order_line_date/models/__init__.py b/sale_order_line_date/models/__init__.py new file mode 100644 index 00000000000..2d7ee6c3dc7 --- /dev/null +++ b/sale_order_line_date/models/__init__.py @@ -0,0 +1,2 @@ +from . import sale_order +from . import sale_order_line diff --git a/sale_order_line_date/models/sale_order.py b/sale_order_line_date/models/sale_order.py new file mode 100644 index 00000000000..4cc00a81838 --- /dev/null +++ b/sale_order_line_date/models/sale_order.py @@ -0,0 +1,25 @@ +# © 2016 OdooMRP team +# © 2016 AvanzOSC +# © 2016 Serv. Tecnol. Avanzados - Pedro M. Baeza +# © 2016 ForgeFlow S.L. (https://forgeflow.com) +# Copyright 2017 Serpent Consulting Services Pvt. Ltd. +# Copyright 2018 Camptocamp SA +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) + +from odoo import api, models + + +class SaleOrder(models.Model): + _inherit = "sale.order" + + @api.onchange("commitment_date") + def _onchange_commitment_date(self): + """ + Update empty commitment date order lines with commitment date from sale order + """ + result = super()._onchange_commitment_date() or {} + if "warning" not in result: + for line in self.order_line: + if not line.commitment_date: + line.commitment_date = self.commitment_date + return result diff --git a/sale_order_line_date/models/sale_order_line.py b/sale_order_line_date/models/sale_order_line.py new file mode 100644 index 00000000000..2f715effc13 --- /dev/null +++ b/sale_order_line_date/models/sale_order_line.py @@ -0,0 +1,43 @@ +# © 2016 OdooMRP team +# © 2016 AvanzOSC +# © 2016 Serv. Tecnol. Avanzados - Pedro M. Baeza +# © 2016 ForgeFlow S.L. (https://forgeflow.com) +# Copyright 2017 Serpent Consulting Services Pvt. Ltd. +# Copyright 2018 Camptocamp SA +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) + +from datetime import timedelta + +from odoo import fields, models + + +class SaleOrderLine(models.Model): + _inherit = "sale.order.line" + + commitment_date = fields.Datetime("Delivery Date") + + def _prepare_procurement_values(self, group_id=False): + vals = super()._prepare_procurement_values(group_id) + # has ensure_one already + if self.commitment_date: + vals.update( + { + "date_planned": self.commitment_date + - timedelta(days=self.order_id.company_id.security_lead), + "date_deadline": self.commitment_date, + } + ) + return vals + + def write(self, vals): + res = super().write(vals) + moves_to_upd = set() + if "commitment_date" in vals: + for move in self.move_ids: + if move.state not in ["cancel", "done"]: + moves_to_upd.add(move.id) + if moves_to_upd: + self.env["stock.move"].browse(moves_to_upd).write( + {"date_deadline": vals.get("commitment_date")} + ) + return res diff --git a/sale_order_line_date/pyproject.toml b/sale_order_line_date/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/sale_order_line_date/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/sale_order_line_date/readme/CONTRIBUTORS.md b/sale_order_line_date/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..73c2a3e0c1f --- /dev/null +++ b/sale_order_line_date/readme/CONTRIBUTORS.md @@ -0,0 +1,13 @@ +- Oihane Crucelaegui \<\> +- Esther Martín \<\> +- Pedro M. Baeza \<\> +- Ana Juaristi \<\> +- Jordi Ballester \<\> +- Aaron Henriquez \<\> +- Serpent Consulting Services Pvt. Ltd. \<\> +- Francesco Apruzzese \<\> +- Mykhailo Panarin \<\> +- Open-Net Sàrl \<\> +- Miquel Raïch \<\> +- Moaad Bourhim \<\> +- Bernat Puig \<\> diff --git a/sale_order_line_date/readme/DESCRIPTION.md b/sale_order_line_date/readme/DESCRIPTION.md new file mode 100644 index 00000000000..7626565d288 --- /dev/null +++ b/sale_order_line_date/readme/DESCRIPTION.md @@ -0,0 +1,4 @@ +This module adds a commitment date to each sale order line and propagate +it to stock moves and pickings. The commitment date of the whole sale +order is computed based on each sale order line date and the sale order +shipping policy. It can't be modified. diff --git a/sale_order_line_date/readme/USAGE.md b/sale_order_line_date/readme/USAGE.md new file mode 100644 index 00000000000..a95b6c09211 --- /dev/null +++ b/sale_order_line_date/readme/USAGE.md @@ -0,0 +1,2 @@ +Create a Quotation or a Sales Order and it fills the requested date in +the sale order line diff --git a/sale_order_line_date/reports/sale_order_report.xml b/sale_order_line_date/reports/sale_order_report.xml new file mode 100644 index 00000000000..43d4b02359c --- /dev/null +++ b/sale_order_line_date/reports/sale_order_report.xml @@ -0,0 +1,19 @@ + + + + diff --git a/sale_order_line_date/static/description/icon.png b/sale_order_line_date/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/sale_order_line_date/static/description/icon.png differ diff --git a/sale_order_line_date/static/description/index.html b/sale_order_line_date/static/description/index.html new file mode 100644 index 00000000000..dfba69b5912 --- /dev/null +++ b/sale_order_line_date/static/description/index.html @@ -0,0 +1,443 @@ + + + + + +Sale Order Line Date + + + +
+

Sale Order Line Date

+ + +

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

+

This module adds a commitment date to each sale order line and propagate +it to stock moves and pickings. The commitment date of the whole sale +order is computed based on each sale order line date and the sale order +shipping policy. It can’t be modified.

+

Table of contents

+ +
+

Usage

+

Create a Quotation or a Sales Order and it fills the requested date in +the sale order line

+
+
+

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

+
    +
  • OdooMRP team
  • +
  • AvanzOSC
  • +
  • Serv. Tecnol. Avanzados - Pedro M. Baeza
  • +
+
+
+

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_date/tests/__init__.py b/sale_order_line_date/tests/__init__.py new file mode 100644 index 00000000000..96149d2f9fb --- /dev/null +++ b/sale_order_line_date/tests/__init__.py @@ -0,0 +1 @@ +from . import test_sale_order_line_date diff --git a/sale_order_line_date/tests/test_sale_order_line_date.py b/sale_order_line_date/tests/test_sale_order_line_date.py new file mode 100644 index 00000000000..55a36271f3e --- /dev/null +++ b/sale_order_line_date/tests/test_sale_order_line_date.py @@ -0,0 +1,168 @@ +# © 2016 OdooMRP team +# © 2016 AvanzOSC +# © 2016 Serv. Tecnol. Avanzados - Pedro M. Baeza +# © 2016-22 ForgeFlow S.L. (https://forgeflow.com) +# Copyright 2017 Serpent Consulting Services Pvt. Ltd. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +import datetime + +from odoo import fields +from odoo.tests.common import TransactionCase + + +class TestSaleOrderLineDates(TransactionCase): + @classmethod + def setUpClass(cls): + """Setup a Sale Order with 4 lines.""" + super().setUpClass() + customer = cls.env.ref("base.res_partner_3") + cls.company = cls.env.ref("base.main_company") + cls.company.security_lead = 1 + + price = 100.0 + qty = 5 + product_id = cls.env.ref("product.product_product_7") + cls.today = fields.Datetime.now() + cls.dt1 = cls.today + datetime.timedelta(days=9) + cls.dt2 = cls.today + datetime.timedelta(days=10) + cls.dt3 = cls.today + datetime.timedelta(days=3) + cls.sale1 = cls._create_sale_order(customer, cls.dt2) + cls.sale_line1 = cls._create_sale_order_line( + cls.sale1, product_id, qty, price, cls.dt1 + ) + cls.sale_line2 = cls._create_sale_order_line( + cls.sale1, product_id, qty, price, cls.dt2 + ) + cls.sale_line3 = cls._create_sale_order_line( + cls.sale1, product_id, qty, price, None + ) + cls.sale2 = cls._create_sale_order(customer, cls.dt2) + cls.sale_line4 = cls._create_sale_order_line( + cls.sale2, product_id, qty, price, cls.dt3 + ) + cls.sale_line5 = cls._create_sale_order_line( + cls.sale2, product_id, qty, price, cls.dt2 + ) + cls.sale_line6 = cls._create_sale_order_line( + cls.sale2, product_id, qty, price, cls.dt1 + ) + + @classmethod + def _create_sale_order(cls, customer, date): + sale = cls.env["sale.order"].create( + { + "partner_id": customer.id, + "partner_invoice_id": customer.id, + "partner_shipping_id": customer.id, + "commitment_date": date, + "picking_policy": "direct", + } + ) + return sale + + @classmethod + def _create_sale_order_line(cls, sale, product, qty, price, date): + sale_line = cls.env["sale.order.line"].create( + { + "product_id": product.id, + "name": "cool product", + "order_id": sale.id, + "price_unit": price, + "product_uom_qty": qty, + "commitment_date": date, + } + ) + return sale_line + + def _assert_equal_dates(self, date1, date2): + if isinstance(date1, datetime.datetime): + date1 = date1.date() + if isinstance(date2, datetime.datetime): + date2 = date2.date() + self.assertEqual(date1, date2) + + def test_01_so_commitment_dates(self): + """Test if commitment date in sale_order_line fills + with SO commitment_date only when is empty""" + self.assertEqual(self.sale_line3.commitment_date, False) + self.assertEqual(self.sale1.commitment_date, self.dt2) + self.sale1.write({"commitment_date": self.dt3}) + self.sale1._onchange_commitment_date() + self.assertEqual(self.sale_line1.commitment_date, self.dt1) + self.assertEqual(self.sale_line2.commitment_date, self.dt2) + self.assertEqual(self.sale_line3.commitment_date, self.dt3) + + def test_02_shipping_policies(self): + """Test if dates are propagated correctly taking into + account Shipping Policy""" + self.sale1.action_confirm() + picking = self.sale1.picking_ids + self.assertEqual(len(picking), 1) + # it should be the earliest (3 line commitment_date is not set) -> dt1 + self.assertEqual(picking.scheduled_date, self.dt1 - datetime.timedelta(days=1)) + self.assertEqual(picking.date_deadline, self.dt1) + self.assertEqual(self.sale2.picking_policy, "direct") + self.sale2.picking_policy = "one" + self.sale2.action_confirm() + picking = self.sale2.picking_ids + self.assertEqual(len(picking), 1) + # It should be the latest -> dt2 + self.assertEqual(picking.scheduled_date, self.dt2 - datetime.timedelta(days=1)) + self.assertEqual(picking.date_deadline, self.dt2) + # security_lead 1 day. + self._assert_equal_dates( + self.sale_line4.commitment_date - datetime.timedelta(days=1), + self.sale_line4.move_ids.date, + ) + self._assert_equal_dates( + self.sale_line4.commitment_date, self.sale_line4.move_ids.date_deadline + ) + self._assert_equal_dates( + self.sale_line5.commitment_date - datetime.timedelta(days=1), + self.sale_line5.move_ids.date, + ) + self._assert_equal_dates( + self.sale_line5.commitment_date, self.sale_line5.move_ids.date_deadline + ) + self._assert_equal_dates( + self.sale_line6.commitment_date - datetime.timedelta(days=1), + self.sale_line6.move_ids.date, + ) + self._assert_equal_dates( + self.sale_line6.commitment_date, self.sale_line6.move_ids.date_deadline + ) + + def test_03_line_commitment_date_picking_propagation(self): + """Test if dates are propagated correctly in stock moves""" + self.sale1.write({"commitment_date": self.dt1}) + self.sale1._onchange_commitment_date() + self._assert_equal_dates(self.sale_line3.commitment_date, self.dt1) + self.sale1.action_confirm() + # security_lead 1 day. + self._assert_equal_dates( + self.sale_line1.commitment_date - datetime.timedelta(days=1), + self.sale_line1.move_ids.date, + ) + self._assert_equal_dates( + self.sale_line1.commitment_date, self.sale_line1.move_ids.date_deadline + ) + self._assert_equal_dates( + self.sale_line2.commitment_date - datetime.timedelta(days=1), + self.sale_line2.move_ids.date, + ) + self._assert_equal_dates( + self.sale_line2.commitment_date, self.sale_line2.move_ids.date_deadline + ) + self._assert_equal_dates( + self.sale_line3.commitment_date - datetime.timedelta(days=1), + self.sale_line3.move_ids.date, + ) + self._assert_equal_dates( + self.sale_line3.commitment_date, self.sale_line3.move_ids.date_deadline + ) + # Test line date change after confirmation + self.sale_line1.write({"commitment_date": self.dt2}) + self._assert_equal_dates( + self.sale_line1.commitment_date, self.sale_line1.move_ids.date_deadline + ) diff --git a/sale_order_line_date/views/sale_order_view.xml b/sale_order_line_date/views/sale_order_view.xml new file mode 100644 index 00000000000..f8250af3d25 --- /dev/null +++ b/sale_order_line_date/views/sale_order_view.xml @@ -0,0 +1,37 @@ + + + + sale.order.commitment.date.form + sale.order + + + + {'default_commitment_date':commitment_date} + + + + + + + + + + + sale.order.line.ext.tree + sale.order.line + + + + + + + +