diff --git a/sale_start_end_dates/README.rst b/sale_start_end_dates/README.rst new file mode 100644 index 00000000000..74777e0f152 --- /dev/null +++ b/sale_start_end_dates/README.rst @@ -0,0 +1,96 @@ +==================== +Sale Start End Dates +==================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:00f45fdd23400a61c07c608305731b37a68342eaafdd8cb6d13a5991093b31f6 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/18.0/sale_start_end_dates + :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-18-0/sale-workflow-18-0-sale_start_end_dates + :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=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds the fields *Start Date* and *End Date* on sale order +lines (requied fields when the product has the *Must Have Start and End +Dates* property). You can also define a *Default Start Date* and +*Default End Date* on the sale order; when set, these dates will be used +by default on new sale order lines. Upon invoice creation, the values of +the start/end dates of the sale order line are copied to the start/end +dates of invoice lines. + +This module is a technical module: it is designed to be used with other +modules such as the *sale_rental* module. + +**Table of contents** + +.. contents:: + :local: + +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 +* Sodexis + +Contributors +------------ + +- Alexis de Lattre +- Sodexis +- Serpent Consulting Services Pvt. Ltd. + +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-alexis-via| image:: https://github.com/alexis-via.png?size=40px + :target: https://github.com/alexis-via + :alt: alexis-via + +Current `maintainer `__: + +|maintainer-alexis-via| + +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_start_end_dates/__init__.py b/sale_start_end_dates/__init__.py new file mode 100644 index 00000000000..55ec7fc9ac7 --- /dev/null +++ b/sale_start_end_dates/__init__.py @@ -0,0 +1,2 @@ +from . import models +from . import reports diff --git a/sale_start_end_dates/__manifest__.py b/sale_start_end_dates/__manifest__.py new file mode 100644 index 00000000000..48117421519 --- /dev/null +++ b/sale_start_end_dates/__manifest__.py @@ -0,0 +1,22 @@ +# Copyright 2014-2021 Akretion France (http://www.akretion.com) +# @author Alexis de Lattre +# Copyright 2016-2019 Sodexis (http://sodexis.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Sale Start End Dates", + "version": "18.0.1.0.0", + "category": "Sales", + "license": "AGPL-3", + "summary": "Adds start date and end date on sale order lines", + "author": "Akretion, Sodexis, Odoo Community Association (OCA)", + "maintainers": ["alexis-via"], + "website": "https://github.com/OCA/sale-workflow", + "depends": ["account_invoice_start_end_dates", "sale"], + "data": [ + "views/sale_order.xml", + "views/sale_order_line.xml", + "reports/sale_report.xml", + ], + "installable": True, +} diff --git a/sale_start_end_dates/i18n/ca.po b/sale_start_end_dates/i18n/ca.po new file mode 100644 index 00000000000..c39de89deb9 --- /dev/null +++ b/sale_start_end_dates/i18n/ca.po @@ -0,0 +1,120 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2017-05-17 02:40+0000\n" +"Last-Translator: OCA Transbot , 2017\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" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línia de comanda de vendes" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Comandes de venda" diff --git a/sale_start_end_dates/i18n/de.po b/sale_start_end_dates/i18n/de.po new file mode 100644 index 00000000000..01730407628 --- /dev/null +++ b/sale_start_end_dates/i18n/de.po @@ -0,0 +1,152 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2017-05-17 02:40+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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "Vorgabe-Enddatum" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "Vorgabe-Anfangsdatum" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "Enddatum" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "Fehlendes Enddatum in Auftragsposition des Produkts '%s'." + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "Fehlendes Anfangsdatum in Auftragsposition des Produkts '%s'." + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "Anzahl Tage" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "Auftragsposition" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "Anfangsdatum" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, fuzzy, python-format +msgid "Wrong number of days" +msgstr "Anzahl Tage" + +#, fuzzy, python-format +#~| msgid "" +#~| "Default Start Date should be before or be the same as Default End Date " +#~| "for sale order %s" +#~ msgid "" +#~ "Default Start Date should be before or be the same as Default End Date " +#~ "for sale order '%s'." +#~ msgstr "" +#~ "Vorgabe-Anfangsdatum muss im Auftrag %s vor ooder am Enddatum liegen" + +#~ msgid "Must Have Start and End Dates" +#~ msgstr "Muss Anfangs- und Enddatum haben" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Verkaufsauftrag" + +#, python-format +#~ msgid "" +#~ "Start Date should be before or be the same as End Date for sale order " +#~ "line with Product '%s'." +#~ msgstr "" +#~ "In der Auftragsposition zum Produkt %s muss das Anfangsdatum vor oder am " +#~ "Enddatum liegen." + +#~ msgid "Missing number of days for sale order line with Product '%s'." +#~ msgstr "Fehlende Anzahl Tage in Auftragsposition des Produkts '%s'." + +#~ msgid "" +#~ "On the sale order line with Product '%s', there are %d days between the " +#~ "Start Date (%s) and the End Date (%s), but the number of days field has a " +#~ "value of %d days." +#~ msgstr "" +#~ "In Auftragsposition des Produkts '%s' liegen %d Tage zwischen Anfangs- " +#~ "(%s) und Enddatum (%s), das Anzahl Tage -Feld weist jedoch %d Tage aus." diff --git a/sale_start_end_dates/i18n/el_GR.po b/sale_start_end_dates/i18n/el_GR.po new file mode 100644 index 00000000000..43905c46add --- /dev/null +++ b/sale_start_end_dates/i18n/el_GR.po @@ -0,0 +1,121 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2017-05-17 02:40+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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Εντολή Πώλησης" diff --git a/sale_start_end_dates/i18n/es.po b/sale_start_end_dates/i18n/es.po new file mode 100644 index 00000000000..d45695d9ddf --- /dev/null +++ b/sale_start_end_dates/i18n/es.po @@ -0,0 +1,159 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "Fecha final por defecto" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "Fecha de inicio por defecto" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" +"La fecha de inicio por defecto (%(start_date)s) debe ser anterior o igual a " +"la fecha final por defecto (%(end_date)s) para el pedido de venta '%(name)s'." + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "Fecha Final" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" +"Si está opción está activa, el usuario tendrá que introducir una fecha de " +"inicio y final en las líneas de facturación que tengan este producto." + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" +"Falta la fecha final para la línea de pedido de venta con el producto '%s'." + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" +"Falta la fecha de inicio de la línea de pedido de venta con el producto '%s'." + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "Debe tener fechas de Inicio/Finalización" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "Número de días" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" +"En la línea de pedido de venta con el producto '%(product_name)s', el número " +"de días es negativo (%(number_of_days)s) ; esto no está permitido. El número " +"de días se ha forzado a 1." + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "Orden de Venta" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línea de pedido de venta" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "fecha de inicio" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" +"La fecha inicial (%(start_date)s) debe ser anterior o igual a la fecha final " +"(%(end_date)s) para la línea de pedido de venta con el producto \"" +"%(product_name)s\"." + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "Número incorrecto de días" + +#, python-format +#~ msgid "" +#~ "Default Start Date should be before or be the same as Default End Date " +#~ "for sale order '%s'." +#~ msgstr "" +#~ "La fecha de inicio predeterminada debe ser anterior o igual a la fecha de " +#~ "finalización predeterminada para el pedido de venta '%s'." + +#~ msgid "Must Have Start and End Dates" +#~ msgstr "Debe tener fecha de inicio y de fin" + +#, python-format +#~ msgid "" +#~ "On sale order line with product '%s', the number of days is negative " +#~ "(%d) ; this is not allowed. The number of days has been forced to 1." +#~ msgstr "" +#~ "En la línea de pedido de venta con el producto '%s', el número de días es " +#~ "negativo (%d) ; esto no está permitido. El número de días se ha forzado a " +#~ "1." + +#~ msgid "Sale Order" +#~ msgstr "Orden de venta" + +#, python-format +#~ msgid "" +#~ "Start Date should be before or be the same as End Date for sale order " +#~ "line with Product '%s'." +#~ msgstr "" +#~ "La fecha de inicio debe ser anterior o igual a la fecha final para la " +#~ "línea de pedido de venta con el producto '%s'." diff --git a/sale_start_end_dates/i18n/es_ES.po b/sale_start_end_dates/i18n/es_ES.po new file mode 100644 index 00000000000..4b9bbe607e1 --- /dev/null +++ b/sale_start_end_dates/i18n/es_ES.po @@ -0,0 +1,121 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2017-05-17 02:40+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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Pedido de venta" diff --git a/sale_start_end_dates/i18n/es_VE.po b/sale_start_end_dates/i18n/es_VE.po new file mode 100644 index 00000000000..c0a19e7f1ed --- /dev/null +++ b/sale_start_end_dates/i18n/es_VE.po @@ -0,0 +1,121 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2017-05-17 02:40+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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línea de pedido de venta" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Pedidos de venta" diff --git a/sale_start_end_dates/i18n/fi.po b/sale_start_end_dates/i18n/fi.po new file mode 100644 index 00000000000..d968e659bdf --- /dev/null +++ b/sale_start_end_dates/i18n/fi.po @@ -0,0 +1,120 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: sale-workflow (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-09-09 12:27+0000\n" +"PO-Revision-Date: 2015-09-03 07:11+0000\n" +"Last-Translator: <>\n" +"Language-Team: Finnish (http://www.transifex.com/oca/OCA-sale-workflow-8-0/" +"language/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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Myyntitilaus" diff --git a/sale_start_end_dates/i18n/fr.po b/sale_start_end_dates/i18n/fr.po new file mode 100644 index 00000000000..35dffe6a9ac --- /dev/null +++ b/sale_start_end_dates/i18n/fr.po @@ -0,0 +1,124 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-06-20 10:09+0000\n" +"PO-Revision-Date: 2023-06-20 10:10+0000\n" +"Last-Translator: Alexis de Lattre \n" +"Language-Team: \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "Date de fin par défaut" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "Date de début par défaut" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" +"La date de début par défaut (%(start_date)s) doit être antérieure ou " +"identique à la date de fin par défaut (%(end_date)s) pour la commande client " +"\"%(name)s\"." + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "Date de fin" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" +"Si cette option est activée, l'utilisateur devra saisir une date de début et " +"une date de fin sur les lignes de facture comportant cet article." + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "Date de fin manquante sur la ligne de commande ayant l'article '%s'." + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "Date de début manquante sur la ligne de commande ayant l'article '%s'." + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "Dates de début et de fin obligatoires" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "Nombre de jours" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" +"Sur la ligne de commande ayant l'article '%(product_name)s', le nombre de " +"jours est négatif (%(number_of_days)s) ; ceci n'est pas autorisé. Le nombre " +"de jours a été forcé à 1." + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "Bon de commande" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "Ligne de bons de commande" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "Date de début" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" +"La date de début (%(start_date)s) doit être antérieure ou identique à la " +"date de fin (%(end_date)s) pour la ligne de commande client ayant l'article " +"'%(product_name)s'." + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "Nombre de jours erroné" diff --git a/sale_start_end_dates/i18n/hr.po b/sale_start_end_dates/i18n/hr.po new file mode 100644 index 00000000000..d661a41883f --- /dev/null +++ b/sale_start_end_dates/i18n/hr.po @@ -0,0 +1,121 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2017-05-17 02:40+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "Stavka ponude" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Prodajni nalog" diff --git a/sale_start_end_dates/i18n/hr_HR.po b/sale_start_end_dates/i18n/hr_HR.po new file mode 100644 index 00000000000..b404810f60d --- /dev/null +++ b/sale_start_end_dates/i18n/hr_HR.po @@ -0,0 +1,122 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2017-05-17 02:40+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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Prodjani nalog" diff --git a/sale_start_end_dates/i18n/hu.po b/sale_start_end_dates/i18n/hu.po new file mode 100644 index 00000000000..b163e98dd8f --- /dev/null +++ b/sale_start_end_dates/i18n/hu.po @@ -0,0 +1,120 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2017-05-17 02:40+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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Vevői megrendelés" diff --git a/sale_start_end_dates/i18n/it.po b/sale_start_end_dates/i18n/it.po new file mode 100644 index 00000000000..18caf3aca1a --- /dev/null +++ b/sale_start_end_dates/i18n/it.po @@ -0,0 +1,167 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2023-12-12 11:01+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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "Default Data Fine" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "Default Data Inizio" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" +"La data inizio predefinita (%(start_date)s) deve essere antecedente o uguale " +"alla data fine (%(end_date)s) per lordine di vendita '%(name)s'." + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "Data fine" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" +"Se questa opzione è attiva, l'utente dovrà inserire data inizio e data fine " +"nelle righe fattura che contengono questo prodotto." + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" +"Manca la data di fine nella riga ordine di vendita con il prodotto '%s'." + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" +"Manca la data di inizio per la riga ordine di vendita con il prodotto '%s'." + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "Deve avere le date inizio/fine" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "Numero di giorni" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" +"Nella riga ordine contentene il prodotto '%(product_name)s, il numero di " +"giorni è negativo (%(number_of_days)s) ; questo non è permesso. Il numero di " +"giorni è stato impostato a 1." + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "Ordine di vendita" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "Riga ordine di vendita" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "Data inizio" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" +"La data inizio (%(start_date)s) deve essere antecedente o uguale alla data " +"fine (%(end_date)s) per l'ordine di vendita con prodotto '%(product_name)s'." + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "Numero di giorni errato" + +#, fuzzy, python-format +#~| msgid "" +#~| "Default Start Date should be before or be the same as Default End Date " +#~| "for sale order %s" +#~ msgid "" +#~ "Default Start Date should be before or be the same as Default End Date " +#~ "for sale order '%s'." +#~ msgstr "" +#~ "La data di inizio deve essere inferiore o uguale alla data di fine per " +#~ "l'ordine %s." + +#~ msgid "Must Have Start and End Dates" +#~ msgstr "Necessario Data Inizio e Fine" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Ordini vendita" + +#, python-format +#~ msgid "" +#~ "Start Date should be before or be the same as End Date for sale order " +#~ "line with Product '%s'." +#~ msgstr "" +#~ "La data di inizio deve essere antecedente o uguale alla data di fine per " +#~ "il prodotto %s." + +#~ msgid "Missing number of days for sale order line with Product '%s'." +#~ msgstr "" +#~ "Mancano i numeri di giorni nell'ordine di vendita per il prodotto '%s'" + +#~ msgid "" +#~ "On the sale order line with Product '%s', there are %d days between the " +#~ "Start Date (%s) and the End Date (%s), but the number of days field has a " +#~ "value of %d days." +#~ msgstr "" +#~ "L'ordine di vendita del prodotto '%s', ha un %d giorni tra la data di " +#~ "inizio (%s) e quella di fine (%s), ma il campo \"numero di giorni\" ha un " +#~ "valore di %d." diff --git a/sale_start_end_dates/i18n/nl.po b/sale_start_end_dates/i18n/nl.po new file mode 100644 index 00000000000..9fe7f6fbec2 --- /dev/null +++ b/sale_start_end_dates/i18n/nl.po @@ -0,0 +1,120 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2017-05-17 02:40+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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Verkooporder" diff --git a/sale_start_end_dates/i18n/nl_NL.po b/sale_start_end_dates/i18n/nl_NL.po new file mode 100644 index 00000000000..936611af2be --- /dev/null +++ b/sale_start_end_dates/i18n/nl_NL.po @@ -0,0 +1,158 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# 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: 2018-06-21 16:45+0000\n" +"Last-Translator: Thomas Pot \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.0.1\n" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "Standaard Einddatum" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "Standaard Startdatum" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "Einddatum" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" +"Als deze optie actief is, moet de gebruiker een startdatum en een einddatum " +"invoeren op de factuurregels die dit product bevatten." + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "Ontbrekende einddatum voor verkooporderregel met product '%s'." + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "Ontbrekende begindatum voor verkooporderregel met product '%s'." + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "Aantal dagen" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "Verkooporderregel" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "Startdatum" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, fuzzy, python-format +msgid "Wrong number of days" +msgstr "Aantal dagen" + +#, fuzzy, python-format +#~| msgid "" +#~| "Default Start Date should be before or be the same as Default End Date " +#~| "for sale order %s" +#~ msgid "" +#~ "Default Start Date should be before or be the same as Default End Date " +#~ "for sale order '%s'." +#~ msgstr "" +#~ "Standaard startdatum moet eerder of gelijk zijn als de standaard " +#~ "einddatum voor de verkooporder %s" + +#~ msgid "Must Have Start and End Dates" +#~ msgstr "Moet begin- en einddatums hebben" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Verkooporder" + +#, python-format +#~ msgid "" +#~ "Start Date should be before or be the same as End Date for sale order " +#~ "line with Product '%s'." +#~ msgstr "" +#~ "Startdatum moet vóór of gelijk zijn aan einddatum voor de " +#~ "verkooporderregel met Product '%s'." + +#~ msgid "Missing number of days for sale order line with Product '%s'." +#~ msgstr "Ontbrekend aantal dagen voor verkooporderregel met product '%s'." + +#~ msgid "" +#~ "On the sale order line with Product '%s', there are %d days between the " +#~ "Start Date (%s) and the End Date (%s), but the number of days field has a " +#~ "value of %d days." +#~ msgstr "" +#~ "Op de verkooporderregel met Product '%s' zijn er %d dagen tussen de " +#~ "startdatum (%s) en de einddatum (%s), maar het veld aantal dagen heeft " +#~ "een waarde van %d dagen." diff --git a/sale_start_end_dates/i18n/pt.po b/sale_start_end_dates/i18n/pt.po new file mode 100644 index 00000000000..ee5ecbe8a3a --- /dev/null +++ b/sale_start_end_dates/i18n/pt.po @@ -0,0 +1,119 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2020-03-23 14:13+0000\n" +"Last-Translator: Pedro Castro Silva \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" +"X-Generator: Weblate 3.10\n" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "Linha de Encomenda de Venda" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "Data de Início" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "Número de dias errado" + +#~ msgid "Sale Order" +#~ msgstr "Encomenda de Venda" diff --git a/sale_start_end_dates/i18n/pt_BR.po b/sale_start_end_dates/i18n/pt_BR.po new file mode 100644 index 00000000000..8726b43d67e --- /dev/null +++ b/sale_start_end_dates/i18n/pt_BR.po @@ -0,0 +1,121 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2017-05-17 02:40+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/pt_BR/)\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "Linha Pedido de Venda" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Pedido de Venda" diff --git a/sale_start_end_dates/i18n/ro.po b/sale_start_end_dates/i18n/ro.po new file mode 100644 index 00000000000..88cdd4e965f --- /dev/null +++ b/sale_start_end_dates/i18n/ro.po @@ -0,0 +1,121 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2017-05-17 02:40+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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "Linie comandă vânzare" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Comandă vânzare" diff --git a/sale_start_end_dates/i18n/sale_start_end_dates.pot b/sale_start_end_dates/i18n/sale_start_end_dates.pot new file mode 100644 index 00000000000..ae25bfbe1ab --- /dev/null +++ b/sale_start_end_dates/i18n/sale_start_end_dates.pot @@ -0,0 +1,110 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default start date (%(start_date)s) should be before or be the same as " +"default end date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start date (%(start_date)s) should be before or be the same as end date " +"(%(end_date)s) for sale order line with product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" diff --git a/sale_start_end_dates/i18n/sk.po b/sale_start_end_dates/i18n/sk.po new file mode 100644 index 00000000000..15fef776691 --- /dev/null +++ b/sale_start_end_dates/i18n/sk.po @@ -0,0 +1,120 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# 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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Objednávka predaja" diff --git a/sale_start_end_dates/i18n/sl.po b/sale_start_end_dates/i18n/sl.po new file mode 100644 index 00000000000..fd49957a79d --- /dev/null +++ b/sale_start_end_dates/i18n/sl.po @@ -0,0 +1,158 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2017-05-17 02:40+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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "Privzeti končni datum" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "Privzeti začetni datum" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "Končni datum" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" +"Manjkajoči končni datum na postavki prodajnega naloga s proizvodom '%s'." + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" +"Manjkajoči začetni datum na postavki prodajnega naloga s proizvodom '%s'." + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "Število dni" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "Postavka prodajnega naloga" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "Začetni datum" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, fuzzy, python-format +msgid "Wrong number of days" +msgstr "Število dni" + +#, fuzzy, python-format +#~| msgid "" +#~| "Default Start Date should be before or be the same as Default End Date " +#~| "for sale order %s" +#~ msgid "" +#~ "Default Start Date should be before or be the same as Default End Date " +#~ "for sale order '%s'." +#~ msgstr "" +#~ "Privzeti začetni datum na prodajnem nalogu %s mora biti pred (ali enak) " +#~ "privzetim končnim datumom" + +#~ msgid "Must Have Start and End Dates" +#~ msgstr "Zahteva se začetni in končni datum" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Prodajni nalog" + +#, python-format +#~ msgid "" +#~ "Start Date should be before or be the same as End Date for sale order " +#~ "line with Product '%s'." +#~ msgstr "" +#~ "Začetni datum mora biti na postavki prodajnega naloga s proizvodom '%s' " +#~ "pred končnim datumom (ali enak)." + +#~ msgid "Missing number of days for sale order line with Product '%s'." +#~ msgstr "" +#~ "Manjkajoče število dni na postavki prodajnega naloga s proizvodom '%s'." + +#~ msgid "" +#~ "On the sale order line with Product '%s', there are %d days between the " +#~ "Start Date (%s) and the End Date (%s), but the number of days field has a " +#~ "value of %d days." +#~ msgstr "" +#~ "Na postavki prodajnega naloga s proizvodom '%s' je %d dni med začetnim " +#~ "datumom (%s) in končnim datumom (%s), a polje število dni ima vrednost %d " +#~ "dni." diff --git a/sale_start_end_dates/i18n/tr.po b/sale_start_end_dates/i18n/tr.po new file mode 100644 index 00000000000..a01e39c59b2 --- /dev/null +++ b/sale_start_end_dates/i18n/tr.po @@ -0,0 +1,120 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2017-05-17 02:40+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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "Satış Siparişi Hattı" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Sipariş Emri" diff --git a/sale_start_end_dates/i18n/tr_TR.po b/sale_start_end_dates/i18n/tr_TR.po new file mode 100644 index 00000000000..9f417394be1 --- /dev/null +++ b/sale_start_end_dates/i18n/tr_TR.po @@ -0,0 +1,121 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2017-05-17 02:40+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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "Sipariş emri satırı " + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Satış emri" diff --git a/sale_start_end_dates/i18n/vi_VN.po b/sale_start_end_dates/i18n/vi_VN.po new file mode 100644 index 00000000000..4f9ce764144 --- /dev/null +++ b/sale_start_end_dates/i18n/vi_VN.po @@ -0,0 +1,121 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-17 02:40+0000\n" +"PO-Revision-Date: 2017-05-17 02:40+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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "Đơn hàng Bán" diff --git a/sale_start_end_dates/i18n/zh_CN.po b/sale_start_end_dates/i18n/zh_CN.po new file mode 100644 index 00000000000..fec40cb6070 --- /dev/null +++ b/sale_start_end_dates/i18n/zh_CN.po @@ -0,0 +1,120 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_start_end_dates +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: sale-workflow (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-09-09 12:27+0000\n" +"PO-Revision-Date: 2015-09-03 07:11+0000\n" +"Last-Translator: <>\n" +"Language-Team: Chinese (China) (http://www.transifex.com/oca/OCA-sale-" +"workflow-8-0/language/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_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_end_date +msgid "Default End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__default_start_date +msgid "Default Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Default Start Date (%(start_date)s) should be before or be the same as " +"Default End Date (%(end_date)s) for sale order '%(name)s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__end_date +msgid "End Date" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "" +"If this option is active, the user will have to enter a Start Date and an " +"End Date on the invoice lines that have this product." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing End Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Missing Start Date for sale order line with Product '%s'." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates +msgid "Must Have Start/End Dates" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__number_of_days +msgid "Number of Days" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"On sale order line with product '%(product_name)s', the number of days is " +"negative (%(number_of_days)s) ; this is not allowed. The number of days has " +"been forced to 1." +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order +msgid "Sales Order" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model,name:sale_start_end_dates.model_sale_order_line +msgid "Sales Order Line" +msgstr "" + +#. module: sale_start_end_dates +#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date +msgid "Start Date" +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "" +"Start Date (%(start_date)s) should be before or be the same as End Date " +"(%(end_date)s) for sale order line with Product '%(product_name)s'." +msgstr "" + +#. module: sale_start_end_dates +#. odoo-python +#: code:addons/sale_start_end_dates/models/sale_order.py:0 +#, python-format +msgid "Wrong number of days" +msgstr "" + +#, fuzzy +#~| msgid "Sales Order" +#~ msgid "Sale Order" +#~ msgstr "销售订单" diff --git a/sale_start_end_dates/models/__init__.py b/sale_start_end_dates/models/__init__.py new file mode 100644 index 00000000000..6aacb753131 --- /dev/null +++ b/sale_start_end_dates/models/__init__.py @@ -0,0 +1 @@ +from . import sale_order diff --git a/sale_start_end_dates/models/sale_order.py b/sale_start_end_dates/models/sale_order.py new file mode 100644 index 00000000000..81ca00d1528 --- /dev/null +++ b/sale_start_end_dates/models/sale_order.py @@ -0,0 +1,181 @@ +# Copyright 2014-2021 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# Copyright 2016-2021 Sodexis (http://sodexis.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from dateutil.relativedelta import relativedelta + +from odoo import _, api, fields, models +from odoo.exceptions import ValidationError +from odoo.tools.misc import format_date + + +class SaleOrder(models.Model): + _inherit = "sale.order" + + default_start_date = fields.Date( + compute="_compute_default_start_date", readonly=False, store=True + ) + default_end_date = fields.Date( + compute="_compute_default_end_date", readonly=False, store=True + ) + + @api.constrains("default_start_date", "default_end_date") + def _check_default_start_end_dates(self): + for order in self: + if ( + order.default_start_date + and order.default_end_date + and order.default_start_date > order.default_end_date + ): + raise ValidationError( + _( + "Default start date (%(start_date)s) should be before or be " + "the same as default end date (%(end_date)s) " + "for sale order '%(name)s'.", + start_date=format_date(self.env, order.default_start_date), + end_date=format_date(self.env, order.default_end_date), + name=order.display_name, + ) + ) + + @api.depends("default_end_date") + def _compute_default_start_date(self): + for order in self: + if ( + order.default_start_date + and order.default_end_date + and order.default_start_date > order.default_end_date + ): + order.default_start_date = order.default_end_date + + @api.depends("default_start_date") + def _compute_default_end_date(self): + for order in self: + if ( + order.default_start_date + and order.default_end_date + and order.default_start_date > order.default_end_date + ): + order.default_end_date = order.default_start_date + + +class SaleOrderLine(models.Model): + _inherit = "sale.order.line" + + start_date = fields.Date( + compute="_compute_start_date", + store=True, + readonly=False, + ) + end_date = fields.Date( + compute="_compute_end_date", + store=True, + readonly=False, + ) + number_of_days = fields.Integer( + compute="_compute_number_of_days", + inverse="_inverse_number_of_days", + readonly=False, + store=True, + string="Number of Days", + ) + must_have_dates = fields.Boolean(related="product_id.must_have_dates") + + @api.depends("start_date", "end_date") + def _compute_number_of_days(self): + for line in self: + days = False + if line.start_date and line.end_date: + days = (line.end_date - line.start_date).days + 1 + line.number_of_days = days + + @api.onchange("number_of_days") + def _inverse_number_of_days(self): + res = {"warning": {}} + for line in self: + if line.number_of_days < 0: + res["warning"]["title"] = _("Wrong number of days") + res["warning"]["message"] = _( + "On sale order line with product '%(product_name)s', the " + "number of days is negative (%(number_of_days)s) ; this is not " + "allowed. The number of days has been forced to 1.", + product_name=line.product_id.display_name, + number_of_days=line.number_of_days, + ) + line.number_of_days = 1 + if line.start_date: + line.end_date = line.start_date + relativedelta( + days=line.number_of_days - 1 + ) + elif line.end_date: + line.start_date = line.end_date - relativedelta( + days=line.number_of_days - 1 + ) + return res + + @api.constrains("product_id", "start_date", "end_date") + def _check_start_end_dates(self): + for line in self: + if line.product_id.must_have_dates: + if not line.end_date: + raise ValidationError( + _("Missing End Date for sale order line with Product '%s'.") + % (line.product_id.display_name) + ) + if not line.start_date: + raise ValidationError( + _( + "Missing Start Date for sale order line with " + "Product '%s'." + ) + % (line.product_id.display_name) + ) + if line.start_date > line.end_date: + raise ValidationError( + _( + "Start date (%(start_date)s) should be before or " + "be the same as end date (%(end_date)s) for " + "sale order line with product '%(product_name)s'.", + start_date=format_date(self.env, line.start_date), + end_date=format_date(self.env, line.end_date), + product_name=line.product_id.display_name, + ) + ) + + def _prepare_invoice_line(self, **optional_values): + self.ensure_one() + res = super()._prepare_invoice_line(**optional_values) + if not self.display_type and self.must_have_dates: + res.update({"start_date": self.start_date, "end_date": self.end_date}) + return res + + @api.depends("end_date", "product_id") + def _compute_start_date(self): + for line in self: + order = line.order_id + if ( + not line.start_date + and line.product_id.must_have_dates + and order.default_start_date + ): + line.start_date = order.default_start_date + elif line.start_date and not line.product_id.must_have_dates: + line.start_date = False + elif line.end_date and line.start_date and line.start_date > line.end_date: + line.start_date = line.end_date + + @api.depends("start_date", "product_id") + def _compute_end_date(self): + for line in self: + order = line.order_id + if ( + not line.end_date + and line.product_id.must_have_dates + and order.default_end_date + ): + line.end_date = order.default_end_date + elif line.end_date and not line.product_id.must_have_dates: + line.end_date = False + elif line.end_date and line.start_date and line.start_date > line.end_date: + line.end_date = line.start_date diff --git a/sale_start_end_dates/pyproject.toml b/sale_start_end_dates/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/sale_start_end_dates/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/sale_start_end_dates/readme/CONTRIBUTORS.md b/sale_start_end_dates/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..24cd7f7a4c0 --- /dev/null +++ b/sale_start_end_dates/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- Alexis de Lattre \<\> +- Sodexis \<\> +- Serpent Consulting Services Pvt. Ltd. \<\> diff --git a/sale_start_end_dates/readme/DESCRIPTION.md b/sale_start_end_dates/readme/DESCRIPTION.md new file mode 100644 index 00000000000..65dc80f0d5a --- /dev/null +++ b/sale_start_end_dates/readme/DESCRIPTION.md @@ -0,0 +1,10 @@ +This module adds the fields *Start Date* and *End Date* on sale order +lines (requied fields when the product has the *Must Have Start and End +Dates* property). You can also define a *Default Start Date* and +*Default End Date* on the sale order; when set, these dates will be used +by default on new sale order lines. Upon invoice creation, the values of +the start/end dates of the sale order line are copied to the start/end +dates of invoice lines. + +This module is a technical module: it is designed to be used with other +modules such as the *sale_rental* module. diff --git a/sale_start_end_dates/reports/__init__.py b/sale_start_end_dates/reports/__init__.py new file mode 100644 index 00000000000..cd23411b84d --- /dev/null +++ b/sale_start_end_dates/reports/__init__.py @@ -0,0 +1 @@ +from . import sale_report diff --git a/sale_start_end_dates/reports/sale_report.py b/sale_start_end_dates/reports/sale_report.py new file mode 100644 index 00000000000..0708149d15f --- /dev/null +++ b/sale_start_end_dates/reports/sale_report.py @@ -0,0 +1,25 @@ +# Copyright 2024 Akretion France (https://www.akretion.com/) +# @author Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class SaleReport(models.Model): + _inherit = "sale.report" + + start_date = fields.Date(readonly=True) + end_date = fields.Date(readonly=True) + number_of_days = fields.Integer(readonly=True) + + def _select_additional_fields(self): + res = super()._select_additional_fields() + res["start_date"] = "l.start_date" + res["end_date"] = "l.end_date" + res["number_of_days"] = "l.number_of_days" + return res + + def _group_by_sale(self): + sql = super()._group_by_sale() + sql = f"{sql}, l.start_date, l.end_date, l.number_of_days" + return sql diff --git a/sale_start_end_dates/reports/sale_report.xml b/sale_start_end_dates/reports/sale_report.xml new file mode 100644 index 00000000000..b9cde73bd58 --- /dev/null +++ b/sale_start_end_dates/reports/sale_report.xml @@ -0,0 +1,20 @@ + + + + + sale.report + + + + + + + + + + + diff --git a/sale_start_end_dates/static/description/icon.png b/sale_start_end_dates/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/sale_start_end_dates/static/description/icon.png differ diff --git a/sale_start_end_dates/static/description/index.html b/sale_start_end_dates/static/description/index.html new file mode 100644 index 00000000000..5806940db63 --- /dev/null +++ b/sale_start_end_dates/static/description/index.html @@ -0,0 +1,436 @@ + + + + + +Sale Start End Dates + + + +
+

Sale Start End Dates

+ + +

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

+

This module adds the fields Start Date and End Date on sale order +lines (requied fields when the product has the Must Have Start and End +Dates property). You can also define a Default Start Date and +Default End Date on the sale order; when set, these dates will be used +by default on new sale order lines. Upon invoice creation, the values of +the start/end dates of the sale order line are copied to the start/end +dates of invoice lines.

+

This module is a technical module: it is designed to be used with other +modules such as the sale_rental module.

+

Table of contents

+ +
+

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
  • +
  • Sodexis
  • +
+
+
+

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 maintainer:

+

alexis-via

+

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_start_end_dates/tests/__init__.py b/sale_start_end_dates/tests/__init__.py new file mode 100644 index 00000000000..7c008128f36 --- /dev/null +++ b/sale_start_end_dates/tests/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2018 Serpent Consulting Services Pvt. Ltd. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import test_sale_start_end_dates diff --git a/sale_start_end_dates/tests/test_sale_start_end_dates.py b/sale_start_end_dates/tests/test_sale_start_end_dates.py new file mode 100644 index 00000000000..972253322dd --- /dev/null +++ b/sale_start_end_dates/tests/test_sale_start_end_dates.py @@ -0,0 +1,101 @@ +# Copyright (C) 2018 Serpent Consulting Services Pvt. Ltd. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +import datetime + +from odoo.exceptions import ValidationError +from odoo.tests.common import TransactionCase + + +class TestSaleStartEndDates(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) + cls.partner = cls.env["res.partner"].create({"name": "Test Partner"}) + cls.product_id = cls.env["product.product"].create( + { + "name": "Test insurance", + "type": "service", + "must_have_dates": True, + "list_price": 1200, + } + ) + cls.product_no_dates = cls.env["product.product"].create( + { + "name": "My test product", + "type": "service", + "must_have_dates": False, + "list_price": 2400, + } + ) + cls.default_start_date = datetime.datetime.now() + cls.default_end_date = cls.default_start_date + datetime.timedelta(days=9) + cls.so = cls.env["sale.order"].create( + { + "partner_id": cls.partner.id, + "default_start_date": cls.default_start_date, + "default_end_date": cls.default_end_date, + } + ) + cls.order_line = cls.env["sale.order.line"].create( + { + "order_id": cls.so.id, + "product_id": cls.product_id.id, + "product_uom_qty": 2, + "price_unit": cls.product_id.list_price, + "start_date": cls.default_start_date, + "end_date": cls.default_end_date, + } + ) + cls.so.action_confirm() + + def test_default_start_end_date_constraint(self): + with self.assertRaises(ValidationError): + self.so.write( + { + "default_start_date": self.default_end_date, + "default_end_date": self.default_start_date, + } + ) + + def test_compute_start_end_date(self): + new_line = self.env["sale.order.line"].create( + { + "product_id": self.product_id.id, + "name": self.product_id.display_name, + "product_uom_qty": 2, + "product_uom": self.product_id.uom_id.id, + "order_id": self.so.id, + } + ) + self.assertEqual(new_line.start_date, self.so.default_start_date) + self.assertEqual(new_line.end_date, self.so.default_end_date) + + def test_compute_product_no_dates(self): + new_line = self.env["sale.order.line"].create( + { + "product_id": self.product_no_dates.id, + "name": self.product_no_dates.display_name, + "product_uom_qty": 2, + "product_uom": self.product_no_dates.uom_id.id, + "order_id": self.so.id, + } + ) + self.assertFalse(new_line.start_date) + self.assertFalse(new_line.end_date) + + def test_compute_number_of_days(self): + self.assertEqual(self.order_line.number_of_days, 10) + + def test_inverse_number_of_days(self): + self.order_line.number_of_days = 1 + self.assertEqual(self.order_line.start_date, self.order_line.end_date) + self.order_line.number_of_days = -1 + self.assertEqual(self.order_line.number_of_days, 1) + + def test_prepare_invoice_line(self): + invoice_line_vals = self.order_line._prepare_invoice_line() + self.assertEqual(invoice_line_vals["product_id"], self.product_id.id) + self.assertEqual(invoice_line_vals["start_date"], self.order_line.start_date) + self.assertEqual(invoice_line_vals["end_date"], self.order_line.end_date) diff --git a/sale_start_end_dates/views/sale_order.xml b/sale_start_end_dates/views/sale_order.xml new file mode 100644 index 00000000000..ade798e0d78 --- /dev/null +++ b/sale_start_end_dates/views/sale_order.xml @@ -0,0 +1,68 @@ + + + + + start.end.dates.view_order_form + sale.order + + + + + + + + + + + + + + + + + + + + + diff --git a/sale_start_end_dates/views/sale_order_line.xml b/sale_start_end_dates/views/sale_order_line.xml new file mode 100644 index 00000000000..7c0c3ea7c78 --- /dev/null +++ b/sale_start_end_dates/views/sale_order_line.xml @@ -0,0 +1,60 @@ + + + + + sale.order.line + + + + + + + + + + + + sale.order.line + + + + + + + + + + + +