diff --git a/golem_ressources/__manifest__.py b/golem_ressources/__manifest__.py
index 0ba9576..f42d1e1 100644
--- a/golem_ressources/__manifest__.py
+++ b/golem_ressources/__manifest__.py
@@ -24,8 +24,8 @@
'license': 'AGPL-3',
'application': True,
'installable': True,
- 'depends': ['golem_base', 'golem_activity', 'golem_season',
- 'odoo_partner_merge'],
+ 'depends': ['product',
+ ],
'data': ['views/golem_resources_views.xml',
'views/golem_reservation_views.xml',
'security/ir.model.access.csv',
diff --git a/golem_ressources/models/golem_resources.py b/golem_ressources/models/golem_resources.py
index e257049..e653e03 100644
--- a/golem_ressources/models/golem_resources.py
+++ b/golem_ressources/models/golem_resources.py
@@ -97,3 +97,9 @@ class GolemTimetable(models.Model):
name = fields.Many2one("golem.weekday", required=True)
start_time = fields.Float(required=True)
end_time = fields.Float(required=True)
+
+ @api.constraint('start_time','end_time')
+ def _check_time_consistency(self):
+ for r in self:
+ if r.end_time < r.start_time:
+ raise ValidationError("End time should be higher than start time")
diff --git a/golem_ressources/views/golem_resources_views.xml b/golem_ressources/views/golem_resources_views.xml
index a3b6614..d207476 100644
--- a/golem_ressources/views/golem_resources_views.xml
+++ b/golem_ressources/views/golem_resources_views.xml
@@ -78,13 +78,13 @@ along with this program. If not, see .
golem.resources