From bc1f045211298f41e67294b6fd564330abeb0e60 Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Tue, 28 Jan 2014 19:39:10 +0100
Subject: [PATCH 01/34] Initial check-in of the rental project.
---
sale_start_end_dates/__init__.py | 23 ++++
sale_start_end_dates/__openerp__.py | 46 +++++++
sale_start_end_dates/i18n/fr.po | 80 +++++++++++
.../i18n/sale_start_end_dates.pot | 80 +++++++++++
sale_start_end_dates/sale.py | 127 ++++++++++++++++++
sale_start_end_dates/sale_view.xml | 32 +++++
6 files changed, 388 insertions(+)
create mode 100644 sale_start_end_dates/__init__.py
create mode 100644 sale_start_end_dates/__openerp__.py
create mode 100644 sale_start_end_dates/i18n/fr.po
create mode 100644 sale_start_end_dates/i18n/sale_start_end_dates.pot
create mode 100644 sale_start_end_dates/sale.py
create mode 100644 sale_start_end_dates/sale_view.xml
diff --git a/sale_start_end_dates/__init__.py b/sale_start_end_dates/__init__.py
new file mode 100644
index 00000000000..e3fa3783da1
--- /dev/null
+++ b/sale_start_end_dates/__init__.py
@@ -0,0 +1,23 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# Sale Start End Dates module for OpenERP
+# Copyright (C) 2014 Akretion (http://www.akretion.com)
+# @author Alexis de Lattre
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from . import sale
diff --git a/sale_start_end_dates/__openerp__.py b/sale_start_end_dates/__openerp__.py
new file mode 100644
index 00000000000..70391f553e7
--- /dev/null
+++ b/sale_start_end_dates/__openerp__.py
@@ -0,0 +1,46 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# Sale Start End Dates module for OpenERP
+# Copyright (C) 2014 Akretion (http://www.akretion.com)
+# @author Alexis de Lattre
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+
+{
+ 'name': 'Sale Start End Dates',
+ 'version': '0.1',
+ 'category': 'Sales Management',
+ 'license': 'AGPL-3',
+ 'summary': 'Adds start date and end date on sale order lines',
+ 'description': """
+Sale Start End Dates
+====================
+
+This module adds start date and end dates on sale order lines. The value of these field is copied to the start date and end date of invoice lines. This module is designed to be used with other modules such as sale_rental.
+
+Please contact Alexis de Lattre from Akretion for any help or question about this module.
+ """,
+ 'author': 'Akretion',
+ 'website': 'http://www.akretion.com',
+ 'depends': ['account_cutoff_prepaid', 'sale'],
+ 'data': [
+ 'sale_view.xml',
+ ],
+ 'installable': True,
+ 'active': False,
+}
diff --git a/sale_start_end_dates/i18n/fr.po b/sale_start_end_dates/i18n/fr.po
new file mode 100644
index 00000000000..15bbc77b9cd
--- /dev/null
+++ b/sale_start_end_dates/i18n/fr.po
@@ -0,0 +1,80 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * sale_start_end_dates
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-02-02 22:31+0000\n"
+"PO-Revision-Date: 2014-02-02 22:31+0000\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
+#: field:sale.order.line,end_date:0
+msgid "End Date"
+msgstr "Date de fin"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:94
+#, python-format
+msgid "Start Date should be before or be the same as End Date."
+msgstr "La date de début doit être antérieure ou égale à la date de fin."
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:47
+#, python-format
+msgid "Missing End Date for sale order line with Description '%s'."
+msgstr "Date de fin manquante sur la ligne de commande ayant pour description '%s'."
+
+#. module: sale_start_end_dates
+#: constraint:sale.order.line:0
+msgid "Error msg in raise"
+msgstr "Error msg in raise"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:46
+#: code:addons/sale_start_end_dates/sale.py:52
+#: code:addons/sale_start_end_dates/sale.py:59
+#, python-format
+msgid "Error:"
+msgstr "Erreur :"
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,must_have_dates:0
+msgid "Must Have Start and End Dates"
+msgstr "Doit avoir une date de début et de fin"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:93
+#, python-format
+msgid "Warning:"
+msgstr "Avertissement :"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:53
+#, python-format
+msgid "Missing Start Date for sale order line with Description '%s'."
+msgstr "Date de début manquante sur la ligne de commande ayant pour description '%s'."
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,start_date:0
+msgid "Start Date"
+msgstr "Date de début"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:60
+#, python-format
+msgid "Start Date should be before or be the same as End Date for sale order line with Description '%s'."
+msgstr "La date de début doit être antérieure ou égale à la date de fin sur la ligne de commande ayant pour description '%s'."
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
+msgid "Sales Order Line"
+msgstr "Ligne de commandes de vente"
+
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..9e9ebefdeee
--- /dev/null
+++ b/sale_start_end_dates/i18n/sale_start_end_dates.pot
@@ -0,0 +1,80 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * sale_start_end_dates
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-02-02 22:30+0000\n"
+"PO-Revision-Date: 2014-02-02 22:30+0000\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
+#: field:sale.order.line,end_date:0
+msgid "End Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:94
+#, python-format
+msgid "Start Date should be before or be the same as End Date."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:47
+#, python-format
+msgid "Missing End Date for sale order line with Description '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: constraint:sale.order.line:0
+msgid "Error msg in raise"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:46
+#: code:addons/sale_start_end_dates/sale.py:52
+#: code:addons/sale_start_end_dates/sale.py:59
+#, python-format
+msgid "Error:"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,must_have_dates:0
+msgid "Must Have Start and End Dates"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:93
+#, python-format
+msgid "Warning:"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:53
+#, python-format
+msgid "Missing Start Date for sale order line with Description '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,start_date:0
+msgid "Start Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:60
+#, python-format
+msgid "Start Date should be before or be the same as End Date for sale order line with Description '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
+msgid "Sales Order Line"
+msgstr ""
+
diff --git a/sale_start_end_dates/sale.py b/sale_start_end_dates/sale.py
new file mode 100644
index 00000000000..77e01396f72
--- /dev/null
+++ b/sale_start_end_dates/sale.py
@@ -0,0 +1,127 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# Sale Start End Dates module for OpenERP
+# Copyright (C) 2014 Akretion (http://www.akretion.com)
+# @author Alexis de Lattre
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see .
+#
+##############################################################################
+
+from openerp.osv import orm, fields
+from openerp.tools.translate import _
+
+
+class sale_order_line(orm.Model):
+ _inherit = 'sale.order.line'
+
+ _columns = {
+ 'start_date': fields.date(
+ 'Start Date',
+ readonly=True, states={'draft': [('readonly', False)]}),
+ 'end_date': fields.date(
+ 'End Date',
+ readonly=True, states={'draft': [('readonly', False)]}),
+ 'must_have_dates': fields.boolean(
+ 'Must Have Start and End Dates',
+ readonly=True, states={'draft': [('readonly', False)]}),
+ }
+
+ def _check_start_end_dates(self, cr, uid, ids):
+ for line in self.browse(cr, uid, ids):
+ if line.start_date and not line.end_date:
+ raise orm.except_orm(
+ _('Error:'),
+ _("Missing End Date for sale order line with "
+ "Description '%s'.")
+ % (line.name))
+ if line.end_date and not line.start_date:
+ raise orm.except_orm(
+ _('Error:'),
+ _("Missing Start Date for sale order line with "
+ "Description '%s'.")
+ % (line.name))
+ if line.end_date and line.start_date and \
+ line.start_date > line.end_date:
+ raise orm.except_orm(
+ _('Error:'),
+ _("Start Date should be before or be the same as "
+ "End Date for sale order line with Description '%s'.")
+ % (line.name))
+ return True
+
+# TODO check must_have_dates on SO validation ? or in constraint ?
+
+ _constraints = [
+ (_check_start_end_dates, "Error msg in raise",
+ ['start_date', 'end_date', 'product_id']),
+ ]
+
+ def _prepare_order_line_invoice_line(
+ self, cr, uid, line, account_id=False, context=None):
+ res = super(sale_order_line, self)._prepare_order_line_invoice_line(
+ cr, uid, line, account_id=account_id, context=context)
+ if line.must_have_dates:
+ res.update({
+ 'start_date': line.start_date,
+ 'end_date': line.end_date,
+ })
+ return res
+
+ def start_end_dates_change(
+ self, cr, uid, ids, start_date, end_date, product_id,
+ product_uom_qty, context=None):
+ '''This function is designed to be inherited'''
+ res = {}
+ if start_date and end_date:
+ if end_date < start_date:
+ # We could have put a raise here
+ # but a warning is fine because we have the constraint
+ res['warning'] = {
+ 'title': _('Warning:'),
+ 'message': _("Start Date should be before or be the "
+ "same as End Date."),
+ }
+ return res
+
+ def product_id_change(
+ self, cr, uid, ids, pricelist, product, qty=0,
+ uom=False, qty_uos=0, uos=False, name='', partner_id=False,
+ lang=False, update_tax=True, date_order=False, packaging=False,
+ fiscal_position=False, flag=False, context=None):
+ res = super(sale_order_line, self).product_id_change(
+ cr, uid, ids, pricelist, product, qty=qty, uom=uom,
+ qty_uos=qty_uos, uos=uos, name=name, partner_id=partner_id,
+ lang=lang, update_tax=update_tax, date_order=date_order,
+ packaging=packaging, fiscal_position=fiscal_position,
+ flag=flag, context=context)
+ if not product:
+ res['value'].update({
+ 'must_have_dates': False,
+ 'start_date': False,
+ 'end_date': False,
+ })
+ else:
+ product_o = self.pool['product.product'].browse(
+ cr, uid, product, context=context)
+ if product_o.must_have_dates:
+ res['value'].update({'must_have_dates': True})
+ else:
+ res['value'].update({
+ 'must_have_dates': False,
+ 'start_date': False,
+ 'end_date': False,
+ })
+ return res
diff --git a/sale_start_end_dates/sale_view.xml b/sale_start_end_dates/sale_view.xml
new file mode 100644
index 00000000000..16d18e6b6af
--- /dev/null
+++ b/sale_start_end_dates/sale_view.xml
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+ start.end.dates.view_order_form
+ sale.order
+
+
+
+
+
+
+
+
+
+
+
+
+
From 68ff857e149a725f7b580f7852a4f93282347b77 Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Mon, 25 May 2015 02:43:43 +0200
Subject: [PATCH 02/34] Port to v8 and new API with several enhancements
---
sale_start_end_dates/README.rst | 29 +++
sale_start_end_dates/__init__.py | 4 +-
sale_start_end_dates/__openerp__.py | 24 +-
sale_start_end_dates/i18n/fr.po | 94 +++++---
.../i18n/sale_start_end_dates.pot | 77 ++++--
sale_start_end_dates/sale.py | 223 ++++++++++++------
sale_start_end_dates/sale_demo.xml | 24 ++
sale_start_end_dates/sale_view.xml | 30 ++-
.../static/description/icon.png | Bin 0 -> 9455 bytes
9 files changed, 355 insertions(+), 150 deletions(-)
create mode 100644 sale_start_end_dates/README.rst
create mode 100644 sale_start_end_dates/sale_demo.xml
create mode 100644 sale_start_end_dates/static/description/icon.png
diff --git a/sale_start_end_dates/README.rst b/sale_start_end_dates/README.rst
new file mode 100644
index 00000000000..021a7cfdd6f
--- /dev/null
+++ b/sale_start_end_dates/README.rst
@@ -0,0 +1,29 @@
+Sale Start End Dates
+====================
+
+This module adds the fields *start date* and *end date* on sale order
+lines. Upon invoice creation, the value of the start/end dates of the
+sale order line is 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.
+
+Credits
+=======
+
+Contributors
+------------
+
+* Alexis de Lattre
+
+Maintainer
+----------
+
+.. image:: http://odoo-community.org/logo.png
+ :alt: Odoo Community Association
+ :target: http://odoo-community.org
+
+This module is maintained by the OCA.
+
+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.
+
+To contribute to this module, please visit http://odoo-community.org.
diff --git a/sale_start_end_dates/__init__.py b/sale_start_end_dates/__init__.py
index e3fa3783da1..5dad96f3cbd 100644
--- a/sale_start_end_dates/__init__.py
+++ b/sale_start_end_dates/__init__.py
@@ -1,8 +1,8 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Sale Start End Dates module for OpenERP
-# Copyright (C) 2014 Akretion (http://www.akretion.com)
+# Sale Start End Dates module for Odoo
+# Copyright (C) 2014-2015 Akretion (http://www.akretion.com)
# @author Alexis de Lattre
#
# This program is free software: you can redistribute it and/or modify
diff --git a/sale_start_end_dates/__openerp__.py b/sale_start_end_dates/__openerp__.py
index 70391f553e7..ad299930dfc 100644
--- a/sale_start_end_dates/__openerp__.py
+++ b/sale_start_end_dates/__openerp__.py
@@ -1,8 +1,8 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Sale Start End Dates module for OpenERP
-# Copyright (C) 2014 Akretion (http://www.akretion.com)
+# Sale Start End Dates module for Odoo
+# Copyright (C) 2014-2015 Akretion (http://www.akretion.com)
# @author Alexis de Lattre
#
# This program is free software: you can redistribute it and/or modify
@@ -23,24 +23,14 @@
{
'name': 'Sale Start End Dates',
- 'version': '0.1',
+ 'version': '8.0.0.1.0',
'category': 'Sales Management',
'license': 'AGPL-3',
'summary': 'Adds start date and end date on sale order lines',
- 'description': """
-Sale Start End Dates
-====================
-
-This module adds start date and end dates on sale order lines. The value of these field is copied to the start date and end date of invoice lines. This module is designed to be used with other modules such as sale_rental.
-
-Please contact Alexis de Lattre from Akretion for any help or question about this module.
- """,
- 'author': 'Akretion',
+ 'author': 'Akretion,Odoo Community Association (OCA)',
'website': 'http://www.akretion.com',
- 'depends': ['account_cutoff_prepaid', 'sale'],
- 'data': [
- 'sale_view.xml',
- ],
+ 'depends': ['account_cutoff_prepaid', 'sale', 'web_context_tunnel'],
+ 'data': ['sale_view.xml'],
+ 'demo': ['sale_demo.xml'],
'installable': True,
- 'active': False,
}
diff --git a/sale_start_end_dates/i18n/fr.po b/sale_start_end_dates/i18n/fr.po
index 15bbc77b9cd..171d556d7d7 100644
--- a/sale_start_end_dates/i18n/fr.po
+++ b/sale_start_end_dates/i18n/fr.po
@@ -1,13 +1,13 @@
-# Translation of OpenERP Server.
+# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
#
msgid ""
msgstr ""
-"Project-Id-Version: OpenERP Server 7.0\n"
+"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-02-02 22:31+0000\n"
-"PO-Revision-Date: 2014-02-02 22:31+0000\n"
+"POT-Creation-Date: 2015-06-02 13:01+0000\n"
+"PO-Revision-Date: 2015-06-02 13:01+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -15,52 +15,76 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
+#. module: sale_start_end_dates
+#: field:sale.order,default_end_date:0
+msgid "Default End Date"
+msgstr "Date de fin par défaut"
+
+#. module: sale_start_end_dates
+#: field:sale.order,default_start_date:0
+msgid "Default Start Date"
+msgstr "Date de début par défaut"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:42
+#, python-format
+msgid "Default Start Date should be before or be the same as Default End Date for sale order %s"
+msgstr ""
+
#. module: sale_start_end_dates
#: field:sale.order.line,end_date:0
msgid "End Date"
msgstr "Date de fin"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:94
+#: code:addons/sale_start_end_dates/sale.py:93
#, python-format
-msgid "Start Date should be before or be the same as End Date."
-msgstr "La date de début doit être antérieure ou égale à la date de fin."
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:47
+#: code:addons/sale_start_end_dates/sale.py:98
#, python-format
-msgid "Missing End Date for sale order line with Description '%s'."
-msgstr "Date de fin manquante sur la ligne de commande ayant pour description '%s'."
-
-#. module: sale_start_end_dates
-#: constraint:sale.order.line:0
-msgid "Error msg in raise"
-msgstr "Error msg in raise"
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:46
-#: code:addons/sale_start_end_dates/sale.py:52
-#: code:addons/sale_start_end_dates/sale.py:59
+#: code:addons/sale_start_end_dates/sale.py:103
#, python-format
-msgid "Error:"
-msgstr "Erreur :"
+msgid "Missing number of days for sale order line with Product '%s'."
+msgstr ""
#. module: sale_start_end_dates
#: field:sale.order.line,must_have_dates:0
msgid "Must Have Start and End Dates"
-msgstr "Doit avoir une date de début et de fin"
+msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:93
+#: field:sale.order.line,number_of_days:0
+msgid "Number of Days"
+msgstr "Nombre de jours"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:113
#, python-format
-msgid "Warning:"
-msgstr "Avertissement :"
+msgid "On sale order line with Product '%s', the number of days is negative ; this is not allowed."
+msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:53
+#: code:addons/sale_start_end_dates/sale.py:121
#, python-format
-msgid "Missing Start Date for sale order line with Description '%s'."
-msgstr "Date de début manquante sur la ligne de commande ayant pour description '%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 ""
+
+#. 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 commandes de vente"
#. module: sale_start_end_dates
#: field:sale.order.line,start_date:0
@@ -68,13 +92,17 @@ msgid "Start Date"
msgstr "Date de début"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:60
+#: code:addons/sale_start_end_dates/sale.py:108
#, python-format
-msgid "Start Date should be before or be the same as End Date for sale order line with Description '%s'."
-msgstr "La date de début doit être antérieure ou égale à la date de fin sur la ligne de commande ayant pour description '%s'."
+msgid "Start Date should be before or be the same as End Date for sale order line with Product '%s'."
+msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
-msgid "Sales Order Line"
-msgstr "Ligne de commandes de vente"
+#: view:sale.order:sale_start_end_dates.view_order_form
+msgid "{'default_end_date': parent.default_end_date}"
+msgstr ""
+#. module: sale_start_end_dates
+#: view:sale.order:sale_start_end_dates.view_order_form
+msgid "{'default_start_date': parent.default_start_date}"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/sale_start_end_dates.pot b/sale_start_end_dates/i18n/sale_start_end_dates.pot
index 9e9ebefdeee..18c74f4a83b 100644
--- a/sale_start_end_dates/i18n/sale_start_end_dates.pot
+++ b/sale_start_end_dates/i18n/sale_start_end_dates.pot
@@ -1,13 +1,13 @@
-# Translation of OpenERP Server.
+# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
#
msgid ""
msgstr ""
-"Project-Id-Version: OpenERP Server 7.0\n"
+"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-02-02 22:30+0000\n"
-"PO-Revision-Date: 2014-02-02 22:30+0000\n"
+"POT-Creation-Date: 2015-06-02 13:00+0000\n"
+"PO-Revision-Date: 2015-06-02 13:00+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -16,33 +16,42 @@ msgstr ""
"Plural-Forms: \n"
#. module: sale_start_end_dates
-#: field:sale.order.line,end_date:0
-msgid "End Date"
+#: field:sale.order,default_end_date:0
+msgid "Default End Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order,default_start_date:0
+msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:94
+#: code:addons/sale_start_end_dates/sale.py:42
#, python-format
-msgid "Start Date should be before or be the same as End Date."
+msgid "Default Start Date should be before or be the same as Default End Date for sale order %s"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:47
+#: field:sale.order.line,end_date:0
+msgid "End Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:93
#, python-format
-msgid "Missing End Date for sale order line with Description '%s'."
+msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: constraint:sale.order.line:0
-msgid "Error msg in raise"
+#: code:addons/sale_start_end_dates/sale.py:98
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:46
-#: code:addons/sale_start_end_dates/sale.py:52
-#: code:addons/sale_start_end_dates/sale.py:59
+#: code:addons/sale_start_end_dates/sale.py:103
#, python-format
-msgid "Error:"
+msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
@@ -51,15 +60,30 @@ msgid "Must Have Start and End Dates"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:93
+#: field:sale.order.line,number_of_days:0
+msgid "Number of Days"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:113
#, python-format
-msgid "Warning:"
+msgid "On sale order line with Product '%s', the number of days is negative ; this is not allowed."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:53
+#: code:addons/sale_start_end_dates/sale.py:121
#, python-format
-msgid "Missing Start Date for sale order line with Description '%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 ""
+
+#. 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
@@ -68,13 +92,18 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:60
+#: code:addons/sale_start_end_dates/sale.py:108
#, python-format
-msgid "Start Date should be before or be the same as End Date for sale order line with Description '%s'."
+msgid "Start Date should be before or be the same as End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
-msgid "Sales Order Line"
+#: view:sale.order:sale_start_end_dates.view_order_form
+msgid "{'default_end_date': parent.default_end_date}"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: view:sale.order:sale_start_end_dates.view_order_form
+msgid "{'default_start_date': parent.default_start_date}"
msgstr ""
diff --git a/sale_start_end_dates/sale.py b/sale_start_end_dates/sale.py
index 77e01396f72..8bf87a0fea4 100644
--- a/sale_start_end_dates/sale.py
+++ b/sale_start_end_dates/sale.py
@@ -1,8 +1,8 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
-# Sale Start End Dates module for OpenERP
-# Copyright (C) 2014 Akretion (http://www.akretion.com)
+# Sale Start End Dates module for Odoo
+# Copyright (C) 2014-2015 Akretion (http://www.akretion.com)
# @author Alexis de Lattre
#
# This program is free software: you can redistribute it and/or modify
@@ -20,59 +20,115 @@
#
##############################################################################
-from openerp.osv import orm, fields
-from openerp.tools.translate import _
+from openerp import models, fields, api, _
+from openerp.exceptions import ValidationError
+from dateutil.relativedelta import relativedelta
-class sale_order_line(orm.Model):
+class SaleOrder(models.Model):
+ _inherit = 'sale.order'
+
+ default_start_date = fields.Date(string='Default Start Date')
+ default_end_date = fields.Date(string='Default End Date')
+
+ @api.one
+ @api.constrains('default_start_date', 'default_end_date')
+ def _check_default_start_end_dates(self):
+ if (
+ self.default_start_date and
+ self.default_end_date and
+ self.default_start_date > self.default_end_date):
+ raise ValidationError(
+ _("Default Start Date should be before or be the "
+ "same as Default End Date for sale order %s")
+ % self.name)
+
+ @api.onchange('default_start_date')
+ def default_start_date_change(self):
+ if (
+ self.default_start_date and
+ self.default_end_date and
+ self.default_start_date > self.default_end_date):
+ self.default_end_date = self.default_start_date
+
+ @api.onchange('default_end_date')
+ def default_end_date_change(self):
+ if (
+ self.default_start_date and
+ self.default_end_date and
+ self.default_start_date > self.default_end_date):
+ self.default_start_date = self.default_end_date
+
+
+class SaleOrderLine(models.Model):
_inherit = 'sale.order.line'
- _columns = {
- 'start_date': fields.date(
- 'Start Date',
- readonly=True, states={'draft': [('readonly', False)]}),
- 'end_date': fields.date(
- 'End Date',
- readonly=True, states={'draft': [('readonly', False)]}),
- 'must_have_dates': fields.boolean(
- 'Must Have Start and End Dates',
- readonly=True, states={'draft': [('readonly', False)]}),
- }
-
- def _check_start_end_dates(self, cr, uid, ids):
- for line in self.browse(cr, uid, ids):
- if line.start_date and not line.end_date:
- raise orm.except_orm(
- _('Error:'),
+ @api.one
+ @api.depends('start_date', 'end_date')
+ def _compute_number_of_days(self):
+ if self.start_date and self.end_date:
+ self.number_of_days = (
+ fields.Date.from_string(self.end_date) -
+ fields.Date.from_string(self.start_date)).days + 1
+ else:
+ self.number_of_days = 0
+
+ start_date = fields.Date(
+ string='Start Date', readonly=True,
+ states={'draft': [('readonly', False)]})
+ end_date = fields.Date(
+ string='End Date', readonly=True,
+ states={'draft': [('readonly', False)]})
+ number_of_days = fields.Integer(string='Number of Days')
+ must_have_dates = fields.Boolean(
+ string='Must Have Start and End Dates', readonly=True,
+ states={'draft': [('readonly', False)]})
+
+ @api.one
+ @api.constrains('start_date', 'end_date', 'number_of_days')
+ def _check_start_end_dates(self):
+ if self.product_id and self.must_have_dates:
+ if not self.end_date:
+ raise ValidationError(
_("Missing End Date for sale order line with "
- "Description '%s'.")
- % (line.name))
- if line.end_date and not line.start_date:
- raise orm.except_orm(
- _('Error:'),
+ "Product '%s'.")
+ % (self.product_id.name))
+ if not self.start_date:
+ raise ValidationError(
_("Missing Start Date for sale order line with "
- "Description '%s'.")
- % (line.name))
- if line.end_date and line.start_date and \
- line.start_date > line.end_date:
- raise orm.except_orm(
- _('Error:'),
+ "Product '%s'.")
+ % (self.product_id.name))
+ if not self.number_of_days:
+ raise ValidationError(
+ _("Missing number of days for sale order line with "
+ "Product '%s'.")
+ % (self.product_id.name))
+ if self.start_date > self.end_date:
+ raise ValidationError(
_("Start Date should be before or be the same as "
- "End Date for sale order line with Description '%s'.")
- % (line.name))
- return True
-
-# TODO check must_have_dates on SO validation ? or in constraint ?
-
- _constraints = [
- (_check_start_end_dates, "Error msg in raise",
- ['start_date', 'end_date', 'product_id']),
- ]
+ "End Date for sale order line with Product '%s'.")
+ % (self.product_id.name))
+ if self.number_of_days < 0:
+ raise ValidationError(
+ _("On sale order line with Product '%s', the "
+ "number of days is negative ; this is not allowed.")
+ % (self.product_id.name))
+ days_delta = (
+ fields.Date.from_string(self.end_date) -
+ fields.Date.from_string(self.start_date)).days + 1
+ if self.number_of_days != days_delta:
+ raise ValidationError(
+ _("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.")
+ % (self.product_id.name, days_delta, self.start_date,
+ self.end_date, self.number_of_days))
- def _prepare_order_line_invoice_line(
- self, cr, uid, line, account_id=False, context=None):
- res = super(sale_order_line, self)._prepare_order_line_invoice_line(
- cr, uid, line, account_id=account_id, context=context)
+ @api.model
+ def _prepare_order_line_invoice_line(self, line, account_id=False):
+ res = super(SaleOrderLine, self)._prepare_order_line_invoice_line(
+ line, account_id=account_id)
if line.must_have_dates:
res.update({
'start_date': line.start_date,
@@ -80,33 +136,55 @@ def _prepare_order_line_invoice_line(
})
return res
- def start_end_dates_change(
- self, cr, uid, ids, start_date, end_date, product_id,
- product_uom_qty, context=None):
- '''This function is designed to be inherited'''
- res = {}
- if start_date and end_date:
- if end_date < start_date:
- # We could have put a raise here
- # but a warning is fine because we have the constraint
- res['warning'] = {
- 'title': _('Warning:'),
- 'message': _("Start Date should be before or be the "
- "same as End Date."),
- }
- return res
+ @api.onchange('end_date')
+ def end_date_change(self):
+ if self.end_date:
+ if self.start_date and self.start_date > self.end_date:
+ self.start_date = self.end_date
+ if self.start_date:
+ number_of_days = (
+ fields.Date.from_string(self.end_date) -
+ fields.Date.from_string(self.start_date)).days + 1
+ if self.number_of_days != number_of_days:
+ self.number_of_days = number_of_days
+
+ @api.onchange('start_date')
+ def start_date_change(self):
+ if self.start_date:
+ if self.end_date and self.start_date > self.end_date:
+ self.end_date = self.start_date
+ if self.end_date:
+ number_of_days = (
+ fields.Date.from_string(self.end_date) -
+ fields.Date.from_string(self.start_date)).days + 1
+ if self.number_of_days != number_of_days:
+ self.number_of_days = number_of_days
+
+ @api.onchange('number_of_days')
+ def number_of_days_change(self):
+ if self.number_of_days:
+ if self.start_date:
+ end_date_dt = fields.Date.from_string(self.start_date) +\
+ relativedelta(days=self.number_of_days - 1)
+ end_date = fields.Date.to_string(end_date_dt)
+ if self.end_date != end_date:
+ self.end_date = end_date
+ elif self.end_date:
+ self.start_date = fields.Date.from_string(self.end_date) -\
+ relativedelta(days=self.number_of_days - 1)
+ @api.multi
def product_id_change(
- self, cr, uid, ids, pricelist, product, qty=0,
+ self, pricelist, product, qty=0,
uom=False, qty_uos=0, uos=False, name='', partner_id=False,
lang=False, update_tax=True, date_order=False, packaging=False,
- fiscal_position=False, flag=False, context=None):
- res = super(sale_order_line, self).product_id_change(
- cr, uid, ids, pricelist, product, qty=qty, uom=uom,
+ fiscal_position=False, flag=False):
+ res = super(SaleOrderLine, self).product_id_change(
+ pricelist, product, qty=qty, uom=uom,
qty_uos=qty_uos, uos=uos, name=name, partner_id=partner_id,
lang=lang, update_tax=update_tax, date_order=date_order,
packaging=packaging, fiscal_position=fiscal_position,
- flag=flag, context=context)
+ flag=flag)
if not product:
res['value'].update({
'must_have_dates': False,
@@ -114,10 +192,15 @@ def product_id_change(
'end_date': False,
})
else:
- product_o = self.pool['product.product'].browse(
- cr, uid, product, context=context)
+ product_o = self.env['product.product'].browse(product)
if product_o.must_have_dates:
- res['value'].update({'must_have_dates': True})
+ res['value']['must_have_dates'] = True
+ if self.env.context.get('default_start_date'):
+ res['value']['start_date'] = self.env.context.get(
+ 'default_start_date')
+ if self.env.context.get('default_end_date'):
+ res['value']['end_date'] = self.env.context.get(
+ 'default_end_date')
else:
res['value'].update({
'must_have_dates': False,
diff --git a/sale_start_end_dates/sale_demo.xml b/sale_start_end_dates/sale_demo.xml
new file mode 100644
index 00000000000..b8a064a43c4
--- /dev/null
+++ b/sale_start_end_dates/sale_demo.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sale_start_end_dates/sale_view.xml b/sale_start_end_dates/sale_view.xml
index 16d18e6b6af..5d4cb3ceb72 100644
--- a/sale_start_end_dates/sale_view.xml
+++ b/sale_start_end_dates/sale_view.xml
@@ -1,7 +1,7 @@
@@ -15,15 +15,37 @@
sale.order
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {'default_start_date': parent.default_start_date}
+ {'default_end_date': parent.default_end_date}
+
+
+ {'default_start_date': parent.default_start_date}
+ {'default_end_date': parent.default_end_date}
+
+
+ {'default_start_date': parent.default_start_date}
+ {'default_end_date': parent.default_end_date}
+
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 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d
GIT binary patch
literal 9455
zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~!
zVpnB`o+K7|Al`Q_U;eD$B
zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA
z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__
zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_
zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I
z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U
z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW_9kP&%?X4}+xWi)(
z;)z%wI5>D4a*5XwD)P--sPkoY(a~WBw;E~AW`Yue4kFa^LM3X`8x|}ZUeMnqr}>kH
zG%WWW>3ml$Yez?i%)2pbKPI7?5o?hydokgQyZsNEr{a|mLdt;X2TX(#B1j35xPnPW
z*bMSSOauW>o;*=kO8ojw91VX!qoOQb)zHJ!odWB}d+*K?#sY_jqPdg{Sm2HdYzdEx
zOGVPhVRTGPtv0o}RfVP;Nd(|CB)I;*t&QO8h
zFfekr30S!-LHmV_Su-W+rEwYXJ^;6&3|L$mMC8*bQptyOo9;>Qb9Q9`ySe3%V$A*9
zeKEe+b0{#KWGp$F+tga)0RtI)nhMa-K@JS}2krK~n8vJ=Ngm?R!9G<~RyuU0d?nz#
z-5EK$o(!F?hmX*2Yt6+coY`6jGbb7tF#6nHA
zuKk=GGJ;ZwON1iAfG$E#Y7MnZVmrY|j0eVI(DN_MNFJmyZ|;w4tf@=CCDZ#5N_0K=
z$;R~bbk?}TpfDjfB&aiQ$VA}s?P}xPERJG{kxk5~R`iRS(SK5d+Xs9swCozZISbnS
zk!)I0>t=A<-^z(cmSFz3=jZ23u13X><0b)P)^1T_))Kr`e!-pb#q&J*Q`p+B6la%C
zuVl&0duN<;uOsB3%T9Fp8t{ED108)`y_~Hnd9AUX7h-H?jVuU|}My+C=TjH(jKz
zqMVr0re3S$H@t{zI95qa)+Crz*5Zj}Ao%4Z><+W(nOZd?gDnfNBC3>M8WE61$So|P
zVvqH0SNtDTcsUdzaMDpT=Ty0pDHHNL@Z0w$Y`XO
z2M-_r1S+GaH%pz#Uy0*w$Vdl=X=rQXEzO}d6J^R6zjM1u&c9vYLvLp?W7w(?np9x1
zE_0JSAJCPB%i7p*Wvg)pn5T`8k3-uR?*NT|J`eS#_#54p>!p(mLDvmc-3o0mX*mp_
zN*AeS<>#^-{S%W<*mz^!X$w_2dHWpcJ6^j64qFBft-o}o_Vx80o0>}Du;>kLts;$8
zC`7q$QI(dKYG`Wa8#wl@V4jVWBRGQ@1dr-hstpQL)Tl+aqVpGpbSfN>5i&QMXfiZ>
zaA?T1VGe?rpQ@;+pkrVdd{klI&jVS@I5_iz!=UMpTsa~mBga?1r}aRBm1WS;TT*s0f0lY=JBl66Upy)-k4J}lh=P^8(SXk~0xW=T9v*B|gzIhN
z>qsO7dFd~mgxAy4V?&)=5ieYq?zi?ZEoj)&2o)RLy=@hbCRcfT5jigwtQGE{L*8<@Yd{zg;CsL5mvzfDY}P-wos_6PfprFVaeqNE%h
zKZhLtcQld;ZD+>=nqN~>GvROfueSzJD&BE*}XfU|H&(FssBqY=hPCt`d
zH?@s2>I(|;fcW&YM6#V#!kUIP8$Nkdh0A(bEVj``-AAyYgwY~jB
zT|I7Bf@%;7aL7Wf4dZ%VqF$eiaC38OV6oy3Z#TER2G+fOCd9Iaoy6aLYbPTN{XRPz
z;U!V|vBf%H!}52L2gH_+j;`bTcQRXB+y9onc^wLm5wi3-Be}U>k_u>2Eg$=k!(l@I
zcCg+flakT2Nej3i0yn+g+}%NYb?ta;R?(g5SnwsQ49U8Wng8d|{B+lyRcEDvR3+`O{zfmrmvFrL6acVP%yG98X
zo&+VBg@px@i)%o?dG(`T;n*$S5*rnyiR#=wW}}GsAcfyQpE|>a{=$Hjg=-*_K;UtD
z#z-)AXwSRY?OPefw^iI+
z)AXz#PfEjlwTes|_{sB?4(O@fg0AJ^g8gP}ex9Ucf*@_^J(s_5jJV}c)s$`Myn|Kd
z$6>}#q^n{4vN@+Os$m7KV+`}c%4)4pv@06af4-x5#wj!KKb%caK{A&Y#Rfs
z-po?Dcb1({W=6FKIUirH&(yg=*6aLCekcKwyfK^JN5{wcA3nhO(o}SK#!CINhI`-I
z1)6&n7O&ZmyFMuNwvEic#IiOAwNkR=u5it{B9n2sAJV5pNhar=j5`*N!Na;c7g!l$
z3aYBqUkqqTJ=Re-;)s!EOeij=7SQZ3Hq}ZRds%IM*PtM$wV
z@;rlc*NRK7i3y5BETSKuumEN`Xu_8GP1Ri=OKQ$@I^ko8>H6)4rjiG5{VBM>B|%`&&s^)jS|-_95&yc=GqjNo{zFkw%%HHhS~e=s
zD#sfS+-?*t|J!+ozP6KvtOl!R)@@-z24}`9{QaVLD^9VCSR2b`b!KC#o;Ki<+wXB6
zx3&O0LOWcg4&rv4QG0)4yb}7BFSEg~=IR5#ZRj8kg}dS7_V&^%#Do==#`u
zpy6{ox?jWuR(;pg+f@mT>#HGWHAJRRDDDv~@(IDw&R>9643kK#HN`!1vBJHnC+RM&yIh8{gG2q
zA%e*U3|N0XSRa~oX-3EAneep)@{h2vvd3Xvy$7og(sayr@95+e6~Xvi1tUqnIxoIH
zVWo*OwYElb#uyW{Imam6f2rGbjR!Y3`#gPqkv57dB6K^wRGxc9B(t|aYDGS=m$&S!NmCtrMMaUg(c
zc2qC=2Z`EEFMW-me5B)24AqF*bV5Dr-M5ig(l-WPS%CgaPzs6p_gnCIvTJ=Y<6!gT
zVt@AfYCzjjsMEGi=rDQHo0yc;HqoRNnNFeWZgcm?f;cp(6CNylj36DoL(?TS7eU#+
z7&mfr#y))+CJOXQKUMZ7QIdS9@#-}7y2K1{8)cCt0~-X0O!O?Qx#E4Og+;A2SjalQ
zs7r?qn0H044=sDN$SRG$arw~n=+T_DNdSrarmu)V6@|?1-ZB#hRn`uilTGPJ@fqEy
zGt(f0B+^JDP&f=r{#Y_wi#AVDf-y!RIXU^0jXsFpf>=Ji*TeqSY!H~AMbJdCGLhC)
zn7Rx+sXw6uYj;WRYrLd^5IZq@6JI1C^YkgnedZEYy<&4(z%Q$5yv#Boo{AH8n$a
zhb4Y3PWdr269&?V%uI$xMcUrMzl=;w<_nm*qr=c3Rl@i5wWB;e-`t7D&c-mcQl7x!
zZWB`UGcw=Y2=}~wzrfLx=uet<;m3~=8I~ZRuzvMQUQdr+yTV|ATf1Uuomr__nDf=X
zZ3WYJtHp_ri(}SQAPjv+Y+0=fH4krOP@S&=zZ-t1jW1o@}z;xk8
z(Nz1co&El^HK^NrhVHa-_;&88vTU>_J33=%{if;BEY*J#1n59=07jrGQ#IP>@u#3A
z;!q+E1Rj3ZJ+!4bq9F8PXJ@yMgZL;>&gYA0%_Kbi8?S=XGM~dnQZQ!yBSgcZhY96H
zrWnU;k)qy`rX&&xlDyA%(a1Hhi5CWkmg(`Gb%m(HKi-7Z!LKGRP_B8@`7&hdDy5n=
z`OIxqxiVfX@OX1p(mQu>0Ai*v_cTMiw4qRt3~NBvr9oBy0)r>w3p~V0SCm=An6@3n)>@z!|o-$HvDK
z|3D2ZMJkLE5loMKl6R^ez@Zz%S$&mbeoqH5`Bb){Ei21q&VP)hWS2tjShfFtGE+$z
zzCR$P#uktu+#!w)cX!lWN1XU%K-r=s{|j?)Akf@q#3b#{6cZCuJ~gCxuMXRmI$nGtnH+-h
z+GEi!*X=AP<|fG`1>MBdTb?28JYc=fGvAi2I<$B(rs$;eoJCyR6_bc~p!XR@O-+sD
z=eH`-ye})I5ic1eL~TDmtfJ|8`0VJ*Yr=hNCd)G1p2MMz4C3^Mj?7;!w|Ly%JqmuW
zlIEW^Ft%z?*|fpXda>Jr^1noFZEwFgVV%|*XhH@acv8rdGxeEX{M$(vG{Zw+x(ei@
zmfXb22}8-?Fi`vo-YVrTH*C?a8%M=Hv9MqVH7H^J$KsD?>!SFZ;ZsvnHr_gn=7acz
z#W?0eCdVhVMWN12VV^$>WlQ?f;P^{(&pYTops|btm6aj>_Uz+hqpGwB)vWp0Cf5y<
zft8-je~nn?W11plq}N)4A{l8I7$!ks_x$PXW-2XaRFswX_BnF{R#6YIwMhAgd5F9X
zGmwdadS6(a^fjHtXg8=l?Rc0Sm%hk6E9!5cLVloEy4eh(=FwgP`)~I^5~pBEWo+F6
zSf2ncyMurJN91#cJTy_u8Y}@%!bq1RkGC~-bV@SXRd4F{R-*V`bS+6;W5vZ(&+I<9$;-V|eNfLa5n-6%
z2(}&uGRF;p92eS*sE*oR$@pexaqr*meB)VhmIg@h{uzkk$9~qh#cHhw#>O%)b@+(|
z^IQgqzuj~Sk(J;swEM-3TrJAPCq9k^^^`q{IItKBRXYe}e0Tdr=Huf7da3$l4PdpwWDop%^}n;dD#K4s#DYA8SHZ
z&1!riV4W4R7R#C))JH1~axJ)RYnM$$lIR%6fIVA@zV{XVyx}C+a-Dt8Y9M)^KU0+H
zR4IUb2CJ{Hg>CuaXtD50jB(_Tcx=Z$^WYu2u5kubqmwp%drJ6
z?Fo40g!Qd<-l=TQxqHEOuPX0;^z7iX?Ke^a%XT<13TA^5`4Xcw6D@Ur&VT&CUe0d}
z1GjOVF1^L@>O)l@?bD~$wzgf(nxX1OGD8fEV?TdJcZc2KoUe|oP1#=$$7ee|xbY)A
zDZq+cuTpc(fFdj^=!;{k03C69lMQ(|>uhRfRu%+!k&YOi-3|1QKB
z
z?n?eq1XP>p-IM$Z^C;2L3itnbJZAip*Zo0aw2bs8@(s^~*8T9go!%dHcAz2lM;`yp
zD=7&xjFV$S&5uDaiScyD?B-i1ze`+CoRtz`Wn+Zls4&}MO{@N!ufrzjG$B79)Y2d3tBk&)TxUTw@QS0TEL_?njX|@vq?Uz(nBFK5Pq7*xj#u*R&i|?7+6#
z+|r_n#SW&LXhtheZdah{ZVoqwyT{D>MC3nkFF#N)xLi{p7J1jXlmVeb;cP5?e(=f#
zuT7fvjSbjS781v?7{)-X3*?>tq?)Yd)~|1{BDS(pqC
zC}~H#WXlkUW*H5CDOo<)#x7%RY)A;ShGhI5s*#cRDA8YgqG(HeKDx+#(ZQ?386dv!
zlXCO)w91~Vw4AmOcATuV653fa9R$fyK8ul%rG
z-wfS
zihugoZyr38Im?Zuh6@RcF~t1anQu7>#lPpb#}4cOA!EM11`%f*07RqOVkmX{p~KJ9
z^zP;K#|)$`^Rb{rnHGH{~>1(fawV0*Z#)}M`m8-?ZJV<+e}s9wE#
z)l&az?w^5{)`S(%MRzxdNqrs1n*-=jS^_jqE*5XDrA0+VE`5^*p3CuM<&dZEeCjoz
zR;uu_H9ZPZV|fQq`Cyw4nscrVwi!fE6ciMmX$!_hN7uF;jjKG)d2@aC4ropY)8etW=xJvni)8eHi`H$%#zn^WJ5NLc-rqk|u&&4Z6fD_m&JfSI1Bvb?b<*n&sfl0^t
z=HnmRl`XrFvMKB%9}>PaA`m-fK6a0(8=qPkWS5bb4=v?XcWi&hRY?O5HdulRi4?fN
zlsJ*N-0Qw+Yic@s0(2uy%F@ib;GjXt01Fmx5XbRo6+n|pP(&nodMoap^z{~q
ziEeaUT@Mxe3vJSfI6?uLND(CNr=#^W<1b}jzW58bIfyWTDle$mmS(|x-0|2UlX+9k
zQ^EX7Nw}?EzVoBfT(-LT|=9N@^hcn-_p&sqG
z&*oVs2JSU+N4ZD`FhCAWaS;>|wH2G*Id|?pa#@>tyxX`+4HyIArWDvVrX)2WAOQff
z0qyHu&-S@i^MS-+j--!pr4fPBj~_8({~e1bfcl0wI1kaoN>mJL6KUPQm5N7lB(ui1
zE-o%kq)&djzWJ}ob<-GfDlkB;F31j-VHKvQUGQ3sp`CwyGJk_i!y^sD0fqC@$9|jO
zOqN!r!8-p==F@ZVP=U$qSpY(gQ0)59P1&t@y?5rvg<}E+GB}26NYPp4f2YFQrQtot5mn3wu_qprZ=>Ig-$
zbW26Ws~IgY>}^5w`vTB(G`PTZaDiGBo5o(tp)qli|NeV(
z@H_=R8V39rt5J5YB2Ky?4eJJ#b`_iBe2ot~6%7mLt5t8Vwi^Jy7|jWXqa3amOIoRb
zOr}WVFP--DsS`1WpN%~)t3R!arKF^Q$e12KEqU36AWwnCBICpH4XCsfnyrHr>$I$4
z!DpKX$OKLWarN7nv@!uIA+~RNO)l$$w}p(;b>mx8pwYvu;dD_unryX_NhT8*Tj>BTrTTL&!?O+%Rv;b?B??gSzdp?6Uug9{
zd@V08Z$BdI?fpoCS$)t4mg4rT8Q_I}h`0d-vYZ^|dOB*Q^S|xqTV*vIg?@fVFSmMpaw0qtTRbx}
z({Pg?#{2`sc9)M5N$*N|4;^t$+QP?#mov
zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22
zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq
zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t<
z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k
z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp
z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{}
zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N
Xviia!U7SGha1wx#SCgwmn*{w2TRX*I
literal 0
HcmV?d00001
From 0c33855db797eccc02e26cc8c060a6de2258519a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matja=C5=BE=20Mozeti=C4=8D?=
Date: Thu, 20 Aug 2015 12:32:01 +0200
Subject: [PATCH 03/34] Slovene translations added
---
sale_start_end_dates/i18n/de.po | 119 ++++++++++++++++++++++++++++
sale_start_end_dates/i18n/es.po | 119 ++++++++++++++++++++++++++++
sale_start_end_dates/i18n/fi.po | 119 ++++++++++++++++++++++++++++
sale_start_end_dates/i18n/it.po | 120 +++++++++++++++++++++++++++++
sale_start_end_dates/i18n/sl.po | 110 ++++++++++++++++++++++++++
sale_start_end_dates/i18n/zh_CN.po | 119 ++++++++++++++++++++++++++++
6 files changed, 706 insertions(+)
create mode 100644 sale_start_end_dates/i18n/de.po
create mode 100644 sale_start_end_dates/i18n/es.po
create mode 100644 sale_start_end_dates/i18n/fi.po
create mode 100644 sale_start_end_dates/i18n/it.po
create mode 100644 sale_start_end_dates/i18n/sl.po
create mode 100644 sale_start_end_dates/i18n/zh_CN.po
diff --git a/sale_start_end_dates/i18n/de.po b/sale_start_end_dates/i18n/de.po
new file mode 100644
index 00000000000..b4b2f84c470
--- /dev/null
+++ b/sale_start_end_dates/i18n/de.po
@@ -0,0 +1,119 @@
+# 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: German (http://www.transifex.com/oca/OCA-sale-workflow-8-0/language/de/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: de\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: sale_start_end_dates
+#: field:sale.order,default_end_date:0
+msgid "Default End Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order,default_start_date:0
+msgid "Default Start Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:42
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %s"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,end_date:0
+msgid "End Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:93
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:98
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:103
+#, python-format
+msgid "Missing number of days for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,must_have_dates:0
+msgid "Must Have Start and End Dates"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,number_of_days:0
+msgid "Number of Days"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:113
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:121
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Verkaufsauftrag"
+
+#. 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
+#: field:sale.order.line,start_date:0
+msgid "Start Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:108
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: view:sale.order:sale_start_end_dates.view_order_form
+msgid "{'default_end_date': parent.default_end_date}"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: view:sale.order:sale_start_end_dates.view_order_form
+msgid "{'default_start_date': parent.default_start_date}"
+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..4e52d8609de
--- /dev/null
+++ b/sale_start_end_dates/i18n/es.po
@@ -0,0 +1,119 @@
+# 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: Spanish (http://www.transifex.com/oca/OCA-sale-workflow-8-0/language/es/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: es\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: sale_start_end_dates
+#: field:sale.order,default_end_date:0
+msgid "Default End Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order,default_start_date:0
+msgid "Default Start Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:42
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %s"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,end_date:0
+msgid "End Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:93
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:98
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:103
+#, python-format
+msgid "Missing number of days for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,must_have_dates:0
+msgid "Must Have Start and End Dates"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,number_of_days:0
+msgid "Number of Days"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:113
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:121
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Pedido de venta"
+
+#. 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
+#: field:sale.order.line,start_date:0
+msgid "Start Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:108
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: view:sale.order:sale_start_end_dates.view_order_form
+msgid "{'default_end_date': parent.default_end_date}"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: view:sale.order:sale_start_end_dates.view_order_form
+msgid "{'default_start_date': parent.default_start_date}"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/fi.po b/sale_start_end_dates/i18n/fi.po
new file mode 100644
index 00000000000..d4d710e7d26
--- /dev/null
+++ b/sale_start_end_dates/i18n/fi.po
@@ -0,0 +1,119 @@
+# 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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: fi\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: sale_start_end_dates
+#: field:sale.order,default_end_date:0
+msgid "Default End Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order,default_start_date:0
+msgid "Default Start Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:42
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %s"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,end_date:0
+msgid "End Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:93
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:98
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:103
+#, python-format
+msgid "Missing number of days for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,must_have_dates:0
+msgid "Must Have Start and End Dates"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,number_of_days:0
+msgid "Number of Days"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:113
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:121
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Myyntitilaus"
+
+#. 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
+#: field:sale.order.line,start_date:0
+msgid "Start Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:108
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: view:sale.order:sale_start_end_dates.view_order_form
+msgid "{'default_end_date': parent.default_end_date}"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: view:sale.order:sale_start_end_dates.view_order_form
+msgid "{'default_start_date': parent.default_start_date}"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/it.po b/sale_start_end_dates/i18n/it.po
new file mode 100644
index 00000000000..45e26bdfc19
--- /dev/null
+++ b/sale_start_end_dates/i18n/it.po
@@ -0,0 +1,120 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * sale_start_end_dates
+#
+# Translators:
+# Stefano , 2015
+msgid ""
+msgstr ""
+"Project-Id-Version: sale-workflow (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-10-02 17:59+0000\n"
+"PO-Revision-Date: 2015-09-30 16:04+0000\n"
+"Last-Translator: Stefano \n"
+"Language-Team: Italian (http://www.transifex.com/oca/OCA-sale-workflow-8-0/language/it/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: it\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. module: sale_start_end_dates
+#: field:sale.order,default_end_date:0
+msgid "Default End Date"
+msgstr "Default Data Fine"
+
+#. module: sale_start_end_dates
+#: field:sale.order,default_start_date:0
+msgid "Default Start Date"
+msgstr "Default Data Inizio"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:42
+#, python-format
+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."
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,end_date:0
+msgid "End Date"
+msgstr "Data fine"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:93
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr "Manca la data di fine nell'ordine di vendita per il prodotto '%s'"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:98
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr "Manca la data di Inizio per il prodotto '%s'"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:103
+#, python-format
+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'"
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,must_have_dates:0
+msgid "Must Have Start and End Dates"
+msgstr "Necessario Data Inizio e Fine"
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,number_of_days:0
+msgid "Number of Days"
+msgstr "Numero di giorni"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:113
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr "L'ordine di vendita per il prodotto '%s' ha un numero di giorni negativo : questo no e' permesso."
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:121
+#, python-format
+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."
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Ordini vendita"
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
+msgid "Sales Order Line"
+msgstr "Linea d'ordine di vendita"
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,start_date:0
+msgid "Start Date"
+msgstr "Data di inizio"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:108
+#, 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."
+
+#. module: sale_start_end_dates
+#: view:sale.order:sale_start_end_dates.view_order_form
+msgid "{'default_end_date': parent.default_end_date}"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: view:sale.order:sale_start_end_dates.view_order_form
+msgid "{'default_start_date': parent.default_start_date}"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/sl.po b/sale_start_end_dates/i18n/sl.po
new file mode 100644
index 00000000000..59645cdf671
--- /dev/null
+++ b/sale_start_end_dates/i18n/sl.po
@@ -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 8.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2015-06-02 13:00+0000\n"
+"PO-Revision-Date: 2015-08-16 08:31+0200\n"
+"Last-Translator: Matjaz Mozetic \n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: \n"
+"Language: sl\n"
+"X-Generator: Poedit 1.8.4\n"
+
+#. module: sale_start_end_dates
+#: field:sale.order,default_end_date:0
+msgid "Default End Date"
+msgstr "Privzeti končni datum"
+
+#. module: sale_start_end_dates
+#: field:sale.order,default_start_date:0
+msgid "Default Start Date"
+msgstr "Privzeti začetni datum"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:42
+#, python-format
+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"
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,end_date:0
+msgid "End Date"
+msgstr "Končni datum"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:93
+#, 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
+#: code:addons/sale_start_end_dates/sale.py:98
+#, 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
+#: code:addons/sale_start_end_dates/sale.py:103
+#, python-format
+msgid "Missing number of days for sale order line with Product '%s'."
+msgstr "Manjkajoče število dni na postavki prodajnega naloga s proizvodom '%s'."
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,must_have_dates:0
+msgid "Must Have Start and End Dates"
+msgstr "Zahteva se začetni in končni datum"
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,number_of_days:0
+msgid "Number of Days"
+msgstr "Število dni"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:113
+#, python-format
+msgid "On sale order line with Product '%s', the number of days is negative ; this is not allowed."
+msgstr "Na postavki prodajnega naloga s proizvodom '%s' je število dni negativno; to ni dovoljeno."
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:121
+#, python-format
+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."
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Prodajni nalog"
+
+#. 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
+#: field:sale.order.line,start_date:0
+msgid "Start Date"
+msgstr "Začetni datum"
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:108
+#, 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)."
+
+#. module: sale_start_end_dates
+#: view:sale.order:sale_start_end_dates.view_order_form
+msgid "{'default_end_date': parent.default_end_date}"
+msgstr "{'default_end_date': parent.default_end_date}"
+
+#. module: sale_start_end_dates
+#: view:sale.order:sale_start_end_dates.view_order_form
+msgid "{'default_start_date': parent.default_start_date}"
+msgstr "{'default_start_date': parent.default_start_date}"
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..9700a27dca6
--- /dev/null
+++ b/sale_start_end_dates/i18n/zh_CN.po
@@ -0,0 +1,119 @@
+# 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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: zh_CN\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+
+#. module: sale_start_end_dates
+#: field:sale.order,default_end_date:0
+msgid "Default End Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order,default_start_date:0
+msgid "Default Start Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:42
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %s"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,end_date:0
+msgid "End Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:93
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:98
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:103
+#, python-format
+msgid "Missing number of days for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,must_have_dates:0
+msgid "Must Have Start and End Dates"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: field:sale.order.line,number_of_days:0
+msgid "Number of Days"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:113
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:121
+#, python-format
+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 ""
+
+#. 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
+#: field:sale.order.line,start_date:0
+msgid "Start Date"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/sale.py:108
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: view:sale.order:sale_start_end_dates.view_order_form
+msgid "{'default_end_date': parent.default_end_date}"
+msgstr ""
+
+#. module: sale_start_end_dates
+#: view:sale.order:sale_start_end_dates.view_order_form
+msgid "{'default_start_date': parent.default_start_date}"
+msgstr ""
From 2cc4c13ba8253f918ff63f84bfd7c556f76d5b0b Mon Sep 17 00:00:00 2001
From: OCA Transbot
Date: Sun, 11 Oct 2015 08:20:36 -0400
Subject: [PATCH 04/34] OCA Transbot updated translations from Transifex
---
sale_start_end_dates/i18n/de.po | 35 +++++++++++++++++----------------
1 file changed, 18 insertions(+), 17 deletions(-)
diff --git a/sale_start_end_dates/i18n/de.po b/sale_start_end_dates/i18n/de.po
index b4b2f84c470..0068cf047c9 100644
--- a/sale_start_end_dates/i18n/de.po
+++ b/sale_start_end_dates/i18n/de.po
@@ -3,13 +3,14 @@
# * sale_start_end_dates
#
# Translators:
+# Rudolf Schnapka , 2015
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"
+"POT-Creation-Date: 2015-10-08 20:48+0000\n"
+"PO-Revision-Date: 2015-10-09 13:14+0000\n"
+"Last-Translator: Rudolf Schnapka \n"
"Language-Team: German (http://www.transifex.com/oca/OCA-sale-workflow-8-0/language/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -20,12 +21,12 @@ msgstr ""
#. module: sale_start_end_dates
#: field:sale.order,default_end_date:0
msgid "Default End Date"
-msgstr ""
+msgstr "Vorgabe-Enddatum"
#. module: sale_start_end_dates
#: field:sale.order,default_start_date:0
msgid "Default Start Date"
-msgstr ""
+msgstr "Vorgabe-Anfangsdatum"
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/sale.py:42
@@ -33,40 +34,40 @@ msgstr ""
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
"sale order %s"
-msgstr ""
+msgstr "Vorgabe-Anfangsdatum muss im Auftrag %s vor ooder am Enddatum liegen"
#. module: sale_start_end_dates
#: field:sale.order.line,end_date:0
msgid "End Date"
-msgstr ""
+msgstr "Enddatum"
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/sale.py:93
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
-msgstr ""
+msgstr "Fehlendes Enddatum in Auftragsposition des Produkts '%s'."
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/sale.py:98
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
-msgstr ""
+msgstr "Fehlendes Anfangsdatum in Auftragsposition des Produkts '%s'."
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/sale.py:103
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
-msgstr ""
+msgstr "Fehlende Anzahl Tage in Auftragsposition des Produkts '%s'."
#. module: sale_start_end_dates
#: field:sale.order.line,must_have_dates:0
msgid "Must Have Start and End Dates"
-msgstr ""
+msgstr "Muss Anfangs- und Enddatum haben"
#. module: sale_start_end_dates
#: field:sale.order.line,number_of_days:0
msgid "Number of Days"
-msgstr ""
+msgstr "Anzahl Tage"
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/sale.py:113
@@ -74,7 +75,7 @@ msgstr ""
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
"is not allowed."
-msgstr ""
+msgstr "In Auftragsposition des Produkts '%s' ist die Anzahl Tage negativ; dies ist nicht zulässig."
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/sale.py:121
@@ -83,7 +84,7 @@ 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 ""
+msgstr "In Auftragsposition des Produkts '%s' liegen %d Tage zwischen Anfangs- (%s) und Enddatum (%s), das Anzahl Tage -Feld weist jedoch %d Tage aus."
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
@@ -93,12 +94,12 @@ msgstr "Verkaufsauftrag"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
msgid "Sales Order Line"
-msgstr ""
+msgstr "Auftragsposition"
#. module: sale_start_end_dates
#: field:sale.order.line,start_date:0
msgid "Start Date"
-msgstr ""
+msgstr "Anfangsdatum"
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/sale.py:108
@@ -106,7 +107,7 @@ msgstr ""
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
-msgstr ""
+msgstr "In der Auftragsposition zum Produkt %s muss das Anfangsdatum vor oder am Enddatum liegen."
#. module: sale_start_end_dates
#: view:sale.order:sale_start_end_dates.view_order_form
From 54092c418f64ad38947bd6e176fd535ca2abb02d Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Tue, 8 Nov 2016 17:54:30 +0100
Subject: [PATCH 05/34] Port sale_start_end_dates and sale_rental (#353)
---
sale_start_end_dates/README.rst | 30 ++-
sale_start_end_dates/__init__.py | 24 +-
sale_start_end_dates/__openerp__.py | 34 +--
sale_start_end_dates/{ => demo}/sale_demo.xml | 12 +-
sale_start_end_dates/models/__init__.py | 3 +
sale_start_end_dates/models/sale.py | 158 +++++++++++++
sale_start_end_dates/sale.py | 210 ------------------
.../{sale_view.xml => views/sale_order.xml} | 25 +--
8 files changed, 207 insertions(+), 289 deletions(-)
rename sale_start_end_dates/{ => demo}/sale_demo.xml (67%)
create mode 100644 sale_start_end_dates/models/__init__.py
create mode 100644 sale_start_end_dates/models/sale.py
delete mode 100644 sale_start_end_dates/sale.py
rename sale_start_end_dates/{sale_view.xml => views/sale_order.xml} (53%)
diff --git a/sale_start_end_dates/README.rst b/sale_start_end_dates/README.rst
index 021a7cfdd6f..871dfee1595 100644
--- a/sale_start_end_dates/README.rst
+++ b/sale_start_end_dates/README.rst
@@ -1,3 +1,8 @@
+.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
+ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
+ :alt: License: AGPL-3
+
+====================
Sale Start End Dates
====================
@@ -7,6 +12,21 @@ sale order line is 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.
+Usage
+=====
+
+.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
+ :alt: Try me on Runbot
+ :target: https://runbot.odoo-community.org/runbot/167/9.0
+
+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 smashing it by providing a detailed and welcomed feedback.
+
Credits
=======
@@ -18,12 +38,14 @@ Contributors
Maintainer
----------
-.. image:: http://odoo-community.org/logo.png
+.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
- :target: http://odoo-community.org
+ :target: https://odoo-community.org
This module is maintained by the OCA.
-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.
+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.
-To contribute to this module, please visit http://odoo-community.org.
+To contribute to this module, please visit https://odoo-community.org.
diff --git a/sale_start_end_dates/__init__.py b/sale_start_end_dates/__init__.py
index 5dad96f3cbd..cde864bae21 100644
--- a/sale_start_end_dates/__init__.py
+++ b/sale_start_end_dates/__init__.py
@@ -1,23 +1,3 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Sale Start End Dates module for Odoo
-# Copyright (C) 2014-2015 Akretion (http://www.akretion.com)
-# @author Alexis de Lattre
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
+# -*- coding: utf-8 -*-
-from . import sale
+from . import models
diff --git a/sale_start_end_dates/__openerp__.py b/sale_start_end_dates/__openerp__.py
index ad299930dfc..08c26f6f9a6 100644
--- a/sale_start_end_dates/__openerp__.py
+++ b/sale_start_end_dates/__openerp__.py
@@ -1,36 +1,18 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Sale Start End Dates module for Odoo
-# Copyright (C) 2014-2015 Akretion (http://www.akretion.com)
-# @author Alexis de Lattre
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
-
+# -*- coding: utf-8 -*-
+# © 2014-2016 Akretion (http://www.akretion.com)
+# @author Alexis de Lattre
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Sale Start End Dates',
- 'version': '8.0.0.1.0',
+ 'version': '9.0.1.0.0',
'category': 'Sales Management',
'license': 'AGPL-3',
'summary': 'Adds start date and end date on sale order lines',
'author': 'Akretion,Odoo Community Association (OCA)',
'website': 'http://www.akretion.com',
- 'depends': ['account_cutoff_prepaid', 'sale', 'web_context_tunnel'],
- 'data': ['sale_view.xml'],
- 'demo': ['sale_demo.xml'],
+ 'depends': ['account_invoice_start_end_dates', 'sale'],
+ 'data': ['views/sale_order.xml'],
+ 'demo': ['demo/sale_demo.xml'],
'installable': True,
}
diff --git a/sale_start_end_dates/sale_demo.xml b/sale_start_end_dates/demo/sale_demo.xml
similarity index 67%
rename from sale_start_end_dates/sale_demo.xml
rename to sale_start_end_dates/demo/sale_demo.xml
index b8a064a43c4..486dc6c7745 100644
--- a/sale_start_end_dates/sale_demo.xml
+++ b/sale_start_end_dates/demo/sale_demo.xml
@@ -1,12 +1,11 @@
-
-
+
-
-
+
diff --git a/sale_start_end_dates/models/__init__.py b/sale_start_end_dates/models/__init__.py
new file mode 100644
index 00000000000..78a96049607
--- /dev/null
+++ b/sale_start_end_dates/models/__init__.py
@@ -0,0 +1,3 @@
+# -*- coding: utf-8 -*-
+
+from . import sale
diff --git a/sale_start_end_dates/models/sale.py b/sale_start_end_dates/models/sale.py
new file mode 100644
index 00000000000..a4de222df24
--- /dev/null
+++ b/sale_start_end_dates/models/sale.py
@@ -0,0 +1,158 @@
+# -*- coding: utf-8 -*-
+# © 2014-2016 Akretion (http://www.akretion.com)
+# @author Alexis de Lattre
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
+
+from openerp import models, fields, api, _
+from openerp.exceptions import ValidationError
+from dateutil.relativedelta import relativedelta
+
+
+class SaleOrder(models.Model):
+ _inherit = 'sale.order'
+
+ default_start_date = fields.Date(string='Default Start Date')
+ default_end_date = fields.Date(string='Default End Date')
+
+ @api.one
+ @api.constrains('default_start_date', 'default_end_date')
+ def _check_default_start_end_dates(self):
+ if (
+ self.default_start_date and
+ self.default_end_date and
+ self.default_start_date > self.default_end_date):
+ raise ValidationError(
+ _("Default Start Date should be before or be the "
+ "same as Default End Date for sale order %s")
+ % self.name)
+
+ @api.onchange('default_start_date')
+ def default_start_date_change(self):
+ if (
+ self.default_start_date and
+ self.default_end_date and
+ self.default_start_date > self.default_end_date):
+ self.default_end_date = self.default_start_date
+
+ @api.onchange('default_end_date')
+ def default_end_date_change(self):
+ if (
+ self.default_start_date and
+ self.default_end_date and
+ self.default_start_date > self.default_end_date):
+ self.default_start_date = self.default_end_date
+
+
+class SaleOrderLine(models.Model):
+ _inherit = 'sale.order.line'
+
+ start_date = fields.Date(
+ string='Start Date', readonly=True,
+ states={'draft': [('readonly', False)]})
+ end_date = fields.Date(
+ string='End Date', readonly=True,
+ states={'draft': [('readonly', False)]})
+ number_of_days = fields.Integer(string='Number of Days')
+ must_have_dates = fields.Boolean(
+ related='product_id.must_have_dates', readonly=True)
+
+ @api.one
+ @api.constrains('start_date', 'end_date', 'number_of_days')
+ def _check_start_end_dates(self):
+ if self.product_id and self.must_have_dates:
+ if not self.end_date:
+ raise ValidationError(_(
+ "Missing End Date for sale order line with "
+ "Product '%s'.") % (self.product_id.name))
+ if not self.start_date:
+ raise ValidationError(_(
+ "Missing Start Date for sale order line with "
+ "Product '%s'.") % (self.product_id.name))
+ if not self.number_of_days:
+ raise ValidationError(_(
+ "Missing number of days for sale order line with "
+ "Product '%s'.") % (self.product_id.name))
+ if self.start_date > self.end_date:
+ raise ValidationError(_(
+ "Start Date should be before or be the same as "
+ "End Date for sale order line with Product '%s'.")
+ % (self.product_id.name))
+ if self.number_of_days < 0:
+ raise ValidationError(_(
+ "On sale order line with Product '%s', the "
+ "number of days is negative ; this is not allowed.")
+ % (self.product_id.name))
+ days_delta = (
+ fields.Date.from_string(self.end_date) -
+ fields.Date.from_string(self.start_date)).days + 1
+ if self.number_of_days != days_delta:
+ raise ValidationError(_(
+ "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.")
+ % (self.product_id.name, days_delta, self.start_date,
+ self.end_date, self.number_of_days))
+
+ @api.multi
+ def _prepare_invoice_line(self, qty):
+ self.ensure_one()
+ res = super(SaleOrderLine, self)._prepare_invoice_line(qty)
+ if self.must_have_dates:
+ res.update({
+ 'start_date': self.start_date,
+ 'end_date': self.end_date,
+ })
+ return res
+
+ @api.onchange('end_date')
+ def end_date_change(self):
+ if self.end_date:
+ if self.start_date and self.start_date > self.end_date:
+ self.start_date = self.end_date
+ if self.start_date:
+ number_of_days = (
+ fields.Date.from_string(self.end_date) -
+ fields.Date.from_string(self.start_date)).days + 1
+ if self.number_of_days != number_of_days:
+ self.number_of_days = number_of_days
+
+ @api.onchange('start_date')
+ def start_date_change(self):
+ if self.start_date:
+ if self.end_date and self.start_date > self.end_date:
+ self.end_date = self.start_date
+ if self.end_date:
+ number_of_days = (
+ fields.Date.from_string(self.end_date) -
+ fields.Date.from_string(self.start_date)).days + 1
+ if self.number_of_days != number_of_days:
+ self.number_of_days = number_of_days
+
+ @api.onchange('number_of_days')
+ def number_of_days_change(self):
+ if self.number_of_days:
+ if self.start_date:
+ end_date_dt = fields.Date.from_string(self.start_date) +\
+ relativedelta(days=self.number_of_days - 1)
+ end_date = fields.Date.to_string(end_date_dt)
+ if self.end_date != end_date:
+ self.end_date = end_date
+ elif self.end_date:
+ self.start_date = fields.Date.from_string(self.end_date) -\
+ relativedelta(days=self.number_of_days - 1)
+
+ @api.onchange('product_id')
+ def start_end_dates_product_id_change(self):
+ if self.product_id:
+ if self.order_id.default_start_date:
+ self.start_date = self.order_id.default_start_date
+ else:
+ self.start_date = False
+ if self.order_id.default_end_date:
+ self.end_date = self.order_id.default_end_date
+ else:
+ self.end_date = False
+ else:
+ self.start_date = False
+ self.end_date = False
diff --git a/sale_start_end_dates/sale.py b/sale_start_end_dates/sale.py
deleted file mode 100644
index 8bf87a0fea4..00000000000
--- a/sale_start_end_dates/sale.py
+++ /dev/null
@@ -1,210 +0,0 @@
-# -*- encoding: utf-8 -*-
-##############################################################################
-#
-# Sale Start End Dates module for Odoo
-# Copyright (C) 2014-2015 Akretion (http://www.akretion.com)
-# @author Alexis de Lattre
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
-
-from openerp import models, fields, api, _
-from openerp.exceptions import ValidationError
-from dateutil.relativedelta import relativedelta
-
-
-class SaleOrder(models.Model):
- _inherit = 'sale.order'
-
- default_start_date = fields.Date(string='Default Start Date')
- default_end_date = fields.Date(string='Default End Date')
-
- @api.one
- @api.constrains('default_start_date', 'default_end_date')
- def _check_default_start_end_dates(self):
- if (
- self.default_start_date and
- self.default_end_date and
- self.default_start_date > self.default_end_date):
- raise ValidationError(
- _("Default Start Date should be before or be the "
- "same as Default End Date for sale order %s")
- % self.name)
-
- @api.onchange('default_start_date')
- def default_start_date_change(self):
- if (
- self.default_start_date and
- self.default_end_date and
- self.default_start_date > self.default_end_date):
- self.default_end_date = self.default_start_date
-
- @api.onchange('default_end_date')
- def default_end_date_change(self):
- if (
- self.default_start_date and
- self.default_end_date and
- self.default_start_date > self.default_end_date):
- self.default_start_date = self.default_end_date
-
-
-class SaleOrderLine(models.Model):
- _inherit = 'sale.order.line'
-
- @api.one
- @api.depends('start_date', 'end_date')
- def _compute_number_of_days(self):
- if self.start_date and self.end_date:
- self.number_of_days = (
- fields.Date.from_string(self.end_date) -
- fields.Date.from_string(self.start_date)).days + 1
- else:
- self.number_of_days = 0
-
- start_date = fields.Date(
- string='Start Date', readonly=True,
- states={'draft': [('readonly', False)]})
- end_date = fields.Date(
- string='End Date', readonly=True,
- states={'draft': [('readonly', False)]})
- number_of_days = fields.Integer(string='Number of Days')
- must_have_dates = fields.Boolean(
- string='Must Have Start and End Dates', readonly=True,
- states={'draft': [('readonly', False)]})
-
- @api.one
- @api.constrains('start_date', 'end_date', 'number_of_days')
- def _check_start_end_dates(self):
- if self.product_id and self.must_have_dates:
- if not self.end_date:
- raise ValidationError(
- _("Missing End Date for sale order line with "
- "Product '%s'.")
- % (self.product_id.name))
- if not self.start_date:
- raise ValidationError(
- _("Missing Start Date for sale order line with "
- "Product '%s'.")
- % (self.product_id.name))
- if not self.number_of_days:
- raise ValidationError(
- _("Missing number of days for sale order line with "
- "Product '%s'.")
- % (self.product_id.name))
- if self.start_date > self.end_date:
- raise ValidationError(
- _("Start Date should be before or be the same as "
- "End Date for sale order line with Product '%s'.")
- % (self.product_id.name))
- if self.number_of_days < 0:
- raise ValidationError(
- _("On sale order line with Product '%s', the "
- "number of days is negative ; this is not allowed.")
- % (self.product_id.name))
- days_delta = (
- fields.Date.from_string(self.end_date) -
- fields.Date.from_string(self.start_date)).days + 1
- if self.number_of_days != days_delta:
- raise ValidationError(
- _("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.")
- % (self.product_id.name, days_delta, self.start_date,
- self.end_date, self.number_of_days))
-
- @api.model
- def _prepare_order_line_invoice_line(self, line, account_id=False):
- res = super(SaleOrderLine, self)._prepare_order_line_invoice_line(
- line, account_id=account_id)
- if line.must_have_dates:
- res.update({
- 'start_date': line.start_date,
- 'end_date': line.end_date,
- })
- return res
-
- @api.onchange('end_date')
- def end_date_change(self):
- if self.end_date:
- if self.start_date and self.start_date > self.end_date:
- self.start_date = self.end_date
- if self.start_date:
- number_of_days = (
- fields.Date.from_string(self.end_date) -
- fields.Date.from_string(self.start_date)).days + 1
- if self.number_of_days != number_of_days:
- self.number_of_days = number_of_days
-
- @api.onchange('start_date')
- def start_date_change(self):
- if self.start_date:
- if self.end_date and self.start_date > self.end_date:
- self.end_date = self.start_date
- if self.end_date:
- number_of_days = (
- fields.Date.from_string(self.end_date) -
- fields.Date.from_string(self.start_date)).days + 1
- if self.number_of_days != number_of_days:
- self.number_of_days = number_of_days
-
- @api.onchange('number_of_days')
- def number_of_days_change(self):
- if self.number_of_days:
- if self.start_date:
- end_date_dt = fields.Date.from_string(self.start_date) +\
- relativedelta(days=self.number_of_days - 1)
- end_date = fields.Date.to_string(end_date_dt)
- if self.end_date != end_date:
- self.end_date = end_date
- elif self.end_date:
- self.start_date = fields.Date.from_string(self.end_date) -\
- relativedelta(days=self.number_of_days - 1)
-
- @api.multi
- def product_id_change(
- self, pricelist, product, qty=0,
- uom=False, qty_uos=0, uos=False, name='', partner_id=False,
- lang=False, update_tax=True, date_order=False, packaging=False,
- fiscal_position=False, flag=False):
- res = super(SaleOrderLine, self).product_id_change(
- pricelist, product, qty=qty, uom=uom,
- qty_uos=qty_uos, uos=uos, name=name, partner_id=partner_id,
- lang=lang, update_tax=update_tax, date_order=date_order,
- packaging=packaging, fiscal_position=fiscal_position,
- flag=flag)
- if not product:
- res['value'].update({
- 'must_have_dates': False,
- 'start_date': False,
- 'end_date': False,
- })
- else:
- product_o = self.env['product.product'].browse(product)
- if product_o.must_have_dates:
- res['value']['must_have_dates'] = True
- if self.env.context.get('default_start_date'):
- res['value']['start_date'] = self.env.context.get(
- 'default_start_date')
- if self.env.context.get('default_end_date'):
- res['value']['end_date'] = self.env.context.get(
- 'default_end_date')
- else:
- res['value'].update({
- 'must_have_dates': False,
- 'start_date': False,
- 'end_date': False,
- })
- return res
diff --git a/sale_start_end_dates/sale_view.xml b/sale_start_end_dates/views/sale_order.xml
similarity index 53%
rename from sale_start_end_dates/sale_view.xml
rename to sale_start_end_dates/views/sale_order.xml
index 5d4cb3ceb72..f52265c4e39 100644
--- a/sale_start_end_dates/sale_view.xml
+++ b/sale_start_end_dates/views/sale_order.xml
@@ -1,13 +1,11 @@
-
-
-
+
@@ -34,21 +32,8 @@
-
- {'default_start_date': parent.default_start_date}
- {'default_end_date': parent.default_end_date}
-
-
- {'default_start_date': parent.default_start_date}
- {'default_end_date': parent.default_end_date}
-
-
- {'default_start_date': parent.default_start_date}
- {'default_end_date': parent.default_end_date}
-
-
-
+
From 005aa88ae959e304a65f623502c980436b47c731 Mon Sep 17 00:00:00 2001
From: "Dhinesh, Sodexis"
Date: Tue, 15 Nov 2016 12:37:47 +0530
Subject: [PATCH 06/34] sale_start_end_dates and sale_rental
---
sale_start_end_dates/README.rst | 3 ++-
sale_start_end_dates/__init__.py | 1 +
sale_start_end_dates/{__openerp__.py => __manifest__.py} | 7 ++++---
sale_start_end_dates/demo/sale_demo.xml | 1 +
sale_start_end_dates/models/__init__.py | 1 +
sale_start_end_dates/models/sale.py | 3 ++-
sale_start_end_dates/views/sale_order.xml | 1 +
7 files changed, 12 insertions(+), 5 deletions(-)
rename sale_start_end_dates/{__openerp__.py => __manifest__.py} (71%)
diff --git a/sale_start_end_dates/README.rst b/sale_start_end_dates/README.rst
index 871dfee1595..6fe0668954e 100644
--- a/sale_start_end_dates/README.rst
+++ b/sale_start_end_dates/README.rst
@@ -17,7 +17,7 @@ Usage
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
- :target: https://runbot.odoo-community.org/runbot/167/9.0
+ :target: https://runbot.odoo-community.org/runbot/167/10.0
Bug Tracker
===========
@@ -34,6 +34,7 @@ Contributors
------------
* Alexis de Lattre
+* Sodexis
Maintainer
----------
diff --git a/sale_start_end_dates/__init__.py b/sale_start_end_dates/__init__.py
index cde864bae21..58198d819e2 100644
--- a/sale_start_end_dates/__init__.py
+++ b/sale_start_end_dates/__init__.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
+# Copyright 2016 Sodexis (http://sodexis.com)
from . import models
diff --git a/sale_start_end_dates/__openerp__.py b/sale_start_end_dates/__manifest__.py
similarity index 71%
rename from sale_start_end_dates/__openerp__.py
rename to sale_start_end_dates/__manifest__.py
index 08c26f6f9a6..6a6256e44fe 100644
--- a/sale_start_end_dates/__openerp__.py
+++ b/sale_start_end_dates/__manifest__.py
@@ -1,15 +1,16 @@
# -*- coding: utf-8 -*-
-# © 2014-2016 Akretion (http://www.akretion.com)
+# Copyright 2014-2016 Akretion (http://www.akretion.com)
# @author Alexis de Lattre
+# Copyright 2016 Sodexis (http://sodexis.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Sale Start End Dates',
- 'version': '9.0.1.0.0',
+ 'version': '10.0.1.0.0',
'category': 'Sales Management',
'license': 'AGPL-3',
'summary': 'Adds start date and end date on sale order lines',
- 'author': 'Akretion,Odoo Community Association (OCA)',
+ 'author': 'Akretion, Sodexis, Odoo Community Association (OCA)',
'website': 'http://www.akretion.com',
'depends': ['account_invoice_start_end_dates', 'sale'],
'data': ['views/sale_order.xml'],
diff --git a/sale_start_end_dates/demo/sale_demo.xml b/sale_start_end_dates/demo/sale_demo.xml
index 486dc6c7745..dfe18c54dee 100644
--- a/sale_start_end_dates/demo/sale_demo.xml
+++ b/sale_start_end_dates/demo/sale_demo.xml
@@ -2,6 +2,7 @@
diff --git a/sale_start_end_dates/models/__init__.py b/sale_start_end_dates/models/__init__.py
index 78a96049607..ee6e36745f5 100644
--- a/sale_start_end_dates/models/__init__.py
+++ b/sale_start_end_dates/models/__init__.py
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
+# Copyright 2016 Sodexis (http://sodexis.com)
from . import sale
diff --git a/sale_start_end_dates/models/sale.py b/sale_start_end_dates/models/sale.py
index a4de222df24..3d15deb4c67 100644
--- a/sale_start_end_dates/models/sale.py
+++ b/sale_start_end_dates/models/sale.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
-# © 2014-2016 Akretion (http://www.akretion.com)
+# Copyright 2014-2016 Akretion (http://www.akretion.com)
# @author Alexis de Lattre
+# Copyright 2016 Sodexis (http://sodexis.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import models, fields, api, _
diff --git a/sale_start_end_dates/views/sale_order.xml b/sale_start_end_dates/views/sale_order.xml
index f52265c4e39..901721bd148 100644
--- a/sale_start_end_dates/views/sale_order.xml
+++ b/sale_start_end_dates/views/sale_order.xml
@@ -2,6 +2,7 @@
From 5fb02bb5e8820ded21014d6457121752fa2494ca Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Thu, 11 May 2017 23:29:24 +0200
Subject: [PATCH 07/34] Product qty on rental pickings
Replace openerp by odoo in import declarations
---
sale_start_end_dates/__init__.py | 1 -
sale_start_end_dates/i18n/ca.po | 117 ++++++++++++++++++++++++
sale_start_end_dates/i18n/de.po | 65 ++++++-------
sale_start_end_dates/i18n/el_GR.po | 117 ++++++++++++++++++++++++
sale_start_end_dates/i18n/es.po | 56 ++++++------
sale_start_end_dates/i18n/es_ES.po | 117 ++++++++++++++++++++++++
sale_start_end_dates/i18n/es_VE.po | 117 ++++++++++++++++++++++++
sale_start_end_dates/i18n/fr.po | 99 ++++++++++++--------
sale_start_end_dates/i18n/hr.po | 117 ++++++++++++++++++++++++
sale_start_end_dates/i18n/hr_HR.po | 117 ++++++++++++++++++++++++
sale_start_end_dates/i18n/hu.po | 117 ++++++++++++++++++++++++
sale_start_end_dates/i18n/it.po | 73 ++++++++-------
sale_start_end_dates/i18n/nl.po | 117 ++++++++++++++++++++++++
sale_start_end_dates/i18n/nl_NL.po | 117 ++++++++++++++++++++++++
sale_start_end_dates/i18n/pt.po | 117 ++++++++++++++++++++++++
sale_start_end_dates/i18n/pt_BR.po | 117 ++++++++++++++++++++++++
sale_start_end_dates/i18n/ro.po | 117 ++++++++++++++++++++++++
sale_start_end_dates/i18n/sk.po | 117 ++++++++++++++++++++++++
sale_start_end_dates/i18n/sl.po | 107 +++++++++++++---------
sale_start_end_dates/i18n/tr.po | 117 ++++++++++++++++++++++++
sale_start_end_dates/i18n/tr_TR.po | 117 ++++++++++++++++++++++++
sale_start_end_dates/i18n/vi_VN.po | 117 ++++++++++++++++++++++++
sale_start_end_dates/models/__init__.py | 1 -
sale_start_end_dates/models/sale.py | 4 +-
24 files changed, 2100 insertions(+), 178 deletions(-)
create mode 100644 sale_start_end_dates/i18n/ca.po
create mode 100644 sale_start_end_dates/i18n/el_GR.po
create mode 100644 sale_start_end_dates/i18n/es_ES.po
create mode 100644 sale_start_end_dates/i18n/es_VE.po
create mode 100644 sale_start_end_dates/i18n/hr.po
create mode 100644 sale_start_end_dates/i18n/hr_HR.po
create mode 100644 sale_start_end_dates/i18n/hu.po
create mode 100644 sale_start_end_dates/i18n/nl.po
create mode 100644 sale_start_end_dates/i18n/nl_NL.po
create mode 100644 sale_start_end_dates/i18n/pt.po
create mode 100644 sale_start_end_dates/i18n/pt_BR.po
create mode 100644 sale_start_end_dates/i18n/ro.po
create mode 100644 sale_start_end_dates/i18n/sk.po
create mode 100644 sale_start_end_dates/i18n/tr.po
create mode 100644 sale_start_end_dates/i18n/tr_TR.po
create mode 100644 sale_start_end_dates/i18n/vi_VN.po
diff --git a/sale_start_end_dates/__init__.py b/sale_start_end_dates/__init__.py
index 58198d819e2..cde864bae21 100644
--- a/sale_start_end_dates/__init__.py
+++ b/sale_start_end_dates/__init__.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
-# Copyright 2016 Sodexis (http://sodexis.com)
from . import models
diff --git a/sale_start_end_dates/i18n/ca.po b/sale_start_end_dates/i18n/ca.po
new file mode 100644
index 00000000000..ccccfd74c4a
--- /dev/null
+++ b/sale_start_end_dates/i18n/ca.po
@@ -0,0 +1,117 @@
+# 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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: ca\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
+#: code:addons/sale_start_end_dates/models/sale.py:26
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %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
+#: code:addons/sale_start_end_dates/models/sale.py:65
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:69
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:73
+#, python-format
+msgid "Missing number of days 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 and 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
+#: code:addons/sale_start_end_dates/models/sale.py:82
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:90
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Comandes de venda"
+
+#. 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
+#: code:addons/sale_start_end_dates/models/sale.py:77
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
diff --git a/sale_start_end_dates/i18n/de.po b/sale_start_end_dates/i18n/de.po
index 0068cf047c9..118fbb1da42 100644
--- a/sale_start_end_dates/i18n/de.po
+++ b/sale_start_end_dates/i18n/de.po
@@ -3,15 +3,15 @@
# * sale_start_end_dates
#
# Translators:
-# Rudolf Schnapka , 2015
+# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: sale-workflow (8.0)\n"
+"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-10-08 20:48+0000\n"
-"PO-Revision-Date: 2015-10-09 13:14+0000\n"
-"Last-Translator: Rudolf Schnapka \n"
-"Language-Team: German (http://www.transifex.com/oca/OCA-sale-workflow-8-0/language/de/)\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"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
@@ -19,17 +19,17 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_start_end_dates
-#: field:sale.order,default_end_date:0
+#: 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
-#: field:sale.order,default_start_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:42
+#: code:addons/sale_start_end_dates/models/sale.py:26
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -37,54 +37,65 @@ msgid ""
msgstr "Vorgabe-Anfangsdatum muss im Auftrag %s vor ooder am Enddatum liegen"
#. module: sale_start_end_dates
-#: field:sale.order.line,end_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:93
+#: 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
+#: code:addons/sale_start_end_dates/models/sale.py:65
#, 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
-#: code:addons/sale_start_end_dates/sale.py:98
+#: code:addons/sale_start_end_dates/models/sale.py:69
#, 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
-#: code:addons/sale_start_end_dates/sale.py:103
+#: code:addons/sale_start_end_dates/models/sale.py:73
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr "Fehlende Anzahl Tage in Auftragsposition des Produkts '%s'."
#. module: sale_start_end_dates
-#: field:sale.order.line,must_have_dates:0
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_must_have_dates
msgid "Must Have Start and End Dates"
msgstr "Muss Anfangs- und Enddatum haben"
#. module: sale_start_end_dates
-#: field:sale.order.line,number_of_days:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:113
+#: code:addons/sale_start_end_dates/models/sale.py:82
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
"is not allowed."
-msgstr "In Auftragsposition des Produkts '%s' ist die Anzahl Tage negativ; dies ist nicht zulässig."
+msgstr ""
+"In Auftragsposition des Produkts '%s' ist die Anzahl Tage negativ; dies ist "
+"nicht zulässig."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:121
+#: code:addons/sale_start_end_dates/models/sale.py:90
#, python-format
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."
+msgstr ""
+"In Auftragsposition des Produkts '%s' liegen %d Tage zwischen Anfangs- (%s) "
+"und Enddatum (%s), das Anzahl Tage -Feld weist jedoch %d Tage aus."
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
@@ -97,24 +108,16 @@ msgid "Sales Order Line"
msgstr "Auftragsposition"
#. module: sale_start_end_dates
-#: field:sale.order.line,start_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:108
+#: code:addons/sale_start_end_dates/models/sale.py:77
#, 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."
-
-#. module: sale_start_end_dates
-#: view:sale.order:sale_start_end_dates.view_order_form
-msgid "{'default_end_date': parent.default_end_date}"
-msgstr ""
-
-#. module: sale_start_end_dates
-#: view:sale.order:sale_start_end_dates.view_order_form
-msgid "{'default_start_date': parent.default_start_date}"
msgstr ""
+"In der Auftragsposition zum Produkt %s muss das Anfangsdatum vor oder am "
+"Enddatum liegen."
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..853019a30f0
--- /dev/null
+++ b/sale_start_end_dates/i18n/el_GR.po
@@ -0,0 +1,117 @@
+# 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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: el_GR\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
+#: code:addons/sale_start_end_dates/models/sale.py:26
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %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
+#: code:addons/sale_start_end_dates/models/sale.py:65
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:69
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:73
+#, python-format
+msgid "Missing number of days 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 and 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
+#: code:addons/sale_start_end_dates/models/sale.py:82
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:90
+#, python-format
+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 ""
+
+#. 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
+#: code:addons/sale_start_end_dates/models/sale.py:77
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
diff --git a/sale_start_end_dates/i18n/es.po b/sale_start_end_dates/i18n/es.po
index 4e52d8609de..6e8a4c3e0cf 100644
--- a/sale_start_end_dates/i18n/es.po
+++ b/sale_start_end_dates/i18n/es.po
@@ -3,14 +3,15 @@
# * sale_start_end_dates
#
# Translators:
+# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: sale-workflow (8.0)\n"
+"Project-Id-Version: Odoo Server 10.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: Spanish (http://www.transifex.com/oca/OCA-sale-workflow-8-0/language/es/)\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 (https://www.transifex.com/oca/teams/23907/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
@@ -18,17 +19,17 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_start_end_dates
-#: field:sale.order,default_end_date:0
+#: 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
-#: field:sale.order,default_start_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:42
+#: code:addons/sale_start_end_dates/models/sale.py:26
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -36,40 +37,47 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: field:sale.order.line,end_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:93
+#: 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
+#: code:addons/sale_start_end_dates/models/sale.py:65
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:98
+#: code:addons/sale_start_end_dates/models/sale.py:69
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:103
+#: code:addons/sale_start_end_dates/models/sale.py:73
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: field:sale.order.line,must_have_dates:0
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_must_have_dates
msgid "Must Have Start and End Dates"
msgstr ""
#. module: sale_start_end_dates
-#: field:sale.order.line,number_of_days:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:113
+#: code:addons/sale_start_end_dates/models/sale.py:82
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -77,7 +85,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:121
+#: code:addons/sale_start_end_dates/models/sale.py:90
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -93,27 +101,17 @@ msgstr "Pedido de venta"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
msgid "Sales Order Line"
-msgstr ""
+msgstr "Línea de pedido de venta"
#. module: sale_start_end_dates
-#: field:sale.order.line,start_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:108
+#: code:addons/sale_start_end_dates/models/sale.py:77
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-
-#. module: sale_start_end_dates
-#: view:sale.order:sale_start_end_dates.view_order_form
-msgid "{'default_end_date': parent.default_end_date}"
-msgstr ""
-
-#. module: sale_start_end_dates
-#: view:sale.order:sale_start_end_dates.view_order_form
-msgid "{'default_start_date': parent.default_start_date}"
-msgstr ""
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..f39b687a865
--- /dev/null
+++ b/sale_start_end_dates/i18n/es_ES.po
@@ -0,0 +1,117 @@
+# 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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: es_ES\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
+#: code:addons/sale_start_end_dates/models/sale.py:26
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %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
+#: code:addons/sale_start_end_dates/models/sale.py:65
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:69
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:73
+#, python-format
+msgid "Missing number of days 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 and 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
+#: code:addons/sale_start_end_dates/models/sale.py:82
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:90
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Pedido de venta"
+
+#. 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
+#: code:addons/sale_start_end_dates/models/sale.py:77
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
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..c5c1480f663
--- /dev/null
+++ b/sale_start_end_dates/i18n/es_VE.po
@@ -0,0 +1,117 @@
+# 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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: es_VE\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
+#: code:addons/sale_start_end_dates/models/sale.py:26
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %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
+#: code:addons/sale_start_end_dates/models/sale.py:65
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:69
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:73
+#, python-format
+msgid "Missing number of days 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 and 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
+#: code:addons/sale_start_end_dates/models/sale.py:82
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:90
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Pedidos 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 ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:77
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
diff --git a/sale_start_end_dates/i18n/fr.po b/sale_start_end_dates/i18n/fr.po
index 171d556d7d7..bcdb0681f04 100644
--- a/sale_start_end_dates/i18n/fr.po
+++ b/sale_start_end_dates/i18n/fr.po
@@ -1,80 +1,113 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
-# * sale_start_end_dates
-#
+# * sale_start_end_dates
+#
+# Translators:
+# guillaume bauer , 2017
+# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 8.0\n"
+"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-06-02 13:01+0000\n"
-"PO-Revision-Date: 2015-06-02 13:01+0000\n"
-"Last-Translator: <>\n"
-"Language-Team: \n"
+"POT-Creation-Date: 2017-11-23 01:51+0000\n"
+"PO-Revision-Date: 2017-11-23 01:51+0000\n"
+"Last-Translator: OCA Transbot , 2017\n"
+"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Plural-Forms: \n"
+"Language: fr\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: sale_start_end_dates
-#: field:sale.order,default_end_date:0
+#: 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
-#: field:sale.order,default_start_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:42
+#: code:addons/sale_start_end_dates/models/sale.py:26
#, 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 date de début par défaut doit être antérieure ou identique à la date de "
+"fin par défaut du bon de commande %s"
#. module: sale_start_end_dates
-#: field:sale.order.line,end_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:93
+#: 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 ce produit."
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:65
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
+"Un bon de commande avec ligne article saisie doit comporter une date de fin "
+"'%s'."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:98
+#: code:addons/sale_start_end_dates/models/sale.py:69
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
+"Un bon de commande avec ligne article saisie doit comporter une date de "
+"début '%s'."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:103
+#: code:addons/sale_start_end_dates/models/sale.py:73
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
+"Un bon de commande avec ligne article saisie doit comporter un nombre de "
+"jours '%s'."
#. module: sale_start_end_dates
-#: field:sale.order.line,must_have_dates:0
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_must_have_dates
msgid "Must Have Start and End Dates"
-msgstr ""
+msgstr "Doit comporter une date de début et de fin"
#. module: sale_start_end_dates
-#: field:sale.order.line,number_of_days:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:113
+#: code:addons/sale_start_end_dates/models/sale.py:82
#, python-format
-msgid "On sale order line with Product '%s', the number of days is negative ; this is not allowed."
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
msgstr ""
+"Bon de commande avec ligne article saisie '%s', le nombre de jours est "
+"négatif; Ceci n'est pas autorisé."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:121
+#: code:addons/sale_start_end_dates/models/sale.py:90
#, python-format
-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."
+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 ""
+"Bon de commande avec ligne article saisie'%s', il y a %d jours entre la date"
+" de début (%s) et la date de fin (%s), mais le nombre de jours de champ a "
+"une valeur de %d jours."
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
@@ -84,25 +117,17 @@ 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 commandes de vente"
+msgstr "Sales Order Line"
#. module: sale_start_end_dates
-#: field:sale.order.line,start_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:108
+#: code:addons/sale_start_end_dates/models/sale.py:77
#, python-format
-msgid "Start Date should be before or be the same as End Date for sale order line with Product '%s'."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: view:sale.order:sale_start_end_dates.view_order_form
-msgid "{'default_end_date': parent.default_end_date}"
-msgstr ""
-
-#. module: sale_start_end_dates
-#: view:sale.order:sale_start_end_dates.view_order_form
-msgid "{'default_start_date': parent.default_start_date}"
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
msgstr ""
diff --git a/sale_start_end_dates/i18n/hr.po b/sale_start_end_dates/i18n/hr.po
new file mode 100644
index 00000000000..f546d48bf25
--- /dev/null
+++ b/sale_start_end_dates/i18n/hr.po
@@ -0,0 +1,117 @@
+# 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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: hr\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
+#: code:addons/sale_start_end_dates/models/sale.py:26
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %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
+#: code:addons/sale_start_end_dates/models/sale.py:65
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:69
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:73
+#, python-format
+msgid "Missing number of days 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 and 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
+#: code:addons/sale_start_end_dates/models/sale.py:82
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:90
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Prodajni nalog"
+
+#. 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
+#: code:addons/sale_start_end_dates/models/sale.py:77
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
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..5add921ea38
--- /dev/null
+++ b/sale_start_end_dates/i18n/hr_HR.po
@@ -0,0 +1,117 @@
+# 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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: hr_HR\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
+#: code:addons/sale_start_end_dates/models/sale.py:26
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %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
+#: code:addons/sale_start_end_dates/models/sale.py:65
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:69
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:73
+#, python-format
+msgid "Missing number of days 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 and 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
+#: code:addons/sale_start_end_dates/models/sale.py:82
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:90
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Prodjani nalog"
+
+#. 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
+#: code:addons/sale_start_end_dates/models/sale.py:77
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
diff --git a/sale_start_end_dates/i18n/hu.po b/sale_start_end_dates/i18n/hu.po
new file mode 100644
index 00000000000..177846e7472
--- /dev/null
+++ b/sale_start_end_dates/i18n/hu.po
@@ -0,0 +1,117 @@
+# 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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: hu\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
+#: code:addons/sale_start_end_dates/models/sale.py:26
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %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
+#: code:addons/sale_start_end_dates/models/sale.py:65
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:69
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:73
+#, python-format
+msgid "Missing number of days 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 and 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
+#: code:addons/sale_start_end_dates/models/sale.py:82
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:90
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Vevői megrendelés"
+
+#. 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
+#: code:addons/sale_start_end_dates/models/sale.py:77
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
diff --git a/sale_start_end_dates/i18n/it.po b/sale_start_end_dates/i18n/it.po
index 45e26bdfc19..c2223b5ed79 100644
--- a/sale_start_end_dates/i18n/it.po
+++ b/sale_start_end_dates/i18n/it.po
@@ -3,15 +3,15 @@
# * sale_start_end_dates
#
# Translators:
-# Stefano , 2015
+# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: sale-workflow (8.0)\n"
+"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-10-02 17:59+0000\n"
-"PO-Revision-Date: 2015-09-30 16:04+0000\n"
-"Last-Translator: Stefano \n"
-"Language-Team: Italian (http://www.transifex.com/oca/OCA-sale-workflow-8-0/language/it/)\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: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
@@ -19,72 +19,87 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_start_end_dates
-#: field:sale.order,default_end_date:0
+#: 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
-#: field:sale.order,default_start_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:42
+#: code:addons/sale_start_end_dates/models/sale.py:26
#, python-format
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."
+msgstr ""
+"La data di inizio deve essere inferiore o uguale alla data di fine per "
+"l'ordine %s."
#. module: sale_start_end_dates
-#: field:sale.order.line,end_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:93
+#: 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
+#: code:addons/sale_start_end_dates/models/sale.py:65
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr "Manca la data di fine nell'ordine di vendita per il prodotto '%s'"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:98
+#: code:addons/sale_start_end_dates/models/sale.py:69
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr "Manca la data di Inizio per il prodotto '%s'"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:103
+#: code:addons/sale_start_end_dates/models/sale.py:73
#, python-format
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'"
+msgstr ""
+"Mancano i numeri di giorni nell'ordine di vendita per il prodotto '%s'"
#. module: sale_start_end_dates
-#: field:sale.order.line,must_have_dates:0
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_must_have_dates
msgid "Must Have Start and End Dates"
msgstr "Necessario Data Inizio e Fine"
#. module: sale_start_end_dates
-#: field:sale.order.line,number_of_days:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:113
+#: code:addons/sale_start_end_dates/models/sale.py:82
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
"is not allowed."
-msgstr "L'ordine di vendita per il prodotto '%s' ha un numero di giorni negativo : questo no e' permesso."
+msgstr ""
+"L'ordine di vendita per il prodotto '%s' ha un numero di giorni negativo : "
+"questo no e' permesso."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:121
+#: code:addons/sale_start_end_dates/models/sale.py:90
#, python-format
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."
+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."
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
@@ -97,24 +112,16 @@ msgid "Sales Order Line"
msgstr "Linea d'ordine di vendita"
#. module: sale_start_end_dates
-#: field:sale.order.line,start_date:0
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_start_date
msgid "Start Date"
msgstr "Data di inizio"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:108
+#: code:addons/sale_start_end_dates/models/sale.py:77
#, 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."
-
-#. module: sale_start_end_dates
-#: view:sale.order:sale_start_end_dates.view_order_form
-msgid "{'default_end_date': parent.default_end_date}"
-msgstr ""
-
-#. module: sale_start_end_dates
-#: view:sale.order:sale_start_end_dates.view_order_form
-msgid "{'default_start_date': parent.default_start_date}"
msgstr ""
+"La data di inizio deve essere antecedente o uguale alla data di fine per il "
+"prodotto %s."
diff --git a/sale_start_end_dates/i18n/nl.po b/sale_start_end_dates/i18n/nl.po
new file mode 100644
index 00000000000..d7ec06f8e3b
--- /dev/null
+++ b/sale_start_end_dates/i18n/nl.po
@@ -0,0 +1,117 @@
+# 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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: nl\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
+#: code:addons/sale_start_end_dates/models/sale.py:26
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %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
+#: code:addons/sale_start_end_dates/models/sale.py:65
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:69
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:73
+#, python-format
+msgid "Missing number of days 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 and 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
+#: code:addons/sale_start_end_dates/models/sale.py:82
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:90
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Verkooporder"
+
+#. 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
+#: code:addons/sale_start_end_dates/models/sale.py:77
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
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..8cfdfd003e6
--- /dev/null
+++ b/sale_start_end_dates/i18n/nl_NL.po
@@ -0,0 +1,117 @@
+# 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: 2017-06-06 13:17+0000\n"
+"Last-Translator: Peter Hageman , 2017\n"
+"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: nl_NL\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 "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 ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:26
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %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 ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:65
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:69
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:73
+#, python-format
+msgid "Missing number of days 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 and 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
+#: code:addons/sale_start_end_dates/models/sale.py:82
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:90
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Verkooporder"
+
+#. 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
+#: code:addons/sale_start_end_dates/models/sale.py:77
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
diff --git a/sale_start_end_dates/i18n/pt.po b/sale_start_end_dates/i18n/pt.po
new file mode 100644
index 00000000000..fae7a2db22a
--- /dev/null
+++ b/sale_start_end_dates/i18n/pt.po
@@ -0,0 +1,117 @@
+# 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 (https://www.transifex.com/oca/teams/23907/pt/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: pt\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
+#: code:addons/sale_start_end_dates/models/sale.py:26
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %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
+#: code:addons/sale_start_end_dates/models/sale.py:65
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:69
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:73
+#, python-format
+msgid "Missing number of days 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 and 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
+#: code:addons/sale_start_end_dates/models/sale.py:82
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:90
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Ordem de Venda"
+
+#. 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
+#: code:addons/sale_start_end_dates/models/sale.py:77
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
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..b8943478a9d
--- /dev/null
+++ b/sale_start_end_dates/i18n/pt_BR.po
@@ -0,0 +1,117 @@
+# 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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: pt_BR\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
+#: code:addons/sale_start_end_dates/models/sale.py:26
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %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
+#: code:addons/sale_start_end_dates/models/sale.py:65
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:69
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:73
+#, python-format
+msgid "Missing number of days 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 and 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
+#: code:addons/sale_start_end_dates/models/sale.py:82
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:90
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Pedido de Venda"
+
+#. 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
+#: code:addons/sale_start_end_dates/models/sale.py:77
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
diff --git a/sale_start_end_dates/i18n/ro.po b/sale_start_end_dates/i18n/ro.po
new file mode 100644
index 00000000000..579963601e1
--- /dev/null
+++ b/sale_start_end_dates/i18n/ro.po
@@ -0,0 +1,117 @@
+# 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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: ro\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
+#: code:addons/sale_start_end_dates/models/sale.py:26
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %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
+#: code:addons/sale_start_end_dates/models/sale.py:65
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:69
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:73
+#, python-format
+msgid "Missing number of days 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 and 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
+#: code:addons/sale_start_end_dates/models/sale.py:82
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:90
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Comandă vânzare"
+
+#. 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
+#: code:addons/sale_start_end_dates/models/sale.py:77
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+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..d8e400b2071
--- /dev/null
+++ b/sale_start_end_dates/i18n/sk.po
@@ -0,0 +1,117 @@
+# 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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: sk\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
+#: code:addons/sale_start_end_dates/models/sale.py:26
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %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
+#: code:addons/sale_start_end_dates/models/sale.py:65
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:69
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:73
+#, python-format
+msgid "Missing number of days 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 and 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
+#: code:addons/sale_start_end_dates/models/sale.py:82
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:90
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Objednávka predaja"
+
+#. 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
+#: code:addons/sale_start_end_dates/models/sale.py:77
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
diff --git a/sale_start_end_dates/i18n/sl.po b/sale_start_end_dates/i18n/sl.po
index 59645cdf671..59d262ccd7c 100644
--- a/sale_start_end_dates/i18n/sl.po
+++ b/sale_start_end_dates/i18n/sl.po
@@ -1,82 +1,107 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
-# * sale_start_end_dates
-#
+# * sale_start_end_dates
+#
+# Translators:
+# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 8.0\n"
+"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-06-02 13:00+0000\n"
-"PO-Revision-Date: 2015-08-16 08:31+0200\n"
-"Last-Translator: Matjaz Mozetic \n"
-"Language-Team: \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"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: \n"
+"Content-Transfer-Encoding: \n"
"Language: sl\n"
-"X-Generator: Poedit 1.8.4\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
-#: field:sale.order,default_end_date:0
+#: 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
-#: field:sale.order,default_start_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:42
+#: code:addons/sale_start_end_dates/models/sale.py:26
#, python-format
-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 ""
+"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"
#. module: sale_start_end_dates
-#: field:sale.order.line,end_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:93
+#: 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
+#: code:addons/sale_start_end_dates/models/sale.py:65
#, 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'."
+msgstr ""
+"Manjkajoči končni datum na postavki prodajnega naloga s proizvodom '%s'."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:98
+#: code:addons/sale_start_end_dates/models/sale.py:69
#, 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'."
+msgstr ""
+"Manjkajoči začetni datum na postavki prodajnega naloga s proizvodom '%s'."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:103
+#: code:addons/sale_start_end_dates/models/sale.py:73
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
-msgstr "Manjkajoče število dni na postavki prodajnega naloga s proizvodom '%s'."
+msgstr ""
+"Manjkajoče število dni na postavki prodajnega naloga s proizvodom '%s'."
#. module: sale_start_end_dates
-#: field:sale.order.line,must_have_dates:0
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_must_have_dates
msgid "Must Have Start and End Dates"
msgstr "Zahteva se začetni in končni datum"
#. module: sale_start_end_dates
-#: field:sale.order.line,number_of_days:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:113
+#: code:addons/sale_start_end_dates/models/sale.py:82
#, python-format
-msgid "On sale order line with Product '%s', the number of days is negative ; this is not allowed."
-msgstr "Na postavki prodajnega naloga s proizvodom '%s' je število dni negativno; to ni dovoljeno."
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+"Na postavki prodajnega naloga s proizvodom '%s' je število dni negativno; to"
+" ni dovoljeno."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:121
+#: code:addons/sale_start_end_dates/models/sale.py:90
#, python-format
-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."
+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."
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
@@ -89,22 +114,16 @@ msgid "Sales Order Line"
msgstr "Postavka prodajnega naloga"
#. module: sale_start_end_dates
-#: field:sale.order.line,start_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:108
+#: code:addons/sale_start_end_dates/models/sale.py:77
#, 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)."
-
-#. module: sale_start_end_dates
-#: view:sale.order:sale_start_end_dates.view_order_form
-msgid "{'default_end_date': parent.default_end_date}"
-msgstr "{'default_end_date': parent.default_end_date}"
-
-#. module: sale_start_end_dates
-#: view:sale.order:sale_start_end_dates.view_order_form
-msgid "{'default_start_date': parent.default_start_date}"
-msgstr "{'default_start_date': parent.default_start_date}"
+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)."
diff --git a/sale_start_end_dates/i18n/tr.po b/sale_start_end_dates/i18n/tr.po
new file mode 100644
index 00000000000..4223072fe78
--- /dev/null
+++ b/sale_start_end_dates/i18n/tr.po
@@ -0,0 +1,117 @@
+# 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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: tr\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
+#: code:addons/sale_start_end_dates/models/sale.py:26
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %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
+#: code:addons/sale_start_end_dates/models/sale.py:65
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:69
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:73
+#, python-format
+msgid "Missing number of days 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 and 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
+#: code:addons/sale_start_end_dates/models/sale.py:82
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:90
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Sipariş Emri"
+
+#. 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
+#: code:addons/sale_start_end_dates/models/sale.py:77
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
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..2304431795f
--- /dev/null
+++ b/sale_start_end_dates/i18n/tr_TR.po
@@ -0,0 +1,117 @@
+# 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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: tr_TR\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
+#: code:addons/sale_start_end_dates/models/sale.py:26
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %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
+#: code:addons/sale_start_end_dates/models/sale.py:65
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:69
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:73
+#, python-format
+msgid "Missing number of days 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 and 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
+#: code:addons/sale_start_end_dates/models/sale.py:82
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:90
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Satış emri"
+
+#. 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
+#: code:addons/sale_start_end_dates/models/sale.py:77
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
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..099ec83c73a
--- /dev/null
+++ b/sale_start_end_dates/i18n/vi_VN.po
@@ -0,0 +1,117 @@
+# 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"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Language: vi_VN\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
+#: code:addons/sale_start_end_dates/models/sale.py:26
+#, python-format
+msgid ""
+"Default Start Date should be before or be the same as Default End Date for "
+"sale order %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
+#: code:addons/sale_start_end_dates/models/sale.py:65
+#, python-format
+msgid "Missing End Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:69
+#, python-format
+msgid "Missing Start Date for sale order line with Product '%s'."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:73
+#, python-format
+msgid "Missing number of days 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 and 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
+#: code:addons/sale_start_end_dates/models/sale.py:82
+#, python-format
+msgid ""
+"On sale order line with Product '%s', the number of days is negative ; this "
+"is not allowed."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale.py:90
+#, python-format
+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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model,name:sale_start_end_dates.model_sale_order
+msgid "Sales Order"
+msgstr "Đơn hàng Bán"
+
+#. 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
+#: code:addons/sale_start_end_dates/models/sale.py:77
+#, python-format
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
+msgstr ""
diff --git a/sale_start_end_dates/models/__init__.py b/sale_start_end_dates/models/__init__.py
index ee6e36745f5..78a96049607 100644
--- a/sale_start_end_dates/models/__init__.py
+++ b/sale_start_end_dates/models/__init__.py
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
-# Copyright 2016 Sodexis (http://sodexis.com)
from . import sale
diff --git a/sale_start_end_dates/models/sale.py b/sale_start_end_dates/models/sale.py
index 3d15deb4c67..24d5fc048ae 100644
--- a/sale_start_end_dates/models/sale.py
+++ b/sale_start_end_dates/models/sale.py
@@ -4,8 +4,8 @@
# Copyright 2016 Sodexis (http://sodexis.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-from openerp import models, fields, api, _
-from openerp.exceptions import ValidationError
+from odoo import models, fields, api, _
+from odoo.exceptions import ValidationError
from dateutil.relativedelta import relativedelta
From 311213d74d51b8f1369ca94170db5f6c1ac68860 Mon Sep 17 00:00:00 2001
From: oca-travis
Date: Wed, 20 Jun 2018 14:58:06 +0000
Subject: [PATCH 08/34] Update sale_start_end_dates.pot
---
sale_start_end_dates/i18n/ca.po | 4 +-
sale_start_end_dates/i18n/de.po | 4 +-
sale_start_end_dates/i18n/el_GR.po | 7 +--
sale_start_end_dates/i18n/es.po | 4 +-
sale_start_end_dates/i18n/es_ES.po | 7 +--
sale_start_end_dates/i18n/es_VE.po | 7 +--
sale_start_end_dates/i18n/fi.po | 50 +++++++++----------
sale_start_end_dates/i18n/fr.po | 14 +++---
sale_start_end_dates/i18n/hr.po | 7 +--
sale_start_end_dates/i18n/hr_HR.po | 10 ++--
sale_start_end_dates/i18n/hu.po | 4 +-
sale_start_end_dates/i18n/it.po | 13 +++--
sale_start_end_dates/i18n/nl.po | 4 +-
sale_start_end_dates/i18n/nl_NL.po | 7 +--
sale_start_end_dates/i18n/pt.po | 4 +-
sale_start_end_dates/i18n/pt_BR.po | 7 +--
sale_start_end_dates/i18n/ro.po | 7 +--
.../i18n/sale_start_end_dates.pot | 45 +++++++----------
sale_start_end_dates/i18n/sk.po | 4 +-
sale_start_end_dates/i18n/sl.po | 15 +++---
sale_start_end_dates/i18n/tr.po | 4 +-
sale_start_end_dates/i18n/tr_TR.po | 7 +--
sale_start_end_dates/i18n/vi_VN.po | 7 +--
sale_start_end_dates/i18n/zh_CN.po | 50 +++++++++----------
24 files changed, 146 insertions(+), 146 deletions(-)
diff --git a/sale_start_end_dates/i18n/ca.po b/sale_start_end_dates/i18n/ca.po
index ccccfd74c4a..83e37cab26c 100644
--- a/sale_start_end_dates/i18n/ca.po
+++ b/sale_start_end_dates/i18n/ca.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"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"
-"Language: ca\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_start_end_dates
diff --git a/sale_start_end_dates/i18n/de.po b/sale_start_end_dates/i18n/de.po
index 118fbb1da42..1c8780872da 100644
--- a/sale_start_end_dates/i18n/de.po
+++ b/sale_start_end_dates/i18n/de.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"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"
-"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_start_end_dates
diff --git a/sale_start_end_dates/i18n/el_GR.po b/sale_start_end_dates/i18n/el_GR.po
index 853019a30f0..79567237581 100644
--- a/sale_start_end_dates/i18n/el_GR.po
+++ b/sale_start_end_dates/i18n/el_GR.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -11,11 +11,12 @@ msgstr ""
"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-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"
-"Language: el_GR\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_start_end_dates
diff --git a/sale_start_end_dates/i18n/es.po b/sale_start_end_dates/i18n/es.po
index 6e8a4c3e0cf..0949a62857f 100644
--- a/sale_start_end_dates/i18n/es.po
+++ b/sale_start_end_dates/i18n/es.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"PO-Revision-Date: 2017-05-17 02:40+0000\n"
"Last-Translator: OCA Transbot , 2017\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"
-"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_start_end_dates
diff --git a/sale_start_end_dates/i18n/es_ES.po b/sale_start_end_dates/i18n/es_ES.po
index f39b687a865..35c045389fd 100644
--- a/sale_start_end_dates/i18n/es_ES.po
+++ b/sale_start_end_dates/i18n/es_ES.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -11,11 +11,12 @@ msgstr ""
"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-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"
-"Language: es_ES\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_start_end_dates
diff --git a/sale_start_end_dates/i18n/es_VE.po b/sale_start_end_dates/i18n/es_VE.po
index c5c1480f663..889c8f02ec2 100644
--- a/sale_start_end_dates/i18n/es_VE.po
+++ b/sale_start_end_dates/i18n/es_VE.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -11,11 +11,12 @@ msgstr ""
"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-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"
-"Language: es_VE\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_start_end_dates
diff --git a/sale_start_end_dates/i18n/fi.po b/sale_start_end_dates/i18n/fi.po
index d4d710e7d26..c407a324b60 100644
--- a/sale_start_end_dates/i18n/fi.po
+++ b/sale_start_end_dates/i18n/fi.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
msgid ""
msgstr ""
@@ -10,25 +10,26 @@ msgstr ""
"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-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"
-"Language: fi\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_start_end_dates
-#: field:sale.order,default_end_date:0
+#: 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
-#: field:sale.order,default_start_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:42
+#: code:addons/sale_start_end_dates/models/sale.py:26
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -36,40 +37,47 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: field:sale.order.line,end_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:93
+#: 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
+#: code:addons/sale_start_end_dates/models/sale.py:65
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:98
+#: code:addons/sale_start_end_dates/models/sale.py:69
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:103
+#: code:addons/sale_start_end_dates/models/sale.py:73
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: field:sale.order.line,must_have_dates:0
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_must_have_dates
msgid "Must Have Start and End Dates"
msgstr ""
#. module: sale_start_end_dates
-#: field:sale.order.line,number_of_days:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:113
+#: code:addons/sale_start_end_dates/models/sale.py:82
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -77,7 +85,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:121
+#: code:addons/sale_start_end_dates/models/sale.py:90
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -96,24 +104,14 @@ msgid "Sales Order Line"
msgstr ""
#. module: sale_start_end_dates
-#: field:sale.order.line,start_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:108
+#: code:addons/sale_start_end_dates/models/sale.py:77
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-
-#. module: sale_start_end_dates
-#: view:sale.order:sale_start_end_dates.view_order_form
-msgid "{'default_end_date': parent.default_end_date}"
-msgstr ""
-
-#. module: sale_start_end_dates
-#: view:sale.order:sale_start_end_dates.view_order_form
-msgid "{'default_start_date': parent.default_start_date}"
-msgstr ""
diff --git a/sale_start_end_dates/i18n/fr.po b/sale_start_end_dates/i18n/fr.po
index bcdb0681f04..2f4a2fa0e8b 100644
--- a/sale_start_end_dates/i18n/fr.po
+++ b/sale_start_end_dates/i18n/fr.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# guillaume bauer , 2017
# OCA Transbot , 2017
@@ -13,10 +13,10 @@ msgstr ""
"PO-Revision-Date: 2017-11-23 01:51+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
+"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: sale_start_end_dates
@@ -50,8 +50,8 @@ 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 ce produit."
+"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 ce produit."
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/models/sale.py:65
@@ -105,9 +105,9 @@ msgid ""
"Start Date (%s) and the End Date (%s), but the number of days field has a "
"value of %d days."
msgstr ""
-"Bon de commande avec ligne article saisie'%s', il y a %d jours entre la date"
-" de début (%s) et la date de fin (%s), mais le nombre de jours de champ a "
-"une valeur de %d jours."
+"Bon de commande avec ligne article saisie'%s', il y a %d jours entre la date "
+"de début (%s) et la date de fin (%s), mais le nombre de jours de champ a une "
+"valeur de %d jours."
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
diff --git a/sale_start_end_dates/i18n/hr.po b/sale_start_end_dates/i18n/hr.po
index f546d48bf25..969942045ff 100644
--- a/sale_start_end_dates/i18n/hr.po
+++ b/sale_start_end_dates/i18n/hr.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# Bole , 2017
msgid ""
@@ -12,11 +12,12 @@ msgstr ""
"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"
-"Language: hr\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"
+"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
diff --git a/sale_start_end_dates/i18n/hr_HR.po b/sale_start_end_dates/i18n/hr_HR.po
index 5add921ea38..912832bebcb 100644
--- a/sale_start_end_dates/i18n/hr_HR.po
+++ b/sale_start_end_dates/i18n/hr_HR.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -11,12 +11,14 @@ msgstr ""
"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-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"
-"Language: hr_HR\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"
+"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
diff --git a/sale_start_end_dates/i18n/hu.po b/sale_start_end_dates/i18n/hu.po
index 177846e7472..c0013216f82 100644
--- a/sale_start_end_dates/i18n/hu.po
+++ b/sale_start_end_dates/i18n/hu.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"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"
-"Language: hu\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_start_end_dates
diff --git a/sale_start_end_dates/i18n/it.po b/sale_start_end_dates/i18n/it.po
index c2223b5ed79..ac94c135cce 100644
--- a/sale_start_end_dates/i18n/it.po
+++ b/sale_start_end_dates/i18n/it.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"PO-Revision-Date: 2017-05-17 02:40+0000\n"
"Last-Translator: OCA Transbot , 2017\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"
-"Language: it\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_start_end_dates
@@ -66,8 +66,7 @@ msgstr "Manca la data di Inizio per il prodotto '%s'"
#: code:addons/sale_start_end_dates/models/sale.py:73
#, python-format
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'"
+msgstr "Mancano i numeri di giorni nell'ordine di vendita per 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
@@ -97,9 +96,9 @@ msgid ""
"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."
+"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."
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
diff --git a/sale_start_end_dates/i18n/nl.po b/sale_start_end_dates/i18n/nl.po
index d7ec06f8e3b..511e1a65501 100644
--- a/sale_start_end_dates/i18n/nl.po
+++ b/sale_start_end_dates/i18n/nl.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"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"
-"Language: nl\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_start_end_dates
diff --git a/sale_start_end_dates/i18n/nl_NL.po b/sale_start_end_dates/i18n/nl_NL.po
index 8cfdfd003e6..7c9356b4c1e 100644
--- a/sale_start_end_dates/i18n/nl_NL.po
+++ b/sale_start_end_dates/i18n/nl_NL.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# Peter Hageman , 2017
msgid ""
@@ -11,11 +11,12 @@ msgstr ""
"POT-Creation-Date: 2017-06-06 13:17+0000\n"
"PO-Revision-Date: 2017-06-06 13:17+0000\n"
"Last-Translator: Peter Hageman , 2017\n"
-"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n"
+"Language-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"
-"Language: nl_NL\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_start_end_dates
diff --git a/sale_start_end_dates/i18n/pt.po b/sale_start_end_dates/i18n/pt.po
index fae7a2db22a..ffd656b5c5b 100644
--- a/sale_start_end_dates/i18n/pt.po
+++ b/sale_start_end_dates/i18n/pt.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"PO-Revision-Date: 2017-05-17 02:40+0000\n"
"Last-Translator: OCA Transbot , 2017\n"
"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n"
+"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
-"Language: pt\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_start_end_dates
diff --git a/sale_start_end_dates/i18n/pt_BR.po b/sale_start_end_dates/i18n/pt_BR.po
index b8943478a9d..6ef6e764bb3 100644
--- a/sale_start_end_dates/i18n/pt_BR.po
+++ b/sale_start_end_dates/i18n/pt_BR.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -11,11 +11,12 @@ msgstr ""
"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-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"
-"Language: pt_BR\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: sale_start_end_dates
diff --git a/sale_start_end_dates/i18n/ro.po b/sale_start_end_dates/i18n/ro.po
index 579963601e1..74c60e68b86 100644
--- a/sale_start_end_dates/i18n/ro.po
+++ b/sale_start_end_dates/i18n/ro.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,11 +12,12 @@ msgstr ""
"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"
-"Language: ro\n"
-"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\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
diff --git a/sale_start_end_dates/i18n/sale_start_end_dates.pot b/sale_start_end_dates/i18n/sale_start_end_dates.pot
index 18c74f4a83b..f5b1d5f739e 100644
--- a/sale_start_end_dates/i18n/sale_start_end_dates.pot
+++ b/sale_start_end_dates/i18n/sale_start_end_dates.pot
@@ -4,10 +4,8 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 8.0\n"
+"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-06-02 13:00+0000\n"
-"PO-Revision-Date: 2015-06-02 13:00+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -16,62 +14,67 @@ msgstr ""
"Plural-Forms: \n"
#. module: sale_start_end_dates
-#: field:sale.order,default_end_date:0
+#: 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
-#: field:sale.order,default_start_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:42
+#: code:addons/sale_start_end_dates/models/sale.py:26
#, python-format
msgid "Default Start Date should be before or be the same as Default End Date for sale order %s"
msgstr ""
#. module: sale_start_end_dates
-#: field:sale.order.line,end_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:93
+#: 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
+#: code:addons/sale_start_end_dates/models/sale.py:65
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:98
+#: code:addons/sale_start_end_dates/models/sale.py:69
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:103
+#: code:addons/sale_start_end_dates/models/sale.py:73
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: field:sale.order.line,must_have_dates:0
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_must_have_dates
msgid "Must Have Start and End Dates"
msgstr ""
#. module: sale_start_end_dates
-#: field:sale.order.line,number_of_days:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:113
+#: code:addons/sale_start_end_dates/models/sale.py:82
#, python-format
msgid "On sale order line with Product '%s', the number of days is negative ; this is not allowed."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:121
+#: code:addons/sale_start_end_dates/models/sale.py:90
#, python-format
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 ""
@@ -87,23 +90,13 @@ msgid "Sales Order Line"
msgstr ""
#. module: sale_start_end_dates
-#: field:sale.order.line,start_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:108
+#: code:addons/sale_start_end_dates/models/sale.py:77
#, python-format
msgid "Start Date should be before or be the same as End Date for sale order line with Product '%s'."
msgstr ""
-#. module: sale_start_end_dates
-#: view:sale.order:sale_start_end_dates.view_order_form
-msgid "{'default_end_date': parent.default_end_date}"
-msgstr ""
-
-#. module: sale_start_end_dates
-#: view:sale.order:sale_start_end_dates.view_order_form
-msgid "{'default_start_date': parent.default_start_date}"
-msgstr ""
-
diff --git a/sale_start_end_dates/i18n/sk.po b/sale_start_end_dates/i18n/sk.po
index d8e400b2071..3d0ac40125a 100644
--- a/sale_start_end_dates/i18n/sk.po
+++ b/sale_start_end_dates/i18n/sk.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2018
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"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"
-"Language: sk\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#. module: sale_start_end_dates
diff --git a/sale_start_end_dates/i18n/sl.po b/sale_start_end_dates/i18n/sl.po
index 59d262ccd7c..ff4a066083d 100644
--- a/sale_start_end_dates/i18n/sl.po
+++ b/sale_start_end_dates/i18n/sl.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,11 +12,12 @@ msgstr ""
"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"
-"Language: sl\n"
-"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\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
@@ -88,8 +89,8 @@ msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
"is not allowed."
msgstr ""
-"Na postavki prodajnega naloga s proizvodom '%s' je število dni negativno; to"
-" ni dovoljeno."
+"Na postavki prodajnega naloga s proizvodom '%s' je število dni negativno; to "
+"ni dovoljeno."
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/models/sale.py:90
@@ -125,5 +126,5 @@ 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)."
+"Začetni datum mora biti na postavki prodajnega naloga s proizvodom '%s' pred "
+"končnim datumom (ali enak)."
diff --git a/sale_start_end_dates/i18n/tr.po b/sale_start_end_dates/i18n/tr.po
index 4223072fe78..2285d2cb1f5 100644
--- a/sale_start_end_dates/i18n/tr.po
+++ b/sale_start_end_dates/i18n/tr.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -12,10 +12,10 @@ msgstr ""
"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"
-"Language: tr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: sale_start_end_dates
diff --git a/sale_start_end_dates/i18n/tr_TR.po b/sale_start_end_dates/i18n/tr_TR.po
index 2304431795f..f29358c502d 100644
--- a/sale_start_end_dates/i18n/tr_TR.po
+++ b/sale_start_end_dates/i18n/tr_TR.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -11,11 +11,12 @@ msgstr ""
"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-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"
-"Language: tr_TR\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: sale_start_end_dates
diff --git a/sale_start_end_dates/i18n/vi_VN.po b/sale_start_end_dates/i18n/vi_VN.po
index 099ec83c73a..f91b29693e1 100644
--- a/sale_start_end_dates/i18n/vi_VN.po
+++ b/sale_start_end_dates/i18n/vi_VN.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
# OCA Transbot , 2017
msgid ""
@@ -11,11 +11,12 @@ msgstr ""
"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-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"
-"Language: vi_VN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: sale_start_end_dates
diff --git a/sale_start_end_dates/i18n/zh_CN.po b/sale_start_end_dates/i18n/zh_CN.po
index 9700a27dca6..10b4fd75dd7 100644
--- a/sale_start_end_dates/i18n/zh_CN.po
+++ b/sale_start_end_dates/i18n/zh_CN.po
@@ -1,7 +1,7 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_start_end_dates
-#
+#
# Translators:
msgid ""
msgstr ""
@@ -10,25 +10,26 @@ msgstr ""
"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-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"
-"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: sale_start_end_dates
-#: field:sale.order,default_end_date:0
+#: 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
-#: field:sale.order,default_start_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:42
+#: code:addons/sale_start_end_dates/models/sale.py:26
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -36,40 +37,47 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: field:sale.order.line,end_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:93
+#: 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
+#: code:addons/sale_start_end_dates/models/sale.py:65
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:98
+#: code:addons/sale_start_end_dates/models/sale.py:69
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:103
+#: code:addons/sale_start_end_dates/models/sale.py:73
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: field:sale.order.line,must_have_dates:0
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_must_have_dates
msgid "Must Have Start and End Dates"
msgstr ""
#. module: sale_start_end_dates
-#: field:sale.order.line,number_of_days:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:113
+#: code:addons/sale_start_end_dates/models/sale.py:82
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -77,7 +85,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/sale.py:121
+#: code:addons/sale_start_end_dates/models/sale.py:90
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -96,24 +104,14 @@ msgid "Sales Order Line"
msgstr ""
#. module: sale_start_end_dates
-#: field:sale.order.line,start_date:0
+#: 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
-#: code:addons/sale_start_end_dates/sale.py:108
+#: code:addons/sale_start_end_dates/models/sale.py:77
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-
-#. module: sale_start_end_dates
-#: view:sale.order:sale_start_end_dates.view_order_form
-msgid "{'default_end_date': parent.default_end_date}"
-msgstr ""
-
-#. module: sale_start_end_dates
-#: view:sale.order:sale_start_end_dates.view_order_form
-msgid "{'default_start_date': parent.default_start_date}"
-msgstr ""
From 6721c292a9418c3e2652b49c27890ace8c83f238 Mon Sep 17 00:00:00 2001
From: Thomas Pot
Date: Thu, 21 Jun 2018 16:40:27 +0000
Subject: [PATCH 09/34] Translated using Weblate (Nederlands (nl_NL))
Currently translated at 100,0% (16 of 16 strings)
Translation: sale-workflow-10.0/sale-workflow-10.0-sale_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-10-0/sale-workflow-10-0-sale_start_end_dates/nl_NL/
---
sale_start_end_dates/i18n/nl_NL.po | 34 ++++++++++++++++++++----------
1 file changed, 23 insertions(+), 11 deletions(-)
diff --git a/sale_start_end_dates/i18n/nl_NL.po b/sale_start_end_dates/i18n/nl_NL.po
index 7c9356b4c1e..42763b98cf2 100644
--- a/sale_start_end_dates/i18n/nl_NL.po
+++ b/sale_start_end_dates/i18n/nl_NL.po
@@ -9,15 +9,16 @@ msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-06 13:17+0000\n"
-"PO-Revision-Date: 2017-06-06 13:17+0000\n"
-"Last-Translator: Peter Hageman , 2017\n"
-"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/"
-"teams/23907/nl_NL/)\n"
+"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"
+"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
@@ -27,7 +28,7 @@ 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 ""
+msgstr "Standaard Startdatum"
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/models/sale.py:26
@@ -36,6 +37,8 @@ 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"
#. module: sale_start_end_dates
#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
@@ -48,34 +51,36 @@ 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
#: code:addons/sale_start_end_dates/models/sale.py:65
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
-msgstr ""
+msgstr "Ontbrekende einddatum voor verkooporderregel met product '%s'."
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/models/sale.py:69
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
-msgstr ""
+msgstr "Ontbrekende begindatum voor verkooporderregel met product '%s'."
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/models/sale.py:73
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
-msgstr ""
+msgstr "Ontbrekend aantal dagen 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 and End Dates"
-msgstr ""
+msgstr "Moet begin- en einddatums hebben"
#. 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 ""
+msgstr "Aantal dagen"
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/models/sale.py:82
@@ -84,6 +89,8 @@ msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
"is not allowed."
msgstr ""
+"Voor de kooporderregel met product '%s', is het aantal dagen negatief "
+"opgegeven; dit is niet toegestaan."
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/models/sale.py:90
@@ -93,6 +100,9 @@ msgid ""
"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."
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
@@ -116,3 +126,5 @@ 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'."
From 58ef3d407305da3343f5671fa3b74dbebc833b68 Mon Sep 17 00:00:00 2001
From: Murtuza Saleh
Date: Tue, 10 Jul 2018 18:46:30 +0530
Subject: [PATCH 10/34] sale_start_end_dates: Migration to 11.0.
---
sale_start_end_dates/README.rst | 3 +-
sale_start_end_dates/__init__.py | 2 -
sale_start_end_dates/__manifest__.py | 8 +-
sale_start_end_dates/demo/sale_demo.xml | 23 ----
sale_start_end_dates/models/__init__.py | 2 -
sale_start_end_dates/models/sale.py | 37 +++----
sale_start_end_dates/tests/__init__.py | 4 +
.../tests/test_sale_start_end_dates.py | 104 ++++++++++++++++++
sale_start_end_dates/views/sale_order.xml | 52 +++++----
9 files changed, 151 insertions(+), 84 deletions(-)
delete mode 100644 sale_start_end_dates/demo/sale_demo.xml
create mode 100644 sale_start_end_dates/tests/__init__.py
create mode 100644 sale_start_end_dates/tests/test_sale_start_end_dates.py
diff --git a/sale_start_end_dates/README.rst b/sale_start_end_dates/README.rst
index 6fe0668954e..b5d665edf94 100644
--- a/sale_start_end_dates/README.rst
+++ b/sale_start_end_dates/README.rst
@@ -17,7 +17,7 @@ Usage
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
- :target: https://runbot.odoo-community.org/runbot/167/10.0
+ :target: https://runbot.odoo-community.org/runbot/167/11.0
Bug Tracker
===========
@@ -35,6 +35,7 @@ Contributors
* Alexis de Lattre
* Sodexis
+* Serpent Consulting Services Pvt. Ltd.
Maintainer
----------
diff --git a/sale_start_end_dates/__init__.py b/sale_start_end_dates/__init__.py
index cde864bae21..0650744f6bc 100644
--- a/sale_start_end_dates/__init__.py
+++ b/sale_start_end_dates/__init__.py
@@ -1,3 +1 @@
-# -*- coding: utf-8 -*-
-
from . import models
diff --git a/sale_start_end_dates/__manifest__.py b/sale_start_end_dates/__manifest__.py
index 6a6256e44fe..03ab2ec377a 100644
--- a/sale_start_end_dates/__manifest__.py
+++ b/sale_start_end_dates/__manifest__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# Copyright 2014-2016 Akretion (http://www.akretion.com)
# @author Alexis de Lattre
# Copyright 2016 Sodexis (http://sodexis.com)
@@ -6,14 +5,13 @@
{
'name': 'Sale Start End Dates',
- 'version': '10.0.1.0.0',
+ 'version': '11.0.1.0.0',
'category': 'Sales Management',
'license': 'AGPL-3',
'summary': 'Adds start date and end date on sale order lines',
'author': 'Akretion, Sodexis, Odoo Community Association (OCA)',
- 'website': 'http://www.akretion.com',
- 'depends': ['account_invoice_start_end_dates', 'sale'],
+ 'website': 'https://github.com/OCA/sale-workflow',
+ 'depends': ['account_invoice_start_end_dates', 'sale_management'],
'data': ['views/sale_order.xml'],
- 'demo': ['demo/sale_demo.xml'],
'installable': True,
}
diff --git a/sale_start_end_dates/demo/sale_demo.xml b/sale_start_end_dates/demo/sale_demo.xml
deleted file mode 100644
index dfe18c54dee..00000000000
--- a/sale_start_end_dates/demo/sale_demo.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/sale_start_end_dates/models/__init__.py b/sale_start_end_dates/models/__init__.py
index 78a96049607..8a0dc04e1fd 100644
--- a/sale_start_end_dates/models/__init__.py
+++ b/sale_start_end_dates/models/__init__.py
@@ -1,3 +1 @@
-# -*- coding: utf-8 -*-
-
from . import sale
diff --git a/sale_start_end_dates/models/sale.py b/sale_start_end_dates/models/sale.py
index 24d5fc048ae..95934265c4b 100644
--- a/sale_start_end_dates/models/sale.py
+++ b/sale_start_end_dates/models/sale.py
@@ -1,10 +1,9 @@
-# -*- coding: utf-8 -*-
# Copyright 2014-2016 Akretion (http://www.akretion.com)
# @author Alexis de Lattre
# Copyright 2016 Sodexis (http://sodexis.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-from odoo import models, fields, api, _
+from odoo import api, fields, models, _
from odoo.exceptions import ValidationError
from dateutil.relativedelta import relativedelta
@@ -15,12 +14,9 @@ class SaleOrder(models.Model):
default_start_date = fields.Date(string='Default Start Date')
default_end_date = fields.Date(string='Default End Date')
- @api.one
@api.constrains('default_start_date', 'default_end_date')
def _check_default_start_end_dates(self):
- if (
- self.default_start_date and
- self.default_end_date and
+ if (self.default_start_date and self.default_end_date and
self.default_start_date > self.default_end_date):
raise ValidationError(
_("Default Start Date should be before or be the "
@@ -29,17 +25,13 @@ def _check_default_start_end_dates(self):
@api.onchange('default_start_date')
def default_start_date_change(self):
- if (
- self.default_start_date and
- self.default_end_date and
+ if (self.default_start_date and self.default_end_date and
self.default_start_date > self.default_end_date):
self.default_end_date = self.default_start_date
@api.onchange('default_end_date')
def default_end_date_change(self):
- if (
- self.default_start_date and
- self.default_end_date and
+ if (self.default_start_date and self.default_end_date and
self.default_start_date > self.default_end_date):
self.default_start_date = self.default_end_date
@@ -55,12 +47,13 @@ class SaleOrderLine(models.Model):
states={'draft': [('readonly', False)]})
number_of_days = fields.Integer(string='Number of Days')
must_have_dates = fields.Boolean(
- related='product_id.must_have_dates', readonly=True)
+ related='product_id.must_have_dates',
+ readonly=True
+ )
- @api.one
@api.constrains('start_date', 'end_date', 'number_of_days')
def _check_start_end_dates(self):
- if self.product_id and self.must_have_dates:
+ if self.must_have_dates:
if not self.end_date:
raise ValidationError(_(
"Missing End Date for sale order line with "
@@ -145,15 +138,11 @@ def number_of_days_change(self):
@api.onchange('product_id')
def start_end_dates_product_id_change(self):
- if self.product_id:
- if self.order_id.default_start_date:
- self.start_date = self.order_id.default_start_date
- else:
- self.start_date = False
- if self.order_id.default_end_date:
- self.end_date = self.order_id.default_end_date
- else:
- self.end_date = False
+ if self.order_id.default_start_date:
+ self.start_date = self.order_id.default_start_date
else:
self.start_date = False
+ if self.order_id.default_end_date:
+ self.end_date = self.order_id.default_end_date
+ else:
self.end_date = False
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..5fb4e43b57e
--- /dev/null
+++ b/sale_start_end_dates/tests/test_sale_start_end_dates.py
@@ -0,0 +1,104 @@
+# Copyright (C) 2018 Serpent Consulting Services Pvt. Ltd.
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
+
+from odoo.tests.common import TransactionCase
+from odoo.exceptions import ValidationError
+import datetime
+
+
+class TestSaleStartEndDates(TransactionCase):
+
+ def setUp(self):
+ super(TestSaleStartEndDates, self).setUp()
+ self.partner = self.env.ref('base.res_partner_3')
+ self.product_id = self.env.ref('product.product_product_7')
+ self.product_id.must_have_dates = True
+ self.default_start_date = datetime.datetime.now()
+ self.default_end_date = self.default_start_date + \
+ datetime.timedelta(days=9)
+ self.so = self.env['sale.order'].create({
+ 'partner_id': self.partner.id,
+ 'partner_invoice_id': self.partner.id,
+ 'partner_shipping_id': self.partner.id,
+ 'default_start_date': self.default_start_date,
+ 'default_end_date': self.default_end_date,
+ 'pricelist_id': self.env.ref('product.list0').id,
+ 'order_line': [(0, 0, {
+ 'name': self.product_id.name,
+ 'product_id': self.product_id.id,
+ 'product_uom_qty': 2,
+ 'product_uom': self.product_id.uom_id.id,
+ 'price_unit': self.product_id.list_price,
+ })],
+ })
+ self.so.action_confirm()
+ for so_lines in self.so.order_line:
+ so_lines.write({'start_date': self.default_start_date,
+ 'end_date': self.default_end_date,
+ 'number_of_days': 10})
+
+ def test_default_start_date_change(self):
+ with self.assertRaises(ValidationError):
+ self.so.write({'default_start_date': self.default_end_date,
+ 'default_end_date': self.default_start_date})
+ self.so.default_start_date_change()
+
+ def test_default_end_date_change(self):
+ with self.assertRaises(ValidationError):
+ self.so.write({'default_start_date': self.default_end_date,
+ 'default_end_date': self.default_start_date})
+ self.so.default_end_date_change()
+
+ def test_start_end_dates_product_id_change(self):
+ if self.so.default_end_date and self.so.default_end_date:
+ self.so.order_line.start_end_dates_product_id_change()
+ self.so.order_line.start_date_change()
+ self.so.order_line.end_date_change()
+ self.so.order_line.number_of_days_change()
+
+ def test_start_end_dates_product_id(self):
+ self.product_id.must_have_dates = False
+ self.so.default_start_date = self.so.default_end_date = False
+ self.so.order_line.start_end_dates_product_id_change()
+
+ def test_number_of_days_change(self):
+ self.product_id.must_have_dates = False
+ self.so.order_line.start_date = False
+ self.so.order_line.number_of_days_change()
+
+ def test_end_date_change(self):
+ self.product_id.must_have_dates = False
+ self.so.order_line.write({'start_date': self.default_end_date,
+ 'end_date': self.default_start_date})
+ self.so.order_line.end_date_change()
+
+ def test_start_date_change(self):
+ self.product_id.must_have_dates = False
+ self.so.order_line.write({'start_date': self.default_end_date,
+ 'end_date': self.default_start_date})
+ self.so.order_line.start_date_change()
+
+ def test_constrains_end_dates(self):
+ with self.assertRaises(ValidationError):
+ self.so.order_line.end_date = False
+
+ def test_constrains_start_date(self):
+ with self.assertRaises(ValidationError):
+ self.so.order_line.start_date = False
+
+ def test_constrains_number_of_days(self):
+ with self.assertRaises(ValidationError):
+ self.so.order_line.number_of_days = 0.0
+
+ def test_constrains_neg_number_of_days(self):
+ with self.assertRaises(ValidationError):
+ self.so.order_line.number_of_days = -1.0
+
+ def test_constrains_not_equal_days(self):
+ with self.assertRaises(ValidationError):
+ self.so.order_line.number_of_days = 12
+
+ def test_constrains_greater_st_date(self):
+ with self.assertRaises(ValidationError):
+ self.so.order_line.write({'start_date': self.default_end_date,
+ 'end_date': self.default_start_date})
diff --git a/sale_start_end_dates/views/sale_order.xml b/sale_start_end_dates/views/sale_order.xml
index 901721bd148..fe3715d2cdd 100644
--- a/sale_start_end_dates/views/sale_order.xml
+++ b/sale_start_end_dates/views/sale_order.xml
@@ -8,33 +8,31 @@
-
-
- start.end.dates.view_order_form
- sale.order
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ start.end.dates.view_order_form
+ sale.order
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
From 22611103d929c3cce77d104d9f9e2b2c05bd0131 Mon Sep 17 00:00:00 2001
From: oca-travis
Date: Mon, 1 Oct 2018 11:30:13 +0000
Subject: [PATCH 11/34] Update sale_start_end_dates.pot
---
.../i18n/sale_start_end_dates.pot | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/sale_start_end_dates/i18n/sale_start_end_dates.pot b/sale_start_end_dates/i18n/sale_start_end_dates.pot
index f5b1d5f739e..49a2c15cc81 100644
--- a/sale_start_end_dates/i18n/sale_start_end_dates.pot
+++ b/sale_start_end_dates/i18n/sale_start_end_dates.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
@@ -24,7 +24,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid "Default Start Date should be before or be the same as Default End Date for sale order %s"
msgstr ""
@@ -40,19 +40,19 @@ msgid "If this option is active, the user will have to enter a Start Date and an
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -68,20 +68,20 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid "On sale order line with Product '%s', the number of days is negative ; this is not allowed."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
+msgid "Quotation"
msgstr ""
#. module: sale_start_end_dates
@@ -95,7 +95,7 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid "Start Date should be before or be the same as End Date for sale order line with Product '%s'."
msgstr ""
From 8a459b12f105600ddb37378185f59c132f95dc9d Mon Sep 17 00:00:00 2001
From: OCA Transbot
Date: Sun, 2 Dec 2018 02:55:57 +0000
Subject: [PATCH 12/34] Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
---
sale_start_end_dates/i18n/ca.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/de.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/el_GR.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/es.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/es_ES.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/es_VE.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/fi.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/fr.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/hr.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/hr_HR.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/hu.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/it.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/nl.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/nl_NL.po | 25 ++++++++++++++-----------
sale_start_end_dates/i18n/pt.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/pt_BR.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/ro.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/sk.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/sl.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/tr.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/tr_TR.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/vi_VN.po | 21 ++++++++++++---------
sale_start_end_dates/i18n/zh_CN.po | 21 ++++++++++++---------
23 files changed, 278 insertions(+), 209 deletions(-)
diff --git a/sale_start_end_dates/i18n/ca.po b/sale_start_end_dates/i18n/ca.po
index 83e37cab26c..dca0319edc1 100644
--- a/sale_start_end_dates/i18n/ca.po
+++ b/sale_start_end_dates/i18n/ca.po
@@ -29,7 +29,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -49,19 +49,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -77,7 +77,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -85,7 +85,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -95,8 +95,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Comandes de venda"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -109,9 +109,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "Comandes de venda"
diff --git a/sale_start_end_dates/i18n/de.po b/sale_start_end_dates/i18n/de.po
index 1c8780872da..998b1f09e51 100644
--- a/sale_start_end_dates/i18n/de.po
+++ b/sale_start_end_dates/i18n/de.po
@@ -29,7 +29,7 @@ msgid "Default Start Date"
msgstr "Vorgabe-Anfangsdatum"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -49,19 +49,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, 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
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, 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
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr "Fehlende Anzahl Tage in Auftragsposition des Produkts '%s'."
@@ -77,7 +77,7 @@ msgid "Number of Days"
msgstr "Anzahl Tage"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -87,7 +87,7 @@ msgstr ""
"nicht zulässig."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -99,8 +99,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Verkaufsauftrag"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -113,7 +113,7 @@ msgid "Start Date"
msgstr "Anfangsdatum"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
@@ -121,3 +121,6 @@ msgid ""
msgstr ""
"In der Auftragsposition zum Produkt %s muss das Anfangsdatum vor oder am "
"Enddatum liegen."
+
+#~ msgid "Sales Order"
+#~ msgstr "Verkaufsauftrag"
diff --git a/sale_start_end_dates/i18n/el_GR.po b/sale_start_end_dates/i18n/el_GR.po
index 79567237581..2b218d6265a 100644
--- a/sale_start_end_dates/i18n/el_GR.po
+++ b/sale_start_end_dates/i18n/el_GR.po
@@ -30,7 +30,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -50,19 +50,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -78,7 +78,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -86,7 +86,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -96,8 +96,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Εντολή Πώλησης"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -110,9 +110,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "Εντολή Πώλησης"
diff --git a/sale_start_end_dates/i18n/es.po b/sale_start_end_dates/i18n/es.po
index 0949a62857f..22862d6bb4b 100644
--- a/sale_start_end_dates/i18n/es.po
+++ b/sale_start_end_dates/i18n/es.po
@@ -29,7 +29,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -49,19 +49,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -77,7 +77,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -85,7 +85,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -95,8 +95,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Pedido de venta"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -109,9 +109,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "Pedido de venta"
diff --git a/sale_start_end_dates/i18n/es_ES.po b/sale_start_end_dates/i18n/es_ES.po
index 35c045389fd..cc4ddff1420 100644
--- a/sale_start_end_dates/i18n/es_ES.po
+++ b/sale_start_end_dates/i18n/es_ES.po
@@ -30,7 +30,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -50,19 +50,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -78,7 +78,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -86,7 +86,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -96,8 +96,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Pedido de venta"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -110,9 +110,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales 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
index 889c8f02ec2..40d4d65f664 100644
--- a/sale_start_end_dates/i18n/es_VE.po
+++ b/sale_start_end_dates/i18n/es_VE.po
@@ -30,7 +30,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -50,19 +50,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -78,7 +78,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -86,7 +86,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -96,8 +96,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Pedidos de venta"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -110,9 +110,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "Pedidos de venta"
diff --git a/sale_start_end_dates/i18n/fi.po b/sale_start_end_dates/i18n/fi.po
index c407a324b60..5a4c31a95dc 100644
--- a/sale_start_end_dates/i18n/fi.po
+++ b/sale_start_end_dates/i18n/fi.po
@@ -29,7 +29,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -49,19 +49,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -77,7 +77,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -85,7 +85,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -95,8 +95,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Myyntitilaus"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -109,9 +109,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "Myyntitilaus"
diff --git a/sale_start_end_dates/i18n/fr.po b/sale_start_end_dates/i18n/fr.po
index 2f4a2fa0e8b..62ebbfe1907 100644
--- a/sale_start_end_dates/i18n/fr.po
+++ b/sale_start_end_dates/i18n/fr.po
@@ -30,7 +30,7 @@ msgid "Default Start Date"
msgstr "Date de début par défaut"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -54,7 +54,7 @@ msgstr ""
"une date de fin sur les lignes de facture comportant ce produit."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
@@ -62,7 +62,7 @@ msgstr ""
"'%s'."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
@@ -70,7 +70,7 @@ msgstr ""
"début '%s'."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -88,7 +88,7 @@ msgid "Number of Days"
msgstr "Nombre de jours"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -98,7 +98,7 @@ msgstr ""
"négatif; Ceci n'est pas autorisé."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -111,8 +111,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Bon de commande"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -125,9 +125,12 @@ msgid "Start Date"
msgstr "Date de début"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "Bon de commande"
diff --git a/sale_start_end_dates/i18n/hr.po b/sale_start_end_dates/i18n/hr.po
index 969942045ff..067d9044011 100644
--- a/sale_start_end_dates/i18n/hr.po
+++ b/sale_start_end_dates/i18n/hr.po
@@ -30,7 +30,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -50,19 +50,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -78,7 +78,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -86,7 +86,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -96,8 +96,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Prodajni nalog"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -110,9 +110,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "Prodajni nalog"
diff --git a/sale_start_end_dates/i18n/hr_HR.po b/sale_start_end_dates/i18n/hr_HR.po
index 912832bebcb..89225242d59 100644
--- a/sale_start_end_dates/i18n/hr_HR.po
+++ b/sale_start_end_dates/i18n/hr_HR.po
@@ -31,7 +31,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -51,19 +51,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -79,7 +79,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -87,7 +87,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -97,8 +97,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Prodjani nalog"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -111,9 +111,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "Prodjani nalog"
diff --git a/sale_start_end_dates/i18n/hu.po b/sale_start_end_dates/i18n/hu.po
index c0013216f82..6778482feeb 100644
--- a/sale_start_end_dates/i18n/hu.po
+++ b/sale_start_end_dates/i18n/hu.po
@@ -29,7 +29,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -49,19 +49,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -77,7 +77,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -85,7 +85,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -95,8 +95,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Vevői megrendelés"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -109,9 +109,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "Vevői megrendelés"
diff --git a/sale_start_end_dates/i18n/it.po b/sale_start_end_dates/i18n/it.po
index ac94c135cce..603f6d0cdb4 100644
--- a/sale_start_end_dates/i18n/it.po
+++ b/sale_start_end_dates/i18n/it.po
@@ -29,7 +29,7 @@ msgid "Default Start Date"
msgstr "Default Data Inizio"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -51,19 +51,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr "Manca la data di fine nell'ordine di vendita per il prodotto '%s'"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr "Manca la data di Inizio per il prodotto '%s'"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
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'"
@@ -79,7 +79,7 @@ msgid "Number of Days"
msgstr "Numero di giorni"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -89,7 +89,7 @@ msgstr ""
"questo no e' permesso."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -102,8 +102,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Ordini vendita"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -116,7 +116,7 @@ msgid "Start Date"
msgstr "Data di inizio"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
@@ -124,3 +124,6 @@ msgid ""
msgstr ""
"La data di inizio deve essere antecedente o uguale alla data di fine per il "
"prodotto %s."
+
+#~ msgid "Sales Order"
+#~ msgstr "Ordini vendita"
diff --git a/sale_start_end_dates/i18n/nl.po b/sale_start_end_dates/i18n/nl.po
index 511e1a65501..73ac94a95f3 100644
--- a/sale_start_end_dates/i18n/nl.po
+++ b/sale_start_end_dates/i18n/nl.po
@@ -29,7 +29,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -49,19 +49,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -77,7 +77,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -85,7 +85,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -95,8 +95,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Verkooporder"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -109,9 +109,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "Verkooporder"
diff --git a/sale_start_end_dates/i18n/nl_NL.po b/sale_start_end_dates/i18n/nl_NL.po
index 42763b98cf2..2d4346b6289 100644
--- a/sale_start_end_dates/i18n/nl_NL.po
+++ b/sale_start_end_dates/i18n/nl_NL.po
@@ -11,8 +11,8 @@ msgstr ""
"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-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"
@@ -31,7 +31,7 @@ msgid "Default Start Date"
msgstr "Standaard Startdatum"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -55,19 +55,19 @@ msgstr ""
"invoeren op de factuurregels die dit product bevatten."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, 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
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, 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
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr "Ontbrekend aantal dagen voor verkooporderregel met product '%s'."
@@ -83,7 +83,7 @@ msgid "Number of Days"
msgstr "Aantal dagen"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -93,7 +93,7 @@ msgstr ""
"opgegeven; dit is niet toegestaan."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -106,8 +106,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Verkooporder"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -120,7 +120,7 @@ msgid "Start Date"
msgstr "Startdatum"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
@@ -128,3 +128,6 @@ msgid ""
msgstr ""
"Startdatum moet vóór of gelijk zijn aan einddatum voor de verkooporderregel "
"met Product '%s'."
+
+#~ msgid "Sales Order"
+#~ msgstr "Verkooporder"
diff --git a/sale_start_end_dates/i18n/pt.po b/sale_start_end_dates/i18n/pt.po
index ffd656b5c5b..cfa0644d2ba 100644
--- a/sale_start_end_dates/i18n/pt.po
+++ b/sale_start_end_dates/i18n/pt.po
@@ -29,7 +29,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -49,19 +49,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -77,7 +77,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -85,7 +85,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -95,8 +95,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Ordem de Venda"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -109,9 +109,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "Ordem de Venda"
diff --git a/sale_start_end_dates/i18n/pt_BR.po b/sale_start_end_dates/i18n/pt_BR.po
index 6ef6e764bb3..b6b2e4eca67 100644
--- a/sale_start_end_dates/i18n/pt_BR.po
+++ b/sale_start_end_dates/i18n/pt_BR.po
@@ -30,7 +30,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -50,19 +50,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -78,7 +78,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -86,7 +86,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -96,8 +96,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Pedido de Venda"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -110,9 +110,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "Pedido de Venda"
diff --git a/sale_start_end_dates/i18n/ro.po b/sale_start_end_dates/i18n/ro.po
index 74c60e68b86..8ffe65ff6d5 100644
--- a/sale_start_end_dates/i18n/ro.po
+++ b/sale_start_end_dates/i18n/ro.po
@@ -30,7 +30,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -50,19 +50,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -78,7 +78,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -86,7 +86,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -96,8 +96,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Comandă vânzare"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -110,9 +110,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "Comandă vânzare"
diff --git a/sale_start_end_dates/i18n/sk.po b/sale_start_end_dates/i18n/sk.po
index 3d0ac40125a..6b4102ec417 100644
--- a/sale_start_end_dates/i18n/sk.po
+++ b/sale_start_end_dates/i18n/sk.po
@@ -29,7 +29,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -49,19 +49,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -77,7 +77,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -85,7 +85,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -95,8 +95,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Objednávka predaja"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -109,9 +109,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "Objednávka predaja"
diff --git a/sale_start_end_dates/i18n/sl.po b/sale_start_end_dates/i18n/sl.po
index ff4a066083d..7e739e6e27d 100644
--- a/sale_start_end_dates/i18n/sl.po
+++ b/sale_start_end_dates/i18n/sl.po
@@ -30,7 +30,7 @@ msgid "Default Start Date"
msgstr "Privzeti začetni datum"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -52,21 +52,21 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, 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
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, 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
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -83,7 +83,7 @@ msgid "Number of Days"
msgstr "Število dni"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -93,7 +93,7 @@ msgstr ""
"ni dovoljeno."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -106,8 +106,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Prodajni nalog"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -120,7 +120,7 @@ msgid "Start Date"
msgstr "Začetni datum"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
@@ -128,3 +128,6 @@ msgid ""
msgstr ""
"Začetni datum mora biti na postavki prodajnega naloga s proizvodom '%s' pred "
"končnim datumom (ali enak)."
+
+#~ msgid "Sales Order"
+#~ msgstr "Prodajni nalog"
diff --git a/sale_start_end_dates/i18n/tr.po b/sale_start_end_dates/i18n/tr.po
index 2285d2cb1f5..c0544f6bf6b 100644
--- a/sale_start_end_dates/i18n/tr.po
+++ b/sale_start_end_dates/i18n/tr.po
@@ -29,7 +29,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -49,19 +49,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -77,7 +77,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -85,7 +85,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -95,8 +95,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Sipariş Emri"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -109,9 +109,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "Sipariş Emri"
diff --git a/sale_start_end_dates/i18n/tr_TR.po b/sale_start_end_dates/i18n/tr_TR.po
index f29358c502d..305fd830272 100644
--- a/sale_start_end_dates/i18n/tr_TR.po
+++ b/sale_start_end_dates/i18n/tr_TR.po
@@ -30,7 +30,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -50,19 +50,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -78,7 +78,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -86,7 +86,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -96,8 +96,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Satış emri"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -110,9 +110,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "Satış emri"
diff --git a/sale_start_end_dates/i18n/vi_VN.po b/sale_start_end_dates/i18n/vi_VN.po
index f91b29693e1..307327d4709 100644
--- a/sale_start_end_dates/i18n/vi_VN.po
+++ b/sale_start_end_dates/i18n/vi_VN.po
@@ -30,7 +30,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -50,19 +50,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -78,7 +78,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -86,7 +86,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -96,8 +96,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "Đơn hàng Bán"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -110,9 +110,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales 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
index 10b4fd75dd7..9d029ade2b3 100644
--- a/sale_start_end_dates/i18n/zh_CN.po
+++ b/sale_start_end_dates/i18n/zh_CN.po
@@ -29,7 +29,7 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:26
+#: code:addons/sale_start_end_dates/models/sale.py:22
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
@@ -49,19 +49,19 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:65
+#: code:addons/sale_start_end_dates/models/sale.py:58
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:69
+#: code:addons/sale_start_end_dates/models/sale.py:62
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:73
+#: code:addons/sale_start_end_dates/models/sale.py:66
#, python-format
msgid "Missing number of days for sale order line with Product '%s'."
msgstr ""
@@ -77,7 +77,7 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:82
+#: code:addons/sale_start_end_dates/models/sale.py:75
#, python-format
msgid ""
"On sale order line with Product '%s', the number of days is negative ; this "
@@ -85,7 +85,7 @@ msgid ""
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:90
+#: code:addons/sale_start_end_dates/models/sale.py:83
#, python-format
msgid ""
"On the sale order line with Product '%s', there are %d days between the "
@@ -95,8 +95,8 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sales Order"
-msgstr "销售订单"
+msgid "Quotation"
+msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -109,9 +109,12 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:77
+#: code:addons/sale_start_end_dates/models/sale.py:70
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
+
+#~ msgid "Sales Order"
+#~ msgstr "销售订单"
From 1ed90879a99f2ae1e3c3d7eeb8fc632e30f09938 Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Mon, 15 Jul 2019 01:29:07 +0200
Subject: [PATCH 13/34] [MIG] sale_start_end_dates and sale_rental to v12
Convert readme to new subdir format
---
sale_start_end_dates/__manifest__.py | 10 +-
sale_start_end_dates/models/__init__.py | 2 +-
.../models/{sale.py => sale_order.py} | 114 ++++++++----------
sale_start_end_dates/readme/CONTRIBUTORS.rst | 3 +
sale_start_end_dates/readme/DESCRIPTION.rst | 10 ++
.../tests/test_sale_start_end_dates.py | 29 ++---
sale_start_end_dates/views/sale_order.xml | 4 +-
7 files changed, 81 insertions(+), 91 deletions(-)
rename sale_start_end_dates/models/{sale.py => sale_order.py} (51%)
create mode 100644 sale_start_end_dates/readme/CONTRIBUTORS.rst
create mode 100644 sale_start_end_dates/readme/DESCRIPTION.rst
diff --git a/sale_start_end_dates/__manifest__.py b/sale_start_end_dates/__manifest__.py
index 03ab2ec377a..477aedef6a3 100644
--- a/sale_start_end_dates/__manifest__.py
+++ b/sale_start_end_dates/__manifest__.py
@@ -1,17 +1,17 @@
-# Copyright 2014-2016 Akretion (http://www.akretion.com)
+# Copyright 2014-2019 Akretion France (http://www.akretion.com)
# @author Alexis de Lattre
-# Copyright 2016 Sodexis (http://sodexis.com)
+# 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': '11.0.1.0.0',
- 'category': 'Sales Management',
+ 'version': '12.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)',
'website': 'https://github.com/OCA/sale-workflow',
- 'depends': ['account_invoice_start_end_dates', 'sale_management'],
+ 'depends': ['account_invoice_start_end_dates', 'sale'],
'data': ['views/sale_order.xml'],
'installable': True,
}
diff --git a/sale_start_end_dates/models/__init__.py b/sale_start_end_dates/models/__init__.py
index 8a0dc04e1fd..6aacb753131 100644
--- a/sale_start_end_dates/models/__init__.py
+++ b/sale_start_end_dates/models/__init__.py
@@ -1 +1 @@
-from . import sale
+from . import sale_order
diff --git a/sale_start_end_dates/models/sale.py b/sale_start_end_dates/models/sale_order.py
similarity index 51%
rename from sale_start_end_dates/models/sale.py
rename to sale_start_end_dates/models/sale_order.py
index 95934265c4b..ecb8a36a97c 100644
--- a/sale_start_end_dates/models/sale.py
+++ b/sale_start_end_dates/models/sale_order.py
@@ -1,6 +1,6 @@
-# Copyright 2014-2016 Akretion (http://www.akretion.com)
+# Copyright 2014-2019 Akretion (http://www.akretion.com)
# @author Alexis de Lattre
-# Copyright 2016 Sodexis (http://sodexis.com)
+# Copyright 2016-2019 Sodexis (http://sodexis.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models, _
@@ -18,10 +18,10 @@ class SaleOrder(models.Model):
def _check_default_start_end_dates(self):
if (self.default_start_date and self.default_end_date and
self.default_start_date > self.default_end_date):
- raise ValidationError(
- _("Default Start Date should be before or be the "
- "same as Default End Date for sale order %s")
- % self.name)
+ raise ValidationError(_(
+ "Default Start Date should be before or be the "
+ "same as Default End Date for sale order '%s'.")
+ % self.display_name)
@api.onchange('default_start_date')
def default_start_date_change(self):
@@ -45,13 +45,41 @@ class SaleOrderLine(models.Model):
end_date = fields.Date(
string='End Date', readonly=True,
states={'draft': [('readonly', False)]})
- number_of_days = fields.Integer(string='Number of Days')
- must_have_dates = fields.Boolean(
- related='product_id.must_have_dates',
- readonly=True
- )
+ number_of_days = fields.Integer(
+ compute='_compute_number_of_days',
+ inverse='_inverse_number_of_days',
+ string='Number of Days', readonly=False, store=True)
+ 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 = (self.end_date - self.start_date).days + 1
+ line.number_of_days = days
- @api.constrains('start_date', 'end_date', 'number_of_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 '%s', the "
+ "number of days is negative (%d) ; this is not "
+ "allowed. The number of days has been forced to 1.") % (
+ line.product_id.display_name, 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('start_date', 'end_date')
def _check_start_end_dates(self):
if self.must_have_dates:
if not self.end_date:
@@ -62,33 +90,12 @@ def _check_start_end_dates(self):
raise ValidationError(_(
"Missing Start Date for sale order line with "
"Product '%s'.") % (self.product_id.name))
- if not self.number_of_days:
- raise ValidationError(_(
- "Missing number of days for sale order line with "
- "Product '%s'.") % (self.product_id.name))
if self.start_date > self.end_date:
raise ValidationError(_(
"Start Date should be before or be the same as "
"End Date for sale order line with Product '%s'.")
% (self.product_id.name))
- if self.number_of_days < 0:
- raise ValidationError(_(
- "On sale order line with Product '%s', the "
- "number of days is negative ; this is not allowed.")
- % (self.product_id.name))
- days_delta = (
- fields.Date.from_string(self.end_date) -
- fields.Date.from_string(self.start_date)).days + 1
- if self.number_of_days != days_delta:
- raise ValidationError(_(
- "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.")
- % (self.product_id.name, days_delta, self.start_date,
- self.end_date, self.number_of_days))
-
- @api.multi
+
def _prepare_invoice_line(self, qty):
self.ensure_one()
res = super(SaleOrderLine, self)._prepare_invoice_line(qty)
@@ -104,45 +111,24 @@ def end_date_change(self):
if self.end_date:
if self.start_date and self.start_date > self.end_date:
self.start_date = self.end_date
- if self.start_date:
- number_of_days = (
- fields.Date.from_string(self.end_date) -
- fields.Date.from_string(self.start_date)).days + 1
- if self.number_of_days != number_of_days:
- self.number_of_days = number_of_days
@api.onchange('start_date')
def start_date_change(self):
if self.start_date:
if self.end_date and self.start_date > self.end_date:
self.end_date = self.start_date
- if self.end_date:
- number_of_days = (
- fields.Date.from_string(self.end_date) -
- fields.Date.from_string(self.start_date)).days + 1
- if self.number_of_days != number_of_days:
- self.number_of_days = number_of_days
-
- @api.onchange('number_of_days')
- def number_of_days_change(self):
- if self.number_of_days:
- if self.start_date:
- end_date_dt = fields.Date.from_string(self.start_date) +\
- relativedelta(days=self.number_of_days - 1)
- end_date = fields.Date.to_string(end_date_dt)
- if self.end_date != end_date:
- self.end_date = end_date
- elif self.end_date:
- self.start_date = fields.Date.from_string(self.end_date) -\
- relativedelta(days=self.number_of_days - 1)
@api.onchange('product_id')
def start_end_dates_product_id_change(self):
- if self.order_id.default_start_date:
- self.start_date = self.order_id.default_start_date
+ if self.product_id.must_have_dates:
+ if self.order_id.default_start_date:
+ self.start_date = self.order_id.default_start_date
+ else:
+ self.start_date = False
+ if self.order_id.default_end_date:
+ self.end_date = self.order_id.default_end_date
+ else:
+ self.end_date = False
else:
self.start_date = False
- if self.order_id.default_end_date:
- self.end_date = self.order_id.default_end_date
- else:
self.end_date = False
diff --git a/sale_start_end_dates/readme/CONTRIBUTORS.rst b/sale_start_end_dates/readme/CONTRIBUTORS.rst
new file mode 100644
index 00000000000..d92b2de86c1
--- /dev/null
+++ b/sale_start_end_dates/readme/CONTRIBUTORS.rst
@@ -0,0 +1,3 @@
+* Alexis de Lattre
+* Sodexis
+* Serpent Consulting Services Pvt. Ltd.
diff --git a/sale_start_end_dates/readme/DESCRIPTION.rst b/sale_start_end_dates/readme/DESCRIPTION.rst
new file mode 100644
index 00000000000..4d3a889ae0e
--- /dev/null
+++ b/sale_start_end_dates/readme/DESCRIPTION.rst
@@ -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/tests/test_sale_start_end_dates.py b/sale_start_end_dates/tests/test_sale_start_end_dates.py
index 5fb4e43b57e..9aa799a1ad0 100644
--- a/sale_start_end_dates/tests/test_sale_start_end_dates.py
+++ b/sale_start_end_dates/tests/test_sale_start_end_dates.py
@@ -35,7 +35,7 @@ def setUp(self):
for so_lines in self.so.order_line:
so_lines.write({'start_date': self.default_start_date,
'end_date': self.default_end_date,
- 'number_of_days': 10})
+ })
def test_default_start_date_change(self):
with self.assertRaises(ValidationError):
@@ -54,18 +54,12 @@ def test_start_end_dates_product_id_change(self):
self.so.order_line.start_end_dates_product_id_change()
self.so.order_line.start_date_change()
self.so.order_line.end_date_change()
- self.so.order_line.number_of_days_change()
def test_start_end_dates_product_id(self):
self.product_id.must_have_dates = False
self.so.default_start_date = self.so.default_end_date = False
self.so.order_line.start_end_dates_product_id_change()
- def test_number_of_days_change(self):
- self.product_id.must_have_dates = False
- self.so.order_line.start_date = False
- self.so.order_line.number_of_days_change()
-
def test_end_date_change(self):
self.product_id.must_have_dates = False
self.so.order_line.write({'start_date': self.default_end_date,
@@ -86,19 +80,16 @@ def test_constrains_start_date(self):
with self.assertRaises(ValidationError):
self.so.order_line.start_date = False
- def test_constrains_number_of_days(self):
- with self.assertRaises(ValidationError):
- self.so.order_line.number_of_days = 0.0
-
- def test_constrains_neg_number_of_days(self):
- with self.assertRaises(ValidationError):
- self.so.order_line.number_of_days = -1.0
-
- def test_constrains_not_equal_days(self):
- with self.assertRaises(ValidationError):
- self.so.order_line.number_of_days = 12
-
def test_constrains_greater_st_date(self):
with self.assertRaises(ValidationError):
self.so.order_line.write({'start_date': self.default_end_date,
'end_date': self.default_start_date})
+
+ def test_compute_number_of_days(self):
+ self.assertEqual(self.so.order_line[0].number_of_days, 10)
+
+ def test_inverse_number_of_days(self):
+ self.so.order_line[0].number_of_days = 1
+ self.assertEqual(
+ self.so.order_line[0].start_date,
+ self.so.order_line[0].end_date)
diff --git a/sale_start_end_dates/views/sale_order.xml b/sale_start_end_dates/views/sale_order.xml
index fe3715d2cdd..a0e64fdd217 100644
--- a/sale_start_end_dates/views/sale_order.xml
+++ b/sale_start_end_dates/views/sale_order.xml
@@ -1,8 +1,8 @@
From 5a76f06f687d035b1498b354c9d92fc3ce57482c Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Mon, 15 Jul 2019 11:55:42 +0200
Subject: [PATCH 14/34] [FIX] sale_start_end_dates: bad code in compute method
---
sale_start_end_dates/models/sale_order.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sale_start_end_dates/models/sale_order.py b/sale_start_end_dates/models/sale_order.py
index ecb8a36a97c..7ef3fc2df34 100644
--- a/sale_start_end_dates/models/sale_order.py
+++ b/sale_start_end_dates/models/sale_order.py
@@ -56,7 +56,7 @@ def _compute_number_of_days(self):
for line in self:
days = False
if line.start_date and line.end_date:
- days = (self.end_date - self.start_date).days + 1
+ days = (line.end_date - line.start_date).days + 1
line.number_of_days = days
@api.onchange('number_of_days')
From f424875e4527395620a3e8e1690bd52e1e79797c Mon Sep 17 00:00:00 2001
From: oca-travis
Date: Wed, 9 Oct 2019 07:30:52 +0000
Subject: [PATCH 15/34] [UPD] Update sale_start_end_dates.pot
---
.../i18n/sale_start_end_dates.pot | 50 ++++++++-----------
1 file changed, 22 insertions(+), 28 deletions(-)
diff --git a/sale_start_end_dates/i18n/sale_start_end_dates.pot b/sale_start_end_dates/i18n/sale_start_end_dates.pot
index 49a2c15cc81..8b677439224 100644
--- a/sale_start_end_dates/i18n/sale_start_end_dates.pot
+++ b/sale_start_end_dates/i18n/sale_start_end_dates.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 11.0\n"
+"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
@@ -14,74 +14,62 @@ msgstr ""
"Plural-Forms: \n"
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_default_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, 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 ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
-#, python-format
-msgid "On sale order line with Product '%s', the number of days is negative ; this is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
-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."
+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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
+msgid "Sale Order"
msgstr ""
#. module: sale_start_end_dates
@@ -90,13 +78,19 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid "Start Date should be before or be the same as End Date for sale order line with Product '%s'."
msgstr ""
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
+
From 76528cf7adde458ef9b657886dd626e764413f3e Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Wed, 9 Oct 2019 07:46:34 +0000
Subject: [PATCH 16/34] [UPD] README.rst
---
sale_start_end_dates/README.rst | 78 +++-
.../static/description/index.html | 430 ++++++++++++++++++
2 files changed, 485 insertions(+), 23 deletions(-)
create mode 100644 sale_start_end_dates/static/description/index.html
diff --git a/sale_start_end_dates/README.rst b/sale_start_end_dates/README.rst
index b5d665edf94..fde2a46cd1e 100644
--- a/sale_start_end_dates/README.rst
+++ b/sale_start_end_dates/README.rst
@@ -1,53 +1,85 @@
-.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
- :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
- :alt: License: AGPL-3
-
====================
Sale Start End Dates
====================
-This module adds the fields *start date* and *end date* on sale order
-lines. Upon invoice creation, the value of the start/end dates of the
-sale order line is copied to the start/end dates of invoice lines. This
-module is a technical module: it is designed to be used with other
+.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! This file is generated by oca-gen-addon-readme !!
+ !! changes will be overwritten. !!
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+.. |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/12.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-12-0/sale-workflow-12-0-sale_start_end_dates
+ :alt: Translate me on Weblate
+.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
+ :target: https://runbot.odoo-community.org/runbot/167/12.0
+ :alt: Try me on Runbot
+
+|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.
-Usage
-=====
+**Table of contents**
-.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
- :alt: Try me on Runbot
- :target: https://runbot.odoo-community.org/runbot/167/11.0
+.. 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 smashing it by providing a detailed and welcomed feedback.
+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 smashing 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.
-Maintainer
-----------
+Maintainers
+~~~~~~~~~~~
+
+This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
-This module is maintained by the OCA.
-
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.
-To contribute to this module, please visit https://odoo-community.org.
+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/static/description/index.html b/sale_start_end_dates/static/description/index.html
new file mode 100644
index 00000000000..a91d5552bd4
--- /dev/null
+++ b/sale_start_end_dates/static/description/index.html
@@ -0,0 +1,430 @@
+
+
+
+
+
+
+Sale Start End Dates
+
+
+
+
+
Sale Start End Dates
+
+
+
+
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
+
+
+
+
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 smashing it by providing a detailed and welcomed
+feedback.
+
Do not contact contributors directly about support or help with technical issues.
+
+
+
+
+
+
+
+
This module is maintained by the OCA.
+
+
OCA, or the Odoo Community Association, is a nonprofit organization whose
+mission is to support the collaborative development of Odoo features and
+promote its widespread use.
+
This module is part of the OCA/sale-workflow project on GitHub.
+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
+
+
+
+
+
From e75e1d6a11b5e8c6ce7c0a3e2bb4ba016fa6ee9f Mon Sep 17 00:00:00 2001
From: OCA Transbot
Date: Sat, 12 Oct 2019 19:39:20 +0000
Subject: [PATCH 17/34] Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: sale-workflow-12.0/sale-workflow-12.0-sale_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_start_end_dates/
---
sale_start_end_dates/i18n/ca.po | 58 ++++++++------------
sale_start_end_dates/i18n/de.po | 82 +++++++++++++++-------------
sale_start_end_dates/i18n/el_GR.po | 58 ++++++++------------
sale_start_end_dates/i18n/es.po | 58 ++++++++------------
sale_start_end_dates/i18n/es_ES.po | 58 ++++++++------------
sale_start_end_dates/i18n/es_VE.po | 58 ++++++++------------
sale_start_end_dates/i18n/fi.po | 58 ++++++++------------
sale_start_end_dates/i18n/fr.po | 88 ++++++++++++++++--------------
sale_start_end_dates/i18n/hr.po | 58 ++++++++------------
sale_start_end_dates/i18n/hr_HR.po | 58 ++++++++------------
sale_start_end_dates/i18n/hu.po | 58 ++++++++------------
sale_start_end_dates/i18n/it.po | 85 ++++++++++++++++-------------
sale_start_end_dates/i18n/nl.po | 58 ++++++++------------
sale_start_end_dates/i18n/nl_NL.po | 84 +++++++++++++++-------------
sale_start_end_dates/i18n/pt.po | 58 ++++++++------------
sale_start_end_dates/i18n/pt_BR.po | 58 ++++++++------------
sale_start_end_dates/i18n/ro.po | 58 ++++++++------------
sale_start_end_dates/i18n/sk.po | 58 ++++++++------------
sale_start_end_dates/i18n/sl.po | 86 +++++++++++++++--------------
sale_start_end_dates/i18n/tr.po | 58 ++++++++------------
sale_start_end_dates/i18n/tr_TR.po | 58 ++++++++------------
sale_start_end_dates/i18n/vi_VN.po | 58 ++++++++------------
sale_start_end_dates/i18n/zh_CN.po | 58 ++++++++------------
23 files changed, 660 insertions(+), 809 deletions(-)
diff --git a/sale_start_end_dates/i18n/ca.po b/sale_start_end_dates/i18n/ca.po
index dca0319edc1..8f14b55c4c8 100644
--- a/sale_start_end_dates/i18n/ca.po
+++ b/sale_start_end_dates/i18n/ca.po
@@ -19,84 +19,71 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Comandes de venda"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -104,17 +91,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Comandes de venda"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/de.po b/sale_start_end_dates/i18n/de.po
index 998b1f09e51..10161371bb2 100644
--- a/sale_start_end_dates/i18n/de.po
+++ b/sale_start_end_dates/i18n/de.po
@@ -19,88 +19,79 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
-#, python-format
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
+#, 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"
+"sale order '%s'."
msgstr "Vorgabe-Anfangsdatum muss im Auftrag %s vor ooder am Enddatum liegen"
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, 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
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, 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
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days for sale order line with Product '%s'."
-msgstr "Fehlende Anzahl Tage 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and End Dates"
msgstr "Muss Anfangs- und Enddatum haben"
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_number_of_days
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
-#, python-format
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
+#, fuzzy, python-format
+#| msgid ""
+#| "On sale order line with Product '%s', the number of days is negative ; "
+#| "this is not allowed."
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
+"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 ""
"In Auftragsposition des Produkts '%s' ist die Anzahl Tage negativ; dies ist "
"nicht zulässig."
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
-
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Verkaufsauftrag"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -108,12 +99,12 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
@@ -122,5 +113,20 @@ msgstr ""
"In der Auftragsposition zum Produkt %s muss das Anfangsdatum vor oder am "
"Enddatum liegen."
-#~ msgid "Sales Order"
-#~ msgstr "Verkaufsauftrag"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, fuzzy, python-format
+#| msgid "Number of Days"
+msgid "Wrong number of days"
+msgstr "Anzahl Tage"
+
+#~ 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
index 2b218d6265a..30ffc139d48 100644
--- a/sale_start_end_dates/i18n/el_GR.po
+++ b/sale_start_end_dates/i18n/el_GR.po
@@ -20,84 +20,71 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Εντολή Πώλησης"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -105,17 +92,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Εντολή Πώλησης"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/es.po b/sale_start_end_dates/i18n/es.po
index 22862d6bb4b..ff5608763fe 100644
--- a/sale_start_end_dates/i18n/es.po
+++ b/sale_start_end_dates/i18n/es.po
@@ -19,84 +19,71 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Pedido de venta"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -104,17 +91,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Pedido de venta"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/es_ES.po b/sale_start_end_dates/i18n/es_ES.po
index cc4ddff1420..f80dff199d9 100644
--- a/sale_start_end_dates/i18n/es_ES.po
+++ b/sale_start_end_dates/i18n/es_ES.po
@@ -20,84 +20,71 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Pedido de venta"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -105,17 +92,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Pedido de venta"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/es_VE.po b/sale_start_end_dates/i18n/es_VE.po
index 40d4d65f664..a0ef7b27f1f 100644
--- a/sale_start_end_dates/i18n/es_VE.po
+++ b/sale_start_end_dates/i18n/es_VE.po
@@ -20,84 +20,71 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Pedidos de venta"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -105,17 +92,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Pedidos de venta"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/fi.po b/sale_start_end_dates/i18n/fi.po
index 5a4c31a95dc..40c43762039 100644
--- a/sale_start_end_dates/i18n/fi.po
+++ b/sale_start_end_dates/i18n/fi.po
@@ -19,84 +19,71 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Myyntitilaus"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -104,17 +91,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Myyntitilaus"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/fr.po b/sale_start_end_dates/i18n/fr.po
index 62ebbfe1907..e88bd88114a 100644
--- a/sale_start_end_dates/i18n/fr.po
+++ b/sale_start_end_dates/i18n/fr.po
@@ -20,32 +20,35 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
-#, python-format
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
+#, 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"
+"sale order '%s'."
msgstr ""
"La date de début par défaut doit être antérieure ou identique à la date de "
"fin par défaut du bon de commande %s"
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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."
@@ -54,7 +57,7 @@ msgstr ""
"une date de fin sur les lignes de facture comportant ce produit."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
@@ -62,7 +65,7 @@ msgstr ""
"'%s'."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
@@ -70,49 +73,34 @@ msgstr ""
"début '%s'."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days for sale order line with Product '%s'."
-msgstr ""
-"Un bon de commande avec ligne article saisie doit comporter un nombre de "
-"jours '%s'."
-
-#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_must_have_dates
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and End Dates"
msgstr "Doit comporter une date de début et de fin"
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_number_of_days
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
-#, python-format
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
+#, fuzzy, python-format
+#| msgid ""
+#| "On sale order line with Product '%s', the number of days is negative ; "
+#| "this is not allowed."
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
+"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 ""
"Bon de commande avec ligne article saisie '%s', le nombre de jours est "
"négatif; Ceci n'est pas autorisé."
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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 ""
-"Bon de commande avec ligne article saisie'%s', il y a %d jours entre la date "
-"de début (%s) et la date de fin (%s), mais le nombre de jours de champ a une "
-"valeur de %d jours."
-
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Bon de commande"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -120,17 +108,35 @@ msgid "Sales Order Line"
msgstr "Sales Order Line"
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_start_date
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Bon de commande"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, fuzzy, python-format
+#| msgid "Number of Days"
+msgid "Wrong number of days"
+msgstr "Nombre de jours"
+
+#~ msgid "Missing number of days for sale order line with Product '%s'."
+#~ msgstr ""
+#~ "Un bon de commande avec ligne article saisie doit comporter un nombre de "
+#~ "jours '%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 ""
+#~ "Bon de commande avec ligne article saisie'%s', il y a %d jours entre la "
+#~ "date de début (%s) et la date de fin (%s), mais le nombre de jours de "
+#~ "champ a une valeur de %d jours."
diff --git a/sale_start_end_dates/i18n/hr.po b/sale_start_end_dates/i18n/hr.po
index 067d9044011..9d11b76add4 100644
--- a/sale_start_end_dates/i18n/hr.po
+++ b/sale_start_end_dates/i18n/hr.po
@@ -20,84 +20,71 @@ msgstr ""
"%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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Prodajni nalog"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -105,17 +92,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Prodajni nalog"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/hr_HR.po b/sale_start_end_dates/i18n/hr_HR.po
index 89225242d59..9ba1f5404ab 100644
--- a/sale_start_end_dates/i18n/hr_HR.po
+++ b/sale_start_end_dates/i18n/hr_HR.po
@@ -21,84 +21,71 @@ msgstr ""
"%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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Prodjani nalog"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -106,17 +93,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Prodjani nalog"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/hu.po b/sale_start_end_dates/i18n/hu.po
index 6778482feeb..eafaa5f70aa 100644
--- a/sale_start_end_dates/i18n/hu.po
+++ b/sale_start_end_dates/i18n/hu.po
@@ -19,84 +19,71 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Vevői megrendelés"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -104,17 +91,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Vevői megrendelés"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/it.po b/sale_start_end_dates/i18n/it.po
index 603f6d0cdb4..8b1aa4d7961 100644
--- a/sale_start_end_dates/i18n/it.po
+++ b/sale_start_end_dates/i18n/it.po
@@ -19,91 +19,81 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
-#, python-format
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
+#, 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"
+"sale order '%s'."
msgstr ""
"La data di inizio deve essere inferiore o uguale alla data di fine per "
"l'ordine %s."
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr "Manca la data di fine nell'ordine di vendita per il prodotto '%s'"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr "Manca la data di Inizio per il prodotto '%s'"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-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'"
-
-#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_must_have_dates
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and End Dates"
msgstr "Necessario Data Inizio e Fine"
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_number_of_days
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
-#, python-format
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
+#, fuzzy, python-format
+#| msgid ""
+#| "On sale order line with Product '%s', the number of days is negative ; "
+#| "this is not allowed."
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
+"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 ""
"L'ordine di vendita per il prodotto '%s' ha un numero di giorni negativo : "
"questo no e' permesso."
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
-
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Ordini vendita"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -111,12 +101,12 @@ msgid "Sales Order Line"
msgstr "Linea d'ordine di vendita"
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_start_date
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__start_date
msgid "Start Date"
msgstr "Data di inizio"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
@@ -125,5 +115,22 @@ msgstr ""
"La data di inizio deve essere antecedente o uguale alla data di fine per il "
"prodotto %s."
-#~ msgid "Sales Order"
-#~ msgstr "Ordini vendita"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, fuzzy, python-format
+#| msgid "Number of Days"
+msgid "Wrong number of days"
+msgstr "Numero di giorni"
+
+#~ 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
index 73ac94a95f3..39fb2493ce2 100644
--- a/sale_start_end_dates/i18n/nl.po
+++ b/sale_start_end_dates/i18n/nl.po
@@ -19,84 +19,71 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Verkooporder"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -104,17 +91,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Verkooporder"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/nl_NL.po b/sale_start_end_dates/i18n/nl_NL.po
index 2d4346b6289..5158725cc28 100644
--- a/sale_start_end_dates/i18n/nl_NL.po
+++ b/sale_start_end_dates/i18n/nl_NL.po
@@ -21,32 +21,35 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
-#, python-format
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
+#, 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"
+"sale order '%s'."
msgstr ""
"Standaard startdatum moet eerder of gelijk zijn als de standaard einddatum "
"voor de verkooporder %s"
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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."
@@ -55,59 +58,46 @@ msgstr ""
"invoeren op de factuurregels die dit product bevatten."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, 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
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, 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
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days for sale order line with Product '%s'."
-msgstr "Ontbrekend aantal dagen 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and End Dates"
msgstr "Moet begin- en einddatums hebben"
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_number_of_days
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
-#, python-format
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
+#, fuzzy, python-format
+#| msgid ""
+#| "On sale order line with Product '%s', the number of days is negative ; "
+#| "this is not allowed."
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
+"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 ""
"Voor de kooporderregel met product '%s', is het aantal dagen negatief "
"opgegeven; dit is niet toegestaan."
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
-
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Verkooporder"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -115,12 +105,12 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
@@ -129,5 +119,21 @@ msgstr ""
"Startdatum moet vóór of gelijk zijn aan einddatum voor de verkooporderregel "
"met Product '%s'."
-#~ msgid "Sales Order"
-#~ msgstr "Verkooporder"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, fuzzy, python-format
+#| msgid "Number of Days"
+msgid "Wrong number of days"
+msgstr "Aantal dagen"
+
+#~ 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
index cfa0644d2ba..7638afb7836 100644
--- a/sale_start_end_dates/i18n/pt.po
+++ b/sale_start_end_dates/i18n/pt.po
@@ -19,84 +19,71 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Ordem de Venda"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -104,17 +91,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Ordem de Venda"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/pt_BR.po b/sale_start_end_dates/i18n/pt_BR.po
index b6b2e4eca67..f0320f980e2 100644
--- a/sale_start_end_dates/i18n/pt_BR.po
+++ b/sale_start_end_dates/i18n/pt_BR.po
@@ -20,84 +20,71 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Pedido de Venda"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -105,17 +92,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Pedido de Venda"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/ro.po b/sale_start_end_dates/i18n/ro.po
index 8ffe65ff6d5..b9711a2fd52 100644
--- a/sale_start_end_dates/i18n/ro.po
+++ b/sale_start_end_dates/i18n/ro.po
@@ -20,84 +20,71 @@ msgstr ""
"2:1));\n"
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_default_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Comandă vânzare"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -105,17 +92,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Comandă vânzare"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, 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
index 6b4102ec417..e8e9732ac87 100644
--- a/sale_start_end_dates/i18n/sk.po
+++ b/sale_start_end_dates/i18n/sk.po
@@ -19,84 +19,71 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Objednávka predaja"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -104,17 +91,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Objednávka predaja"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/sl.po b/sale_start_end_dates/i18n/sl.po
index 7e739e6e27d..b58b3cda382 100644
--- a/sale_start_end_dates/i18n/sl.po
+++ b/sale_start_end_dates/i18n/sl.po
@@ -20,94 +20,83 @@ msgstr ""
"%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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
-#, python-format
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
+#, 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"
+"sale order '%s'."
msgstr ""
"Privzeti začetni datum na prodajnem nalogu %s mora biti pred (ali enak) "
"privzetim končnim datumom"
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, 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
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, 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
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days for sale order line with Product '%s'."
-msgstr ""
-"Manjkajoče število dni 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and End Dates"
msgstr "Zahteva se začetni in končni datum"
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_number_of_days
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
-#, python-format
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
+#, fuzzy, python-format
+#| msgid ""
+#| "On sale order line with Product '%s', the number of days is negative ; "
+#| "this is not allowed."
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
+"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 ""
"Na postavki prodajnega naloga s proizvodom '%s' je število dni negativno; to "
"ni dovoljeno."
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
-
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Prodajni nalog"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -115,12 +104,12 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
@@ -129,5 +118,22 @@ msgstr ""
"Začetni datum mora biti na postavki prodajnega naloga s proizvodom '%s' pred "
"končnim datumom (ali enak)."
-#~ msgid "Sales Order"
-#~ msgstr "Prodajni nalog"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, fuzzy, python-format
+#| msgid "Number of Days"
+msgid "Wrong number of days"
+msgstr "Število dni"
+
+#~ 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
index c0544f6bf6b..1f213c18b2f 100644
--- a/sale_start_end_dates/i18n/tr.po
+++ b/sale_start_end_dates/i18n/tr.po
@@ -19,84 +19,71 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Sipariş Emri"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -104,17 +91,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Sipariş Emri"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/tr_TR.po b/sale_start_end_dates/i18n/tr_TR.po
index 305fd830272..b9abe4280b4 100644
--- a/sale_start_end_dates/i18n/tr_TR.po
+++ b/sale_start_end_dates/i18n/tr_TR.po
@@ -20,84 +20,71 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Satış emri"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -105,17 +92,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Satış emri"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/vi_VN.po b/sale_start_end_dates/i18n/vi_VN.po
index 307327d4709..00e69d374f2 100644
--- a/sale_start_end_dates/i18n/vi_VN.po
+++ b/sale_start_end_dates/i18n/vi_VN.po
@@ -20,84 +20,71 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "Đơn hàng Bán"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -105,17 +92,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "Đơn hàng Bán"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
diff --git a/sale_start_end_dates/i18n/zh_CN.po b/sale_start_end_dates/i18n/zh_CN.po
index 9d029ade2b3..2305b09ca6d 100644
--- a/sale_start_end_dates/i18n/zh_CN.po
+++ b/sale_start_end_dates/i18n/zh_CN.po
@@ -19,84 +19,71 @@ msgstr ""
"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
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:22
+#: code:addons/sale_start_end_dates/models/sale_order.py:21
#, python-format
msgid ""
"Default Start Date should be before or be the same as Default End Date for "
-"sale order %s"
+"sale order '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line_end_date
+#: 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:58
+#: code:addons/sale_start_end_dates/models/sale_order.py:86
#, python-format
msgid "Missing End Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:62
+#: code:addons/sale_start_end_dates/models/sale_order.py:90
#, python-format
msgid "Missing Start Date for sale order line with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:66
-#, python-format
-msgid "Missing number of days 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
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid "Must Have Start and 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:75
+#: code:addons/sale_start_end_dates/models/sale_order.py:68
#, python-format
msgid ""
-"On sale order line with Product '%s', the number of days is negative ; this "
-"is not allowed."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale.py:83
-#, python-format
-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."
+"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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Quotation"
-msgstr ""
+#, fuzzy
+#| msgid "Sales Order"
+msgid "Sale Order"
+msgstr "销售订单"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
@@ -104,17 +91,20 @@ 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
+#: 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
-#: code:addons/sale_start_end_dates/models/sale.py:70
+#: code:addons/sale_start_end_dates/models/sale_order.py:94
#, python-format
msgid ""
"Start Date should be before or be the same as End Date for sale order line "
"with Product '%s'."
msgstr ""
-#~ msgid "Sales Order"
-#~ msgstr "销售订单"
+#. module: sale_start_end_dates
+#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#, python-format
+msgid "Wrong number of days"
+msgstr ""
From dbe129d462c2d21c03e87da0bbf2dcfc1fe3b9f0 Mon Sep 17 00:00:00 2001
From: Pedro Castro Silva
Date: Mon, 23 Mar 2020 11:35:03 +0000
Subject: [PATCH 18/34] Translated using Weblate (Portuguese)
Currently translated at 26.7% (4 of 15 strings)
Translation: sale-workflow-12.0/sale-workflow-12.0-sale_start_end_dates
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_start_end_dates/pt/
---
sale_start_end_dates/i18n/pt.po | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/sale_start_end_dates/i18n/pt.po b/sale_start_end_dates/i18n/pt.po
index 7638afb7836..39b7a1f7521 100644
--- a/sale_start_end_dates/i18n/pt.po
+++ b/sale_start_end_dates/i18n/pt.po
@@ -9,14 +9,15 @@ 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"
+"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
@@ -80,20 +81,18 @@ msgstr ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-#, fuzzy
-#| msgid "Sales Order"
msgid "Sale Order"
-msgstr "Ordem de Venda"
+msgstr "Encomenda de Venda"
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order_line
msgid "Sales Order Line"
-msgstr ""
+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 ""
+msgstr "Data de Início"
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/models/sale_order.py:94
@@ -107,4 +106,4 @@ msgstr ""
#: code:addons/sale_start_end_dates/models/sale_order.py:67
#, python-format
msgid "Wrong number of days"
-msgstr ""
+msgstr "Número de dias errado"
From 01e28b2495583dfa226347c0a6f2288e12c1a181 Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Fri, 24 Apr 2020 23:04:41 +0200
Subject: [PATCH 19/34] [MIG] sale_start_end_dates to v13
---
sale_start_end_dates/__manifest__.py | 22 +--
sale_start_end_dates/models/sale_order.py | 150 ++++++++++--------
.../tests/test_sale_start_end_dates.py | 95 ++++++-----
sale_start_end_dates/views/sale_order.xml | 57 ++++---
4 files changed, 190 insertions(+), 134 deletions(-)
diff --git a/sale_start_end_dates/__manifest__.py b/sale_start_end_dates/__manifest__.py
index 477aedef6a3..36f48d25bfe 100644
--- a/sale_start_end_dates/__manifest__.py
+++ b/sale_start_end_dates/__manifest__.py
@@ -1,17 +1,17 @@
-# Copyright 2014-2019 Akretion France (http://www.akretion.com)
+# Copyright 2014-2020 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': '12.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)',
- 'website': 'https://github.com/OCA/sale-workflow',
- 'depends': ['account_invoice_start_end_dates', 'sale'],
- 'data': ['views/sale_order.xml'],
- 'installable': True,
+ "name": "Sale Start End Dates",
+ "version": "13.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)",
+ "website": "https://github.com/OCA/sale-workflow",
+ "depends": ["account_invoice_start_end_dates", "sale"],
+ "data": ["views/sale_order.xml"],
+ "installable": True,
}
diff --git a/sale_start_end_dates/models/sale_order.py b/sale_start_end_dates/models/sale_order.py
index 7ef3fc2df34..a08db783d8d 100644
--- a/sale_start_end_dates/models/sale_order.py
+++ b/sale_start_end_dates/models/sale_order.py
@@ -1,57 +1,73 @@
-# Copyright 2014-2019 Akretion (http://www.akretion.com)
+# Copyright 2014-2020 Akretion (http://www.akretion.com)
# @author Alexis de Lattre
-# Copyright 2016-2019 Sodexis (http://sodexis.com)
+# Copyright 2016-2020 Sodexis (http://sodexis.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-from odoo import api, fields, models, _
-from odoo.exceptions import ValidationError
from dateutil.relativedelta import relativedelta
+from odoo import _, api, fields, models
+from odoo.exceptions import ValidationError
+
class SaleOrder(models.Model):
- _inherit = 'sale.order'
+ _inherit = "sale.order"
- default_start_date = fields.Date(string='Default Start Date')
- default_end_date = fields.Date(string='Default End Date')
+ default_start_date = fields.Date(string="Default Start Date")
+ default_end_date = fields.Date(string="Default End Date")
- @api.constrains('default_start_date', 'default_end_date')
+ @api.constrains("default_start_date", "default_end_date")
def _check_default_start_end_dates(self):
- if (self.default_start_date and self.default_end_date and
- self.default_start_date > self.default_end_date):
- raise ValidationError(_(
- "Default Start Date should be before or be the "
- "same as Default End Date for sale order '%s'.")
- % self.display_name)
-
- @api.onchange('default_start_date')
+ if (
+ self.default_start_date
+ and self.default_end_date
+ and self.default_start_date > self.default_end_date
+ ):
+ raise ValidationError(
+ _(
+ "Default Start Date should be before or be the "
+ "same as Default End Date for sale order '%s'."
+ )
+ % self.display_name
+ )
+
+ @api.onchange("default_start_date")
def default_start_date_change(self):
- if (self.default_start_date and self.default_end_date and
- self.default_start_date > self.default_end_date):
+ if (
+ self.default_start_date
+ and self.default_end_date
+ and self.default_start_date > self.default_end_date
+ ):
self.default_end_date = self.default_start_date
- @api.onchange('default_end_date')
+ @api.onchange("default_end_date")
def default_end_date_change(self):
- if (self.default_start_date and self.default_end_date and
- self.default_start_date > self.default_end_date):
+ if (
+ self.default_start_date
+ and self.default_end_date
+ and self.default_start_date > self.default_end_date
+ ):
self.default_start_date = self.default_end_date
class SaleOrderLine(models.Model):
- _inherit = 'sale.order.line'
+ _inherit = "sale.order.line"
start_date = fields.Date(
- string='Start Date', readonly=True,
- states={'draft': [('readonly', False)]})
+ string="Start Date", readonly=True, states={"draft": [("readonly", False)]}
+ )
end_date = fields.Date(
- string='End Date', readonly=True,
- states={'draft': [('readonly', False)]})
+ string="End Date", readonly=True, states={"draft": [("readonly", False)]}
+ )
number_of_days = fields.Integer(
- compute='_compute_number_of_days',
- inverse='_inverse_number_of_days',
- string='Number of Days', readonly=False, store=True)
- must_have_dates = fields.Boolean(related='product_id.must_have_dates')
-
- @api.depends('start_date', 'end_date')
+ compute="_compute_number_of_days",
+ inverse="_inverse_number_of_days",
+ string="Number of Days",
+ readonly=False,
+ store=True,
+ )
+ 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
@@ -59,66 +75,72 @@ def _compute_number_of_days(self):
days = (line.end_date - line.start_date).days + 1
line.number_of_days = days
- @api.onchange('number_of_days')
+ @api.onchange("number_of_days")
def _inverse_number_of_days(self):
- res = {'warning': {}}
+ res = {"warning": {}}
for line in self:
if line.number_of_days < 0:
- res['warning']['title'] = _('Wrong number of days')
- res['warning']['message'] = _(
+ res["warning"]["title"] = _("Wrong number of days")
+ res["warning"]["message"] = _(
"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.") % (
- line.product_id.display_name, line.number_of_days)
+ "allowed. The number of days has been forced to 1."
+ ) % (line.product_id.display_name, 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)
+ 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)
+ line.start_date = line.end_date - relativedelta(
+ days=line.number_of_days - 1
+ )
return res
- @api.constrains('start_date', 'end_date')
+ @api.constrains("product_id", "start_date", "end_date")
def _check_start_end_dates(self):
- if self.must_have_dates:
+ if self.product_id.must_have_dates:
if not self.end_date:
- raise ValidationError(_(
- "Missing End Date for sale order line with "
- "Product '%s'.") % (self.product_id.name))
+ raise ValidationError(
+ _("Missing End Date for sale order line with " "Product '%s'.")
+ % (self.product_id.display_name)
+ )
if not self.start_date:
- raise ValidationError(_(
- "Missing Start Date for sale order line with "
- "Product '%s'.") % (self.product_id.name))
+ raise ValidationError(
+ _("Missing Start Date for sale order line with " "Product '%s'.")
+ % (self.product_id.display_name)
+ )
if self.start_date > self.end_date:
- raise ValidationError(_(
- "Start Date should be before or be the same as "
- "End Date for sale order line with Product '%s'.")
- % (self.product_id.name))
-
- def _prepare_invoice_line(self, qty):
+ raise ValidationError(
+ _(
+ "Start Date should be before or be the same as "
+ "End Date for sale order line with Product '%s'."
+ )
+ % (self.product_id.display_name)
+ )
+
+ def _prepare_invoice_line(self):
self.ensure_one()
- res = super(SaleOrderLine, self)._prepare_invoice_line(qty)
+ res = super()._prepare_invoice_line()
if self.must_have_dates:
- res.update({
- 'start_date': self.start_date,
- 'end_date': self.end_date,
- })
+ res.update(
+ {"start_date": self.start_date, "end_date": self.end_date,}
+ )
return res
- @api.onchange('end_date')
+ @api.onchange("end_date")
def end_date_change(self):
if self.end_date:
if self.start_date and self.start_date > self.end_date:
self.start_date = self.end_date
- @api.onchange('start_date')
+ @api.onchange("start_date")
def start_date_change(self):
if self.start_date:
if self.end_date and self.start_date > self.end_date:
self.end_date = self.start_date
- @api.onchange('product_id')
+ @api.onchange("product_id")
def start_end_dates_product_id_change(self):
if self.product_id.must_have_dates:
if self.order_id.default_start_date:
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
index 9aa799a1ad0..2492a6afd72 100644
--- a/sale_start_end_dates/tests/test_sale_start_end_dates.py
+++ b/sale_start_end_dates/tests/test_sale_start_end_dates.py
@@ -1,52 +1,65 @@
# Copyright (C) 2018 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-from odoo.tests.common import TransactionCase
-from odoo.exceptions import ValidationError
import datetime
+from odoo.exceptions import ValidationError
+from odoo.tests.common import TransactionCase
+
class TestSaleStartEndDates(TransactionCase):
-
def setUp(self):
super(TestSaleStartEndDates, self).setUp()
- self.partner = self.env.ref('base.res_partner_3')
- self.product_id = self.env.ref('product.product_product_7')
+ self.partner = self.env.ref("base.res_partner_3")
+ self.product_id = self.env.ref("product.product_product_7")
self.product_id.must_have_dates = True
self.default_start_date = datetime.datetime.now()
- self.default_end_date = self.default_start_date + \
- datetime.timedelta(days=9)
- self.so = self.env['sale.order'].create({
- 'partner_id': self.partner.id,
- 'partner_invoice_id': self.partner.id,
- 'partner_shipping_id': self.partner.id,
- 'default_start_date': self.default_start_date,
- 'default_end_date': self.default_end_date,
- 'pricelist_id': self.env.ref('product.list0').id,
- 'order_line': [(0, 0, {
- 'name': self.product_id.name,
- 'product_id': self.product_id.id,
- 'product_uom_qty': 2,
- 'product_uom': self.product_id.uom_id.id,
- 'price_unit': self.product_id.list_price,
- })],
- })
+ self.default_end_date = self.default_start_date + datetime.timedelta(days=9)
+ self.so = self.env["sale.order"].create(
+ {
+ "partner_id": self.partner.id,
+ "partner_invoice_id": self.partner.id,
+ "partner_shipping_id": self.partner.id,
+ "default_start_date": self.default_start_date,
+ "default_end_date": self.default_end_date,
+ "pricelist_id": self.env.ref("product.list0").id,
+ "order_line": [
+ (
+ 0,
+ 0,
+ {
+ "name": self.product_id.name,
+ "product_id": self.product_id.id,
+ "product_uom_qty": 2,
+ "product_uom": self.product_id.uom_id.id,
+ "price_unit": self.product_id.list_price,
+ "start_date": self.default_start_date,
+ "end_date": self.default_end_date,
+ },
+ )
+ ],
+ }
+ )
self.so.action_confirm()
- for so_lines in self.so.order_line:
- so_lines.write({'start_date': self.default_start_date,
- 'end_date': self.default_end_date,
- })
def test_default_start_date_change(self):
with self.assertRaises(ValidationError):
- self.so.write({'default_start_date': self.default_end_date,
- 'default_end_date': self.default_start_date})
+ self.so.write(
+ {
+ "default_start_date": self.default_end_date,
+ "default_end_date": self.default_start_date,
+ }
+ )
self.so.default_start_date_change()
def test_default_end_date_change(self):
with self.assertRaises(ValidationError):
- self.so.write({'default_start_date': self.default_end_date,
- 'default_end_date': self.default_start_date})
+ self.so.write(
+ {
+ "default_start_date": self.default_end_date,
+ "default_end_date": self.default_start_date,
+ }
+ )
self.so.default_end_date_change()
def test_start_end_dates_product_id_change(self):
@@ -62,14 +75,16 @@ def test_start_end_dates_product_id(self):
def test_end_date_change(self):
self.product_id.must_have_dates = False
- self.so.order_line.write({'start_date': self.default_end_date,
- 'end_date': self.default_start_date})
+ self.so.order_line.write(
+ {"start_date": self.default_end_date, "end_date": self.default_start_date}
+ )
self.so.order_line.end_date_change()
def test_start_date_change(self):
self.product_id.must_have_dates = False
- self.so.order_line.write({'start_date': self.default_end_date,
- 'end_date': self.default_start_date})
+ self.so.order_line.write(
+ {"start_date": self.default_end_date, "end_date": self.default_start_date}
+ )
self.so.order_line.start_date_change()
def test_constrains_end_dates(self):
@@ -82,8 +97,12 @@ def test_constrains_start_date(self):
def test_constrains_greater_st_date(self):
with self.assertRaises(ValidationError):
- self.so.order_line.write({'start_date': self.default_end_date,
- 'end_date': self.default_start_date})
+ self.so.order_line.write(
+ {
+ "start_date": self.default_end_date,
+ "end_date": self.default_start_date,
+ }
+ )
def test_compute_number_of_days(self):
self.assertEqual(self.so.order_line[0].number_of_days, 10)
@@ -91,5 +110,5 @@ def test_compute_number_of_days(self):
def test_inverse_number_of_days(self):
self.so.order_line[0].number_of_days = 1
self.assertEqual(
- self.so.order_line[0].start_date,
- self.so.order_line[0].end_date)
+ self.so.order_line[0].start_date, self.so.order_line[0].end_date
+ )
diff --git a/sale_start_end_dates/views/sale_order.xml b/sale_start_end_dates/views/sale_order.xml
index a0e64fdd217..4278e925d57 100644
--- a/sale_start_end_dates/views/sale_order.xml
+++ b/sale_start_end_dates/views/sale_order.xml
@@ -1,38 +1,53 @@
-
+
-
-
start.end.dates.view_order_form
sale.order
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
From ea9114140883aa6647dd6e0a376f78a7b09f32eb Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Sat, 25 Apr 2020 16:08:22 +0200
Subject: [PATCH 20/34] Black/flake8 fight
---
sale_start_end_dates/models/sale_order.py | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sale_start_end_dates/models/sale_order.py b/sale_start_end_dates/models/sale_order.py
index a08db783d8d..b59bfa57c70 100644
--- a/sale_start_end_dates/models/sale_order.py
+++ b/sale_start_end_dates/models/sale_order.py
@@ -123,9 +123,7 @@ def _prepare_invoice_line(self):
self.ensure_one()
res = super()._prepare_invoice_line()
if self.must_have_dates:
- res.update(
- {"start_date": self.start_date, "end_date": self.end_date,}
- )
+ res.update({"start_date": self.start_date, "end_date": self.end_date})
return res
@api.onchange("end_date")
From 039f89bf2c985d44f8853589f49b2c455f1309fd Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Sat, 25 Apr 2020 16:10:01 +0200
Subject: [PATCH 21/34] Add maintainers key in manifest
---
sale_start_end_dates/__manifest__.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/sale_start_end_dates/__manifest__.py b/sale_start_end_dates/__manifest__.py
index 36f48d25bfe..2e1daefca9a 100644
--- a/sale_start_end_dates/__manifest__.py
+++ b/sale_start_end_dates/__manifest__.py
@@ -10,6 +10,7 @@
"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"],
From bac3871981040f719376a06a5a3007fdcebb1cdf Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Wed, 23 Dec 2020 17:16:45 +0100
Subject: [PATCH 22/34] [MIG] sale_start_end_dates to v14
---
sale_start_end_dates/__manifest__.py | 2 +-
sale_start_end_dates/models/sale_order.py | 67 ++++++++++++-----------
sale_start_end_dates/views/sale_order.xml | 6 +-
3 files changed, 41 insertions(+), 34 deletions(-)
diff --git a/sale_start_end_dates/__manifest__.py b/sale_start_end_dates/__manifest__.py
index 2e1daefca9a..8c30dffdeba 100644
--- a/sale_start_end_dates/__manifest__.py
+++ b/sale_start_end_dates/__manifest__.py
@@ -5,7 +5,7 @@
{
"name": "Sale Start End Dates",
- "version": "13.0.1.0.0",
+ "version": "14.0.1.0.0",
"category": "Sales",
"license": "AGPL-3",
"summary": "Adds start date and end date on sale order lines",
diff --git a/sale_start_end_dates/models/sale_order.py b/sale_start_end_dates/models/sale_order.py
index b59bfa57c70..a0c9726ac3d 100644
--- a/sale_start_end_dates/models/sale_order.py
+++ b/sale_start_end_dates/models/sale_order.py
@@ -17,18 +17,19 @@ class SaleOrder(models.Model):
@api.constrains("default_start_date", "default_end_date")
def _check_default_start_end_dates(self):
- if (
- self.default_start_date
- and self.default_end_date
- and self.default_start_date > self.default_end_date
- ):
- raise ValidationError(
- _(
- "Default Start Date should be before or be the "
- "same as Default End Date for sale order '%s'."
+ 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 should be before or be the "
+ "same as Default End Date for sale order '%s'."
+ )
+ % order.display_name
)
- % self.display_name
- )
@api.onchange("default_start_date")
def default_start_date_change(self):
@@ -99,29 +100,33 @@ def _inverse_number_of_days(self):
@api.constrains("product_id", "start_date", "end_date")
def _check_start_end_dates(self):
- if self.product_id.must_have_dates:
- if not self.end_date:
- raise ValidationError(
- _("Missing End Date for sale order line with " "Product '%s'.")
- % (self.product_id.display_name)
- )
- if not self.start_date:
- raise ValidationError(
- _("Missing Start Date for sale order line with " "Product '%s'.")
- % (self.product_id.display_name)
- )
- if self.start_date > self.end_date:
- raise ValidationError(
- _(
- "Start Date should be before or be the same as "
- "End Date for sale order line with Product '%s'."
+ 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 should be before or be the same as "
+ "End Date for sale order line with Product '%s'."
+ )
+ % (line.product_id.display_name)
)
- % (self.product_id.display_name)
- )
- def _prepare_invoice_line(self):
+ def _prepare_invoice_line(self, **optional_values):
self.ensure_one()
- res = super()._prepare_invoice_line()
+ res = super()._prepare_invoice_line(**optional_values)
if self.must_have_dates:
res.update({"start_date": self.start_date, "end_date": self.end_date})
return res
diff --git a/sale_start_end_dates/views/sale_order.xml b/sale_start_end_dates/views/sale_order.xml
index 4278e925d57..8c5b98b93c5 100644
--- a/sale_start_end_dates/views/sale_order.xml
+++ b/sale_start_end_dates/views/sale_order.xml
@@ -36,15 +36,17 @@
-
+
-
+
From 0f526d7ee2366011da97cf22f576f8758eb2964c Mon Sep 17 00:00:00 2001
From: oca-travis
Date: Sun, 1 Aug 2021 01:10:50 +0000
Subject: [PATCH 23/34] [UPD] Update sale_start_end_dates.pot
---
.../i18n/sale_start_end_dates.pot | 57 +++++++++++++------
1 file changed, 41 insertions(+), 16 deletions(-)
diff --git a/sale_start_end_dates/i18n/sale_start_end_dates.pot b/sale_start_end_dates/i18n/sale_start_end_dates.pot
index 8b677439224..b5704dfa459 100644
--- a/sale_start_end_dates/i18n/sale_start_end_dates.pot
+++ b/sale_start_end_dates/i18n/sale_start_end_dates.pot
@@ -1,12 +1,12 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
-# * sale_start_end_dates
+# * sale_start_end_dates
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 12.0\n"
+"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
-"Last-Translator: <>\n"
+"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -24,9 +24,17 @@ msgid "Default Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale_order.py:21
+#: code:addons/sale_start_end_dates/models/sale_order.py:0
#, 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 ""
+
+#. module: sale_start_end_dates
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__display_name
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__display_name
+msgid "Display Name"
msgstr ""
#. module: sale_start_end_dates
@@ -34,26 +42,40 @@ msgstr ""
msgid "End Date"
msgstr ""
+#. module: sale_start_end_dates
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__id
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__id
+msgid "ID"
+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."
+msgid ""
+"If this option is active, the user will have to enter a Start Date and an "
+"End Date on the invoice/move lines that have this product."
+msgstr ""
+
+#. module: sale_start_end_dates
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order____last_update
+#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line____last_update
+msgid "Last Modified on"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale_order.py:86
+#: 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
-#: code:addons/sale_start_end_dates/models/sale_order.py:90
+#: 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 and End Dates"
+msgid "Must Have Start/End Dates"
msgstr ""
#. module: sale_start_end_dates
@@ -62,14 +84,16 @@ msgid "Number of Days"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale_order.py:68
+#: code:addons/sale_start_end_dates/models/sale_order.py:0
#, 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."
+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 ""
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
-msgid "Sale Order"
+msgid "Sales Order"
msgstr ""
#. module: sale_start_end_dates
@@ -83,14 +107,15 @@ msgid "Start Date"
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale_order.py:94
+#: code:addons/sale_start_end_dates/models/sale_order.py:0
#, python-format
-msgid "Start Date should be before or be the same as End Date for sale order line with Product '%s'."
+msgid ""
+"Start Date should be before or be the same as End Date for sale order line "
+"with Product '%s'."
msgstr ""
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale_order.py:67
+#: code:addons/sale_start_end_dates/models/sale_order.py:0
#, python-format
msgid "Wrong number of days"
msgstr ""
-
From acc9873defad3f62b18a6707eeb56fb2185062d4 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Sun, 1 Aug 2021 01:20:29 +0000
Subject: [PATCH 24/34] [UPD] README.rst
---
sale_start_end_dates/README.rst | 18 +++++++++++++-----
.../static/description/index.html | 8 +++++---
2 files changed, 18 insertions(+), 8 deletions(-)
diff --git a/sale_start_end_dates/README.rst b/sale_start_end_dates/README.rst
index fde2a46cd1e..c3600a5aabf 100644
--- a/sale_start_end_dates/README.rst
+++ b/sale_start_end_dates/README.rst
@@ -14,13 +14,13 @@ Sale Start End Dates
: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/12.0/sale_start_end_dates
+ :target: https://github.com/OCA/sale-workflow/tree/14.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-12-0/sale-workflow-12-0-sale_start_end_dates
+ :target: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_start_end_dates
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/167/12.0
+ :target: https://runbot.odoo-community.org/runbot/167/14.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -47,7 +47,7 @@ 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 smashing it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -80,6 +80,14 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-This module is part of the `OCA/sale-workflow `_ project on GitHub.
+.. |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/static/description/index.html b/sale_start_end_dates/static/description/index.html
index a91d5552bd4..b50f04011a8 100644
--- a/sale_start_end_dates/static/description/index.html
+++ b/sale_start_end_dates/static/description/index.html
@@ -367,7 +367,7 @@ Sale Start End Dates
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
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
@@ -394,7 +394,7 @@
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 smashing it by providing a detailed and welcomed
-feedback.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -421,7 +421,9 @@
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
-
This module is part of the OCA/sale-workflow project on GitHub.
+
Current maintainer:
+
+
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.
From 8ae4b588ac9445c29cdeccb059163589fcdf10ab Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Tue, 7 Dec 2021 10:26:23 +0100
Subject: [PATCH 25/34] [MIG] sale_start_end_dates to v15
---
sale_start_end_dates/__manifest__.py | 4 +-
sale_start_end_dates/i18n/de.po | 13 ------
sale_start_end_dates/i18n/fr.po | 13 ------
sale_start_end_dates/i18n/it.po | 13 ------
sale_start_end_dates/i18n/nl_NL.po | 13 ------
sale_start_end_dates/i18n/sl.po | 13 ------
sale_start_end_dates/models/sale_order.py | 46 ++++++++++++-------
.../tests/test_sale_start_end_dates.py | 2 +-
sale_start_end_dates/views/sale_order.xml | 4 +-
9 files changed, 34 insertions(+), 87 deletions(-)
diff --git a/sale_start_end_dates/__manifest__.py b/sale_start_end_dates/__manifest__.py
index 8c30dffdeba..1d043646abe 100644
--- a/sale_start_end_dates/__manifest__.py
+++ b/sale_start_end_dates/__manifest__.py
@@ -1,11 +1,11 @@
-# Copyright 2014-2020 Akretion France (http://www.akretion.com)
+# 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": "14.0.1.0.0",
+ "version": "15.0.1.0.0",
"category": "Sales",
"license": "AGPL-3",
"summary": "Adds start date and end date on sale order lines",
diff --git a/sale_start_end_dates/i18n/de.po b/sale_start_end_dates/i18n/de.po
index 10161371bb2..21ce641953b 100644
--- a/sale_start_end_dates/i18n/de.po
+++ b/sale_start_end_dates/i18n/de.po
@@ -73,19 +73,6 @@ msgstr "Muss Anfangs- und Enddatum haben"
msgid "Number of Days"
msgstr "Anzahl Tage"
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale_order.py:68
-#, fuzzy, python-format
-#| msgid ""
-#| "On sale order line with Product '%s', the number of days is negative ; "
-#| "this is not allowed."
-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 ""
-"In Auftragsposition des Produkts '%s' ist die Anzahl Tage negativ; dies ist "
-"nicht zulässig."
-
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
#, fuzzy
diff --git a/sale_start_end_dates/i18n/fr.po b/sale_start_end_dates/i18n/fr.po
index e88bd88114a..49a51f4c7e7 100644
--- a/sale_start_end_dates/i18n/fr.po
+++ b/sale_start_end_dates/i18n/fr.po
@@ -82,19 +82,6 @@ msgstr "Doit comporter une date de début et de fin"
msgid "Number of Days"
msgstr "Nombre de jours"
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale_order.py:68
-#, fuzzy, python-format
-#| msgid ""
-#| "On sale order line with Product '%s', the number of days is negative ; "
-#| "this is not allowed."
-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 ""
-"Bon de commande avec ligne article saisie '%s', le nombre de jours est "
-"négatif; Ceci n'est pas autorisé."
-
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
#, fuzzy
diff --git a/sale_start_end_dates/i18n/it.po b/sale_start_end_dates/i18n/it.po
index 8b1aa4d7961..82930e50440 100644
--- a/sale_start_end_dates/i18n/it.po
+++ b/sale_start_end_dates/i18n/it.po
@@ -75,19 +75,6 @@ msgstr "Necessario Data Inizio e Fine"
msgid "Number of Days"
msgstr "Numero di giorni"
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale_order.py:68
-#, fuzzy, python-format
-#| msgid ""
-#| "On sale order line with Product '%s', the number of days is negative ; "
-#| "this is not allowed."
-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 ""
-"L'ordine di vendita per il prodotto '%s' ha un numero di giorni negativo : "
-"questo no e' permesso."
-
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
#, fuzzy
diff --git a/sale_start_end_dates/i18n/nl_NL.po b/sale_start_end_dates/i18n/nl_NL.po
index 5158725cc28..dfa1083caba 100644
--- a/sale_start_end_dates/i18n/nl_NL.po
+++ b/sale_start_end_dates/i18n/nl_NL.po
@@ -79,19 +79,6 @@ msgstr "Moet begin- en einddatums hebben"
msgid "Number of Days"
msgstr "Aantal dagen"
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale_order.py:68
-#, fuzzy, python-format
-#| msgid ""
-#| "On sale order line with Product '%s', the number of days is negative ; "
-#| "this is not allowed."
-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 ""
-"Voor de kooporderregel met product '%s', is het aantal dagen negatief "
-"opgegeven; dit is niet toegestaan."
-
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
#, fuzzy
diff --git a/sale_start_end_dates/i18n/sl.po b/sale_start_end_dates/i18n/sl.po
index b58b3cda382..d46f741fa0b 100644
--- a/sale_start_end_dates/i18n/sl.po
+++ b/sale_start_end_dates/i18n/sl.po
@@ -78,19 +78,6 @@ msgstr "Zahteva se začetni in končni datum"
msgid "Number of Days"
msgstr "Število dni"
-#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale_order.py:68
-#, fuzzy, python-format
-#| msgid ""
-#| "On sale order line with Product '%s', the number of days is negative ; "
-#| "this is not allowed."
-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 ""
-"Na postavki prodajnega naloga s proizvodom '%s' je število dni negativno; to "
-"ni dovoljeno."
-
#. module: sale_start_end_dates
#: model:ir.model,name:sale_start_end_dates.model_sale_order
#, fuzzy
diff --git a/sale_start_end_dates/models/sale_order.py b/sale_start_end_dates/models/sale_order.py
index a0c9726ac3d..3cda0109e3f 100644
--- a/sale_start_end_dates/models/sale_order.py
+++ b/sale_start_end_dates/models/sale_order.py
@@ -1,19 +1,20 @@
-# Copyright 2014-2020 Akretion (http://www.akretion.com)
+# Copyright 2014-2021 Akretion (http://www.akretion.com)
# @author Alexis de Lattre
-# Copyright 2016-2020 Sodexis (http://sodexis.com)
+# 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(string="Default Start Date")
- default_end_date = fields.Date(string="Default End Date")
+ default_start_date = fields.Date()
+ default_end_date = fields.Date()
@api.constrains("default_start_date", "default_end_date")
def _check_default_start_end_dates(self):
@@ -25,10 +26,13 @@ def _check_default_start_end_dates(self):
):
raise ValidationError(
_(
- "Default Start Date should be before or be the "
- "same as Default End Date for sale order '%s'."
+ "Default Start Date ({start_date}) should be before or be the "
+ "same as Default End Date ({end_date}) for sale order '{name}'."
+ ).format(
+ start_date=format_date(self.env, order.default_start_date),
+ end_date=format_date(self.env, order.default_end_date),
+ name=order.display_name,
)
- % order.display_name
)
@api.onchange("default_start_date")
@@ -54,15 +58,16 @@ class SaleOrderLine(models.Model):
_inherit = "sale.order.line"
start_date = fields.Date(
- string="Start Date", readonly=True, states={"draft": [("readonly", False)]}
+ readonly=True,
+ states={"draft": [("readonly", False)], "sent": [("readonly", False)]},
)
end_date = fields.Date(
- string="End Date", readonly=True, states={"draft": [("readonly", False)]}
+ readonly=True,
+ states={"draft": [("readonly", False)], "sent": [("readonly", False)]},
)
number_of_days = fields.Integer(
compute="_compute_number_of_days",
inverse="_inverse_number_of_days",
- string="Number of Days",
readonly=False,
store=True,
)
@@ -83,10 +88,13 @@ def _inverse_number_of_days(self):
if line.number_of_days < 0:
res["warning"]["title"] = _("Wrong number of days")
res["warning"]["message"] = _(
- "On sale order line with product '%s', the "
- "number of days is negative (%d) ; this is not "
+ "On sale order line with product '{product_name}', the "
+ "number of days is negative ({number_of_days}) ; this is not "
"allowed. The number of days has been forced to 1."
- ) % (line.product_id.display_name, line.number_of_days)
+ ).format(
+ 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(
@@ -118,16 +126,20 @@ def _check_start_end_dates(self):
if line.start_date > line.end_date:
raise ValidationError(
_(
- "Start Date should be before or be the same as "
- "End Date for sale order line with Product '%s'."
+ "Start Date ({start_date}) should be before or "
+ "be the same as End Date ({end_date}) for sale order line "
+ "with Product '{product_name}'."
+ ).format(
+ 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,
)
- % (line.product_id.display_name)
)
def _prepare_invoice_line(self, **optional_values):
self.ensure_one()
res = super()._prepare_invoice_line(**optional_values)
- if self.must_have_dates:
+ if not self.display_type and self.must_have_dates:
res.update({"start_date": self.start_date, "end_date": self.end_date})
return res
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
index 2492a6afd72..6eff08c5ae0 100644
--- a/sale_start_end_dates/tests/test_sale_start_end_dates.py
+++ b/sale_start_end_dates/tests/test_sale_start_end_dates.py
@@ -9,7 +9,7 @@
class TestSaleStartEndDates(TransactionCase):
def setUp(self):
- super(TestSaleStartEndDates, self).setUp()
+ super().setUp()
self.partner = self.env.ref("base.res_partner_3")
self.product_id = self.env.ref("product.product_product_7")
self.product_id.must_have_dates = True
diff --git a/sale_start_end_dates/views/sale_order.xml b/sale_start_end_dates/views/sale_order.xml
index 8c5b98b93c5..36e9c3b25f3 100644
--- a/sale_start_end_dates/views/sale_order.xml
+++ b/sale_start_end_dates/views/sale_order.xml
@@ -1,8 +1,8 @@
From e402a8b61cc0ed92d6e11b9555b31fb3e9409520 Mon Sep 17 00:00:00 2001
From: oca-ci
Date: Mon, 16 May 2022 09:16:46 +0000
Subject: [PATCH 26/34] [UPD] Update sale_start_end_dates.pot
---
.../i18n/sale_start_end_dates.pot | 35 +++++--------------
1 file changed, 9 insertions(+), 26 deletions(-)
diff --git a/sale_start_end_dates/i18n/sale_start_end_dates.pot b/sale_start_end_dates/i18n/sale_start_end_dates.pot
index b5704dfa459..5bc7c0950ef 100644
--- a/sale_start_end_dates/i18n/sale_start_end_dates.pot
+++ b/sale_start_end_dates/i18n/sale_start_end_dates.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 14.0\n"
+"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -27,14 +27,8 @@ msgstr ""
#: code:addons/sale_start_end_dates/models/sale_order.py:0
#, python-format
msgid ""
-"Default Start Date should be before or be the same as Default End Date for "
-"sale order '%s'."
-msgstr ""
-
-#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__display_name
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__display_name
-msgid "Display Name"
+"Default Start Date ({start_date}) should be before or be the same as Default"
+" End Date ({end_date}) for sale order '{name}'."
msgstr ""
#. module: sale_start_end_dates
@@ -42,12 +36,6 @@ msgstr ""
msgid "End Date"
msgstr ""
-#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order__id
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line__id
-msgid "ID"
-msgstr ""
-
#. module: sale_start_end_dates
#: model:ir.model.fields,help:sale_start_end_dates.field_sale_order_line__must_have_dates
msgid ""
@@ -55,12 +43,6 @@ msgid ""
"End Date on the invoice/move lines that have this product."
msgstr ""
-#. module: sale_start_end_dates
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order____last_update
-#: model:ir.model.fields,field_description:sale_start_end_dates.field_sale_order_line____last_update
-msgid "Last Modified on"
-msgstr ""
-
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/models/sale_order.py:0
#, python-format
@@ -80,15 +62,16 @@ 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"
+msgid "Number Of Days"
msgstr ""
#. module: sale_start_end_dates
#: code:addons/sale_start_end_dates/models/sale_order.py:0
#, 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."
+"On sale order line with product '{product_name}', the number of days is "
+"negative ({number_of_days}) ; this is not allowed. The number of days has "
+"been forced to 1."
msgstr ""
#. module: sale_start_end_dates
@@ -110,8 +93,8 @@ msgstr ""
#: code:addons/sale_start_end_dates/models/sale_order.py:0
#, python-format
msgid ""
-"Start Date should be before or be the same as End Date for sale order line "
-"with Product '%s'."
+"Start Date ({start_date}) should be before or be the same as End Date "
+"({end_date}) for sale order line with Product '{product_name}'."
msgstr ""
#. module: sale_start_end_dates
From 22515a9af81c83cb5fc087722af5995609022ac7 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Mon, 16 May 2022 09:21:25 +0000
Subject: [PATCH 27/34] [UPD] README.rst
---
sale_start_end_dates/README.rst | 10 +++++-----
sale_start_end_dates/static/description/index.html | 6 +++---
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/sale_start_end_dates/README.rst b/sale_start_end_dates/README.rst
index c3600a5aabf..f28f515d298 100644
--- a/sale_start_end_dates/README.rst
+++ b/sale_start_end_dates/README.rst
@@ -14,13 +14,13 @@ Sale Start End Dates
: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/14.0/sale_start_end_dates
+ :target: https://github.com/OCA/sale-workflow/tree/15.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-14-0/sale-workflow-14-0-sale_start_end_dates
+ :target: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_start_end_dates
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/167/14.0
+ :target: https://runbot.odoo-community.org/runbot/167/15.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -47,7 +47,7 @@ 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 smashing it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -88,6 +88,6 @@ Current `maintainer `__:
|maintainer-alexis-via|
-This module is part of the `OCA/sale-workflow `_ project on GitHub.
+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/static/description/index.html b/sale_start_end_dates/static/description/index.html
index b50f04011a8..5764b464fee 100644
--- a/sale_start_end_dates/static/description/index.html
+++ b/sale_start_end_dates/static/description/index.html
@@ -367,7 +367,7 @@ Sale Start End Dates
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
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
@@ -394,7 +394,7 @@
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 smashing it by providing a detailed and welcomed
-feedback.
+feedback.
Do not contact contributors directly about support or help with technical issues.
From 4d298bf291d12f99af2cd390c9bca1ea97969ffc Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Mon, 16 May 2022 09:21:26 +0000
Subject: [PATCH 28/34] sale_start_end_dates 15.0.1.0.1
---
sale_start_end_dates/__manifest__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sale_start_end_dates/__manifest__.py b/sale_start_end_dates/__manifest__.py
index 1d043646abe..6f003efb7d7 100644
--- a/sale_start_end_dates/__manifest__.py
+++ b/sale_start_end_dates/__manifest__.py
@@ -5,7 +5,7 @@
{
"name": "Sale Start End Dates",
- "version": "15.0.1.0.0",
+ "version": "15.0.1.0.1",
"category": "Sales",
"license": "AGPL-3",
"summary": "Adds start date and end date on sale order lines",
From c33fe60fb54c472629ff091a871b3d034a283917 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Thu, 2 Jun 2022 04:26:54 +0000
Subject: [PATCH 29/34] [UPD] README.rst
---
sale_start_end_dates/README.rst | 5 +----
sale_start_end_dates/static/description/index.html | 2 +-
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/sale_start_end_dates/README.rst b/sale_start_end_dates/README.rst
index f28f515d298..8629c9d0eef 100644
--- a/sale_start_end_dates/README.rst
+++ b/sale_start_end_dates/README.rst
@@ -19,11 +19,8 @@ Sale Start End Dates
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_start_end_dates
:alt: Translate me on Weblate
-.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/167/15.0
- :alt: Try me on Runbot
-|badge1| |badge2| |badge3| |badge4| |badge5|
+|badge1| |badge2| |badge3| |badge4|
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
diff --git a/sale_start_end_dates/static/description/index.html b/sale_start_end_dates/static/description/index.html
index 5764b464fee..5f1037cdcd9 100644
--- a/sale_start_end_dates/static/description/index.html
+++ b/sale_start_end_dates/static/description/index.html
@@ -367,7 +367,7 @@ Sale Start End Dates
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
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
From 63ae1a8f09e38eb71479e822ca879e7933339792 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Thu, 2 Jun 2022 05:13:41 +0000
Subject: [PATCH 30/34] [UPD] README.rst
---
sale_start_end_dates/README.rst | 5 ++++-
sale_start_end_dates/static/description/index.html | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/sale_start_end_dates/README.rst b/sale_start_end_dates/README.rst
index 8629c9d0eef..f28f515d298 100644
--- a/sale_start_end_dates/README.rst
+++ b/sale_start_end_dates/README.rst
@@ -19,8 +19,11 @@ Sale Start End Dates
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_start_end_dates
:alt: Translate me on Weblate
+.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
+ :target: https://runbot.odoo-community.org/runbot/167/15.0
+ :alt: Try me on Runbot
-|badge1| |badge2| |badge3| |badge4|
+|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
diff --git a/sale_start_end_dates/static/description/index.html b/sale_start_end_dates/static/description/index.html
index 5f1037cdcd9..5764b464fee 100644
--- a/sale_start_end_dates/static/description/index.html
+++ b/sale_start_end_dates/static/description/index.html
@@ -367,7 +367,7 @@ Sale Start End Dates
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
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
From d5a1409115c41510c15141dc952ebac23984130b Mon Sep 17 00:00:00 2001
From: vancouver29
Date: Wed, 11 Jan 2023 12:27:07 +0100
Subject: [PATCH 31/34] [IMP] sale_start_end_dates: pre-commit stuff
---
setup/sale_start_end_dates/odoo/addons/sale_start_end_dates | 1 +
setup/sale_start_end_dates/setup.py | 6 ++++++
2 files changed, 7 insertions(+)
create mode 120000 setup/sale_start_end_dates/odoo/addons/sale_start_end_dates
create mode 100644 setup/sale_start_end_dates/setup.py
diff --git a/setup/sale_start_end_dates/odoo/addons/sale_start_end_dates b/setup/sale_start_end_dates/odoo/addons/sale_start_end_dates
new file mode 120000
index 00000000000..363bb696fd4
--- /dev/null
+++ b/setup/sale_start_end_dates/odoo/addons/sale_start_end_dates
@@ -0,0 +1 @@
+../../../../sale_start_end_dates
\ No newline at end of file
diff --git a/setup/sale_start_end_dates/setup.py b/setup/sale_start_end_dates/setup.py
new file mode 100644
index 00000000000..28c57bb6403
--- /dev/null
+++ b/setup/sale_start_end_dates/setup.py
@@ -0,0 +1,6 @@
+import setuptools
+
+setuptools.setup(
+ setup_requires=['setuptools-odoo'],
+ odoo_addon=True,
+)
From 8dacdd6a87cf09734a47ccf6ae0d1aaa6eb57ddf Mon Sep 17 00:00:00 2001
From: vancouver29
Date: Wed, 11 Jan 2023 12:30:47 +0100
Subject: [PATCH 32/34] [MIG] sale_start_end_dates: Migration to 16.0
---
sale_start_end_dates/__manifest__.py | 2 +-
sale_start_end_dates/models/sale_order.py | 4 ----
.../tests/test_sale_start_end_dates.py | 12 ++++++++++++
3 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/sale_start_end_dates/__manifest__.py b/sale_start_end_dates/__manifest__.py
index 6f003efb7d7..a963cf8e91c 100644
--- a/sale_start_end_dates/__manifest__.py
+++ b/sale_start_end_dates/__manifest__.py
@@ -5,7 +5,7 @@
{
"name": "Sale Start End Dates",
- "version": "15.0.1.0.1",
+ "version": "16.0.1.0.0",
"category": "Sales",
"license": "AGPL-3",
"summary": "Adds start date and end date on sale order lines",
diff --git a/sale_start_end_dates/models/sale_order.py b/sale_start_end_dates/models/sale_order.py
index 3cda0109e3f..2803b37231e 100644
--- a/sale_start_end_dates/models/sale_order.py
+++ b/sale_start_end_dates/models/sale_order.py
@@ -160,12 +160,8 @@ def start_end_dates_product_id_change(self):
if self.product_id.must_have_dates:
if self.order_id.default_start_date:
self.start_date = self.order_id.default_start_date
- else:
- self.start_date = False
if self.order_id.default_end_date:
self.end_date = self.order_id.default_end_date
- else:
- self.end_date = False
else:
self.start_date = False
self.end_date = False
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
index 6eff08c5ae0..fec6a520fb6 100644
--- a/sale_start_end_dates/tests/test_sale_start_end_dates.py
+++ b/sale_start_end_dates/tests/test_sale_start_end_dates.py
@@ -67,6 +67,8 @@ def test_start_end_dates_product_id_change(self):
self.so.order_line.start_end_dates_product_id_change()
self.so.order_line.start_date_change()
self.so.order_line.end_date_change()
+ self.product_id.must_have_dates = False
+ self.so.order_line.start_end_dates_product_id_change()
def test_start_end_dates_product_id(self):
self.product_id.must_have_dates = False
@@ -112,3 +114,13 @@ def test_inverse_number_of_days(self):
self.assertEqual(
self.so.order_line[0].start_date, self.so.order_line[0].end_date
)
+ self.so.order_line[0].number_of_days = -1
+ self.assertEqual(self.so.order_line[0].number_of_days, 1)
+
+ def test_prepare_invoice_line(self):
+ invoice_line_vals = self.so.order_line._prepare_invoice_line()
+ self.assertEqual(invoice_line_vals["product_id"], self.product_id.id)
+ self.assertEqual(
+ invoice_line_vals["start_date"], self.so.order_line[0].start_date
+ )
+ self.assertEqual(invoice_line_vals["end_date"], self.so.order_line[0].end_date)
From b8ee3b00a5115738cf8f890d69cb383280b0ee43 Mon Sep 17 00:00:00 2001
From: Alexis de Lattre
Date: Tue, 20 Jun 2023 12:17:27 +0200
Subject: [PATCH 33/34] sale_start_end_dates: onchange -> compute methods
Improve and update some strings
Update FR translation
---
sale_start_end_dates/i18n/fr.po | 103 ++++++-------
.../i18n/sale_start_end_dates.pot | 26 ++--
sale_start_end_dates/models/sale_order.py | 142 ++++++++++--------
.../tests/test_sale_start_end_dates.py | 130 ++++++----------
4 files changed, 196 insertions(+), 205 deletions(-)
diff --git a/sale_start_end_dates/i18n/fr.po b/sale_start_end_dates/i18n/fr.po
index 49a51f4c7e7..1527671d17d 100644
--- a/sale_start_end_dates/i18n/fr.po
+++ b/sale_start_end_dates/i18n/fr.po
@@ -1,23 +1,20 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
-# * sale_start_end_dates
+# * sale_start_end_dates
#
-# Translators:
-# guillaume bauer , 2017
-# OCA Transbot , 2017
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 10.0\n"
+"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-11-23 01:51+0000\n"
-"PO-Revision-Date: 2017-11-23 01:51+0000\n"
-"Last-Translator: OCA Transbot , 2017\n"
-"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\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: nplurals=2; plural=(n > 1);\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
@@ -30,17 +27,16 @@ msgid "Default Start Date"
msgstr "Date de début par défaut"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale_order.py:21
-#, fuzzy, python-format
-#| msgid ""
-#| "Default Start Date should be before or be the same as Default End Date "
-#| "for sale order %s"
+#. odoo-python
+#: code:addons/sale_start_end_dates/models/sale_order.py:0
+#, python-format
msgid ""
-"Default Start Date should be before or be the same as Default End Date for "
-"sale order '%s'."
+"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 doit être antérieure ou identique à la date de "
-"fin par défaut du bon de commande %s"
+"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
@@ -54,45 +50,56 @@ msgid ""
"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 ce produit."
+"une date de fin sur les lignes de facture comportant cet article."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale_order.py:86
+#. 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 ""
-"Un bon de commande avec ligne article saisie doit comporter une date de fin "
-"'%s'."
+"Date de fin manquante sur la ligne de commande ayant l'article '%s'."
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale_order.py:90
+#. 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 ""
-"Un bon de commande avec ligne article saisie doit comporter une date de "
-"début '%s'."
+"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 and End Dates"
-msgstr "Doit comporter une date de début et de fin"
+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
-#, fuzzy
-#| msgid "Sales Order"
-msgid "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 "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
@@ -100,30 +107,20 @@ msgid "Start Date"
msgstr "Date de début"
#. module: sale_start_end_dates
-#: code:addons/sale_start_end_dates/models/sale_order.py:94
+#. odoo-python
+#: code:addons/sale_start_end_dates/models/sale_order.py:0
#, python-format
msgid ""
-"Start Date should be before or be the same as End Date for sale order line "
-"with Product '%s'."
+"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
-#: code:addons/sale_start_end_dates/models/sale_order.py:67
-#, fuzzy, python-format
-#| msgid "Number of Days"
+#. odoo-python
+#: code:addons/sale_start_end_dates/models/sale_order.py:0
+#, python-format
msgid "Wrong number of days"
-msgstr "Nombre de jours"
-
-#~ msgid "Missing number of days for sale order line with Product '%s'."
-#~ msgstr ""
-#~ "Un bon de commande avec ligne article saisie doit comporter un nombre de "
-#~ "jours '%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 ""
-#~ "Bon de commande avec ligne article saisie'%s', il y a %d jours entre la "
-#~ "date de début (%s) et la date de fin (%s), mais le nombre de jours de "
-#~ "champ a une valeur de %d jours."
+msgstr "Nombre de jours erroné"
diff --git a/sale_start_end_dates/i18n/sale_start_end_dates.pot b/sale_start_end_dates/i18n/sale_start_end_dates.pot
index 5bc7c0950ef..8d67bb1445c 100644
--- a/sale_start_end_dates/i18n/sale_start_end_dates.pot
+++ b/sale_start_end_dates/i18n/sale_start_end_dates.pot
@@ -4,8 +4,10 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 15.0\n"
+"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2023-06-20 10:07+0000\n"
+"PO-Revision-Date: 2023-06-20 10:07+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -24,11 +26,12 @@ 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}) should be before or be the same as Default"
-" End Date ({end_date}) for sale order '{name}'."
+"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
@@ -40,16 +43,18 @@ msgstr ""
#: 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/move lines that have this product."
+"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'."
@@ -62,15 +67,16 @@ 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"
+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}', the number of days is "
-"negative ({number_of_days}) ; this is not allowed. The number of days has "
+"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 ""
@@ -90,14 +96,16 @@ 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}) should be before or be the same as End Date "
-"({end_date}) for sale order line with Product '{product_name}'."
+"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"
diff --git a/sale_start_end_dates/models/sale_order.py b/sale_start_end_dates/models/sale_order.py
index 2803b37231e..0acd7cdacd6 100644
--- a/sale_start_end_dates/models/sale_order.py
+++ b/sale_start_end_dates/models/sale_order.py
@@ -13,8 +13,12 @@
class SaleOrder(models.Model):
_inherit = "sale.order"
- default_start_date = fields.Date()
- default_end_date = fields.Date()
+ 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):
@@ -26,43 +30,48 @@ def _check_default_start_end_dates(self):
):
raise ValidationError(
_(
- "Default Start Date ({start_date}) should be before or be the "
- "same as Default End Date ({end_date}) for sale order '{name}'."
- ).format(
- start_date=format_date(self.env, order.default_start_date),
- end_date=format_date(self.env, order.default_end_date),
- name=order.display_name,
+ "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.onchange("default_start_date")
- def default_start_date_change(self):
- if (
- self.default_start_date
- and self.default_end_date
- and self.default_start_date > self.default_end_date
- ):
- self.default_end_date = self.default_start_date
-
- @api.onchange("default_end_date")
- def default_end_date_change(self):
- if (
- self.default_start_date
- and self.default_end_date
- and self.default_start_date > self.default_end_date
- ):
- self.default_start_date = self.default_end_date
+ @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(
- readonly=True,
+ compute="_compute_start_date",
+ store=True,
states={"draft": [("readonly", False)], "sent": [("readonly", False)]},
)
end_date = fields.Date(
- readonly=True,
+ compute="_compute_end_date",
+ store=True,
states={"draft": [("readonly", False)], "sent": [("readonly", False)]},
)
number_of_days = fields.Integer(
@@ -70,6 +79,7 @@ class SaleOrderLine(models.Model):
inverse="_inverse_number_of_days",
readonly=False,
store=True,
+ string="Number of Days",
)
must_have_dates = fields.Boolean(related="product_id.must_have_dates")
@@ -88,13 +98,13 @@ def _inverse_number_of_days(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}', the "
- "number of days is negative ({number_of_days}) ; this is not "
+ "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."
- ).format(
- product_name=line.product_id.display_name,
- number_of_days=line.number_of_days,
- )
+ ) % {
+ "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(
@@ -126,14 +136,15 @@ def _check_start_end_dates(self):
if line.start_date > line.end_date:
raise ValidationError(
_(
- "Start Date ({start_date}) should be before or "
- "be the same as End Date ({end_date}) for sale order line "
- "with Product '{product_name}'."
- ).format(
- 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,
+ "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):
@@ -143,25 +154,32 @@ def _prepare_invoice_line(self, **optional_values):
res.update({"start_date": self.start_date, "end_date": self.end_date})
return res
- @api.onchange("end_date")
- def end_date_change(self):
- if self.end_date:
- if self.start_date and self.start_date > self.end_date:
- self.start_date = self.end_date
-
- @api.onchange("start_date")
- def start_date_change(self):
- if self.start_date:
- if self.end_date and self.start_date > self.end_date:
- self.end_date = self.start_date
-
- @api.onchange("product_id")
- def start_end_dates_product_id_change(self):
- if self.product_id.must_have_dates:
- if self.order_id.default_start_date:
- self.start_date = self.order_id.default_start_date
- if self.order_id.default_end_date:
- self.end_date = self.order_id.default_end_date
- else:
- self.start_date = False
- self.end_date = False
+ @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 > self.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 > self.end_date:
+ line.end_date = line.start_date
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
index fec6a520fb6..7e929ee0079 100644
--- a/sale_start_end_dates/tests/test_sale_start_end_dates.py
+++ b/sale_start_end_dates/tests/test_sale_start_end_dates.py
@@ -11,8 +11,12 @@ class TestSaleStartEndDates(TransactionCase):
def setUp(self):
super().setUp()
self.partner = self.env.ref("base.res_partner_3")
- self.product_id = self.env.ref("product.product_product_7")
- self.product_id.must_have_dates = True
+ self.product_id = self.env.ref(
+ "account_invoice_start_end_dates.product_insurance_contract_demo"
+ )
+ self.assertTrue(self.product_id.must_have_dates)
+ self.product_no_dates = self.env.ref("product.product_product_7")
+ self.assertFalse(self.product_no_dates.must_have_dates)
self.default_start_date = datetime.datetime.now()
self.default_end_date = self.default_start_date + datetime.timedelta(days=9)
self.so = self.env["sale.order"].create(
@@ -23,26 +27,23 @@ def setUp(self):
"default_start_date": self.default_start_date,
"default_end_date": self.default_end_date,
"pricelist_id": self.env.ref("product.list0").id,
- "order_line": [
- (
- 0,
- 0,
- {
- "name": self.product_id.name,
- "product_id": self.product_id.id,
- "product_uom_qty": 2,
- "product_uom": self.product_id.uom_id.id,
- "price_unit": self.product_id.list_price,
- "start_date": self.default_start_date,
- "end_date": self.default_end_date,
- },
- )
- ],
+ }
+ )
+ self.order_line = self.env["sale.order.line"].create(
+ {
+ "order_id": self.so.id,
+ "name": self.product_id.display_name,
+ "product_id": self.product_id.id,
+ "product_uom_qty": 2,
+ "product_uom": self.product_id.uom_id.id,
+ "price_unit": self.product_id.list_price,
+ "start_date": self.default_start_date,
+ "end_date": self.default_end_date,
}
)
self.so.action_confirm()
- def test_default_start_date_change(self):
+ def test_default_start_end_date_constraint(self):
with self.assertRaises(ValidationError):
self.so.write(
{
@@ -50,77 +51,44 @@ def test_default_start_date_change(self):
"default_end_date": self.default_start_date,
}
)
- self.so.default_start_date_change()
- def test_default_end_date_change(self):
- with self.assertRaises(ValidationError):
- self.so.write(
- {
- "default_start_date": self.default_end_date,
- "default_end_date": self.default_start_date,
- }
- )
- self.so.default_end_date_change()
-
- def test_start_end_dates_product_id_change(self):
- if self.so.default_end_date and self.so.default_end_date:
- self.so.order_line.start_end_dates_product_id_change()
- self.so.order_line.start_date_change()
- self.so.order_line.end_date_change()
- self.product_id.must_have_dates = False
- self.so.order_line.start_end_dates_product_id_change()
-
- def test_start_end_dates_product_id(self):
- self.product_id.must_have_dates = False
- self.so.default_start_date = self.so.default_end_date = False
- self.so.order_line.start_end_dates_product_id_change()
-
- def test_end_date_change(self):
- self.product_id.must_have_dates = False
- self.so.order_line.write(
- {"start_date": self.default_end_date, "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.so.order_line.end_date_change()
+ self.assertEqual(new_line.start_date, self.so.default_start_date)
+ self.assertEqual(new_line.end_date, self.so.default_end_date)
- def test_start_date_change(self):
- self.product_id.must_have_dates = False
- self.so.order_line.write(
- {"start_date": self.default_end_date, "end_date": self.default_start_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.so.order_line.start_date_change()
-
- def test_constrains_end_dates(self):
- with self.assertRaises(ValidationError):
- self.so.order_line.end_date = False
-
- def test_constrains_start_date(self):
- with self.assertRaises(ValidationError):
- self.so.order_line.start_date = False
-
- def test_constrains_greater_st_date(self):
- with self.assertRaises(ValidationError):
- self.so.order_line.write(
- {
- "start_date": self.default_end_date,
- "end_date": self.default_start_date,
- }
- )
+ self.assertFalse(new_line.start_date)
+ self.assertFalse(new_line.end_date)
def test_compute_number_of_days(self):
- self.assertEqual(self.so.order_line[0].number_of_days, 10)
+ self.assertEqual(self.order_line.number_of_days, 10)
def test_inverse_number_of_days(self):
- self.so.order_line[0].number_of_days = 1
- self.assertEqual(
- self.so.order_line[0].start_date, self.so.order_line[0].end_date
- )
- self.so.order_line[0].number_of_days = -1
- self.assertEqual(self.so.order_line[0].number_of_days, 1)
+ 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.so.order_line._prepare_invoice_line()
+ 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.so.order_line[0].start_date
- )
- self.assertEqual(invoice_line_vals["end_date"], self.so.order_line[0].end_date)
+ self.assertEqual(invoice_line_vals["start_date"], self.order_line.start_date)
+ self.assertEqual(invoice_line_vals["end_date"], self.order_line.end_date)
From 00da877b29ce88c1a21b5fd4632fe1cdb5340009 Mon Sep 17 00:00:00 2001
From: "Georg A. G. Notter"
Date: Mon, 7 Aug 2023 16:22:41 +0200
Subject: [PATCH 34/34] Fix Singleton Exception (#29)
---
sale_start_end_dates/models/sale_order.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sale_start_end_dates/models/sale_order.py b/sale_start_end_dates/models/sale_order.py
index 0acd7cdacd6..172e412d81d 100644
--- a/sale_start_end_dates/models/sale_order.py
+++ b/sale_start_end_dates/models/sale_order.py
@@ -166,7 +166,7 @@ def _compute_start_date(self):
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 > self.end_date:
+ 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")
@@ -181,5 +181,5 @@ def _compute_end_date(self):
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 > self.end_date:
+ elif line.end_date and line.start_date and line.start_date > line.end_date:
line.end_date = line.start_date