forked from Yaltik/golem
Create registration slot when a slot is available
This commit is contained in:
parent
42cec4f0e1
commit
6916f60f3a
@ -36,7 +36,7 @@ class GolemActivityRegistrationSlot(models.Model):
|
|||||||
|
|
||||||
@api.constrains('hour_start', 'hour_stop')
|
@api.constrains('hour_start', 'hour_stop')
|
||||||
def check_slot_hours(self):
|
def check_slot_hours(self):
|
||||||
""" Check slot hours consistence """
|
""" Check slot hours consistency """
|
||||||
for slot in self:
|
for slot in self:
|
||||||
if slot.hour_start < slot.activity_id.hour_start or \
|
if slot.hour_start < slot.activity_id.hour_start or \
|
||||||
slot.hour_stop > slot.activity_id.hour_stop:
|
slot.hour_stop > slot.activity_id.hour_stop:
|
||||||
|
Loading…
Reference in New Issue
Block a user