[TMP] Text msg check_period
This commit is contained in:
parent
52ef7282d6
commit
f314c3a76f
@ -113,12 +113,12 @@ class GolemActivity(models.Model):
|
|||||||
raise models.ValidationError(_('Start of the period cannot be '
|
raise models.ValidationError(_('Start of the period cannot be '
|
||||||
'after end of the period.'))
|
'after end of the period.'))
|
||||||
if activity.season_id.date_start > activity.date_start:
|
if activity.season_id.date_start > activity.date_start:
|
||||||
msg = _(u'The start date of the activity is not in range of an '
|
msg = _(u'Activity start date can not be set before '
|
||||||
'existing period.')
|
'linked season start.')
|
||||||
raise models.ValidationError(msg)
|
raise models.ValidationError(msg)
|
||||||
if activity.season_id.date_end < activity.date_stop:
|
if activity.season_id.date_end < activity.date_stop:
|
||||||
msg = _(u'The end date of the activity is not in range of an '
|
msg = _(u'Activity end date can not be set after '
|
||||||
'existing period.')
|
'linked season start.')
|
||||||
raise models.ValidationError(msg)
|
raise models.ValidationError(msg)
|
||||||
|
|
||||||
@api.onchange('season_id')
|
@api.onchange('season_id')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user