forked from Yaltik/golem
[IMP]GOLEM season : improve with name constraint
This commit is contained in:
parent
d456b1dd5c
commit
19a71d3107
@ -6,8 +6,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 8.0\n"
|
"Project-Id-Version: Odoo Server 8.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2016-07-11 17:19+0000\n"
|
"POT-Creation-Date: 2016-07-13 15:46+0000\n"
|
||||||
"PO-Revision-Date: 2016-07-11 17:19+0000\n"
|
"PO-Revision-Date: 2016-07-13 15:46+0000\n"
|
||||||
"Last-Translator: <>\n"
|
"Last-Translator: <>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@ -58,7 +58,7 @@ msgid "Display Name"
|
|||||||
msgstr "Nom affiché"
|
msgstr "Nom affiché"
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:49
|
#: code:addons/golem_season/models/golem_season.py:51
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "End of the period is in range of an existing period."
|
msgid "End of the period is in range of an existing period."
|
||||||
msgstr "La fin de la période est en conflit avec une période existante."
|
msgstr "La fin de la période est en conflit avec une période existante."
|
||||||
@ -120,19 +120,26 @@ msgid "Season name"
|
|||||||
msgstr "Nom de la saison"
|
msgstr "Nom de la saison"
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:39
|
#: code:addons/golem_season/models/golem_season.py:41
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Start of the period cannot be after end of the period."
|
msgid "Start of the period cannot be after end of the period."
|
||||||
msgstr "Le début de la période ne peut être postérieur à sa fin."
|
msgstr "Le début de la période ne peut être postérieur à sa fin."
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:45
|
#: code:addons/golem_season/models/golem_season.py:47
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Start of the period is in range of an existing period."
|
msgid "Start of the period is in range of an existing period."
|
||||||
msgstr "Le début de la période est en conflit avec une période existante."
|
msgstr "Le début de la période est en conflit avec une période existante."
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:75
|
#: code:addons/golem_season/models/golem_season.py:27
|
||||||
|
#: sql_constraint:golem.season:0
|
||||||
|
#, python-format
|
||||||
|
msgid "This season name has already been used."
|
||||||
|
msgstr "Ce nom pour la saison a déjà été utilisé. Merci d'en choisir un autre."
|
||||||
|
|
||||||
|
#. module: golem_season
|
||||||
|
#: code:addons/golem_season/models/golem_season.py:89
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "You can't delete the default season"
|
msgid "You can't delete the default season"
|
||||||
msgstr "Vous ne pouvez pas supprimer la saison par défaut"
|
msgstr "Vous ne pouvez pas supprimer la saison par défaut"
|
||||||
|
@ -6,8 +6,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 8.0\n"
|
"Project-Id-Version: Odoo Server 8.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2016-07-11 17:19+0000\n"
|
"POT-Creation-Date: 2016-07-13 15:46+0000\n"
|
||||||
"PO-Revision-Date: 2016-07-11 17:19+0000\n"
|
"PO-Revision-Date: 2016-07-13 15:46+0000\n"
|
||||||
"Last-Translator: <>\n"
|
"Last-Translator: <>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@ -31,7 +31,7 @@ msgid "Created on"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:53
|
#: code:addons/golem_season/models/golem_season.py:55
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Current period cannot be included into another existing period."
|
msgid "Current period cannot be included into another existing period."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -57,7 +57,7 @@ msgid "Display Name"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:49
|
#: code:addons/golem_season/models/golem_season.py:51
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "End of the period is in range of an existing period."
|
msgid "End of the period is in range of an existing period."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -119,19 +119,26 @@ msgid "Season name"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:39
|
#: code:addons/golem_season/models/golem_season.py:41
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Start of the period cannot be after end of the period."
|
msgid "Start of the period cannot be after end of the period."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:45
|
#: code:addons/golem_season/models/golem_season.py:47
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Start of the period is in range of an existing period."
|
msgid "Start of the period is in range of an existing period."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_season
|
#. module: golem_season
|
||||||
#: code:addons/golem_season/models/golem_season.py:75
|
#: code:addons/golem_season/models/golem_season.py:27
|
||||||
|
#: sql_constraint:golem.season:0
|
||||||
|
#, python-format
|
||||||
|
msgid "This season name has already been used."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: golem_season
|
||||||
|
#: code:addons/golem_season/models/golem_season.py:89
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "You can't delete the default season"
|
msgid "You can't delete the default season"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -23,6 +23,8 @@ class GolemSeason(models.Model):
|
|||||||
_name = 'golem.season'
|
_name = 'golem.season'
|
||||||
_description = 'GOLEM Season'
|
_description = 'GOLEM Season'
|
||||||
_order = 'date_start desc'
|
_order = 'date_start desc'
|
||||||
|
_sql_constraints = [('golem_season_name_uniq', 'UNIQUE (name)',
|
||||||
|
_('This season name has already been used.'))]
|
||||||
|
|
||||||
name = fields.Char('Season name')
|
name = fields.Char('Season name')
|
||||||
member_counter = fields.Integer('Counter for member number generation',
|
member_counter = fields.Integer('Counter for member number generation',
|
||||||
|
Loading…
Reference in New Issue
Block a user