diff --git a/resource_booking/__manifest__.py b/resource_booking/__manifest__.py index 4924ebb1..bf49ba1b 100644 --- a/resource_booking/__manifest__.py +++ b/resource_booking/__manifest__.py @@ -25,6 +25,7 @@ "mail", "portal", "resource", + "web_calendar_slot_duration", ], "data": [ "data/mail.xml", diff --git a/resource_booking/models/resource_booking_type.py b/resource_booking/models/resource_booking_type.py index 8be41bc1..b026c4b1 100644 --- a/resource_booking/models/resource_booking_type.py +++ b/resource_booking/models/resource_booking_type.py @@ -138,7 +138,7 @@ def action_open_bookings(self): default_type_id=self.id, # Context used by web_calendar_slot_duration module calendar_slot_duration=FloatTimeParser.value_to_html( - self.duration, False + self.slot_duration, False ), ), "domain": [("type_id", "=", self.id)],