summaryrefslogtreecommitdiff
path: root/addons/resource/i18n
diff options
context:
space:
mode:
authorJorge Pinna Puissant <jpp@odoo.com>2020-04-29 12:59:40 +0000
committerJorge Pinna Puissant <jpp@odoo.com>2020-04-30 13:53:17 +0000
commited5ab19065767156802fb2a148636ae0c6bbd017 (patch)
tree6939818c766a991a0f731c851fda9711156da367 /addons/resource/i18n
parent3e81b810aaaaa29c10c57e092fb037b92f5f6e75 (diff)
[FIX] resource: week_type for new periods
In a calendar with 2 weeks mode (odd and even), before this commit, all new created periods (placed in one of the two sections) don't have the week_type field set. This generates a confusion, because a period that should be applied only in odd weeks, for instance, it was applied also in the even weeks. Now, the new periods will have the week_type field set with the week_type of the section where is it. Also, an error message is raised if a period is not in one of the two sections. opw-2239966 closes odoo/odoo#50478 X-original-commit: 33a62118818952872321591e85403b657380128a Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
Diffstat (limited to 'addons/resource/i18n')
-rw-r--r--addons/resource/i18n/resource.pot7
1 files changed, 7 insertions, 0 deletions
diff --git a/addons/resource/i18n/resource.pot b/addons/resource/i18n/resource.pot
index c8b5cd48516..fe21327daab 100644
--- a/addons/resource/i18n/resource.pot
+++ b/addons/resource/i18n/resource.pot
@@ -243,6 +243,13 @@ msgid ""
msgstr ""
#. module: resource
+#: code:addons/resource/models/resource.py:0
+#, python-format
+msgid ""
+"In a calendar with 2 weeks mode, all periods need to be in the sections."
+msgstr ""
+
+#. module: resource
#: model_terms:ir.ui.view,arch_db:resource.view_resource_resource_search
msgid "Inactive"
msgstr ""