From 34b7bd2d0ad0474095612be92f656b0c5ae6d9d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20FRAN=C3=87OIS?= Date: Sat, 21 Nov 2020 14:15:07 +0100 Subject: [PATCH] [FIX] list --- pos_restaurant_table_booking/models/restaurant_booking.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pos_restaurant_table_booking/models/restaurant_booking.py b/pos_restaurant_table_booking/models/restaurant_booking.py index 4b4efa5..04ef2eb 100644 --- a/pos_restaurant_table_booking/models/restaurant_booking.py +++ b/pos_restaurant_table_booking/models/restaurant_booking.py @@ -55,9 +55,9 @@ class RestaurantBooking(models.Model): string="Tables bookings", readonly=True) _sql_constraints = [ - ('start_time_check', 'CHECK(time_start >= 0 AND time_start <= 24)', "The start time must be between 0 and 24.") - ('stop_time_check', 'CHECK(time_stop >= 0 AND time_stop <= 24)', "The stop time must be between 0 and 24.") - ('times_order_check', 'CHECK(time_start < time_stop)', "The start time must be lower than the stop time.") + ('start_time_check', 'CHECK(time_start >= 0 AND time_start <= 24)', "The start time must be between 0 and 24."), + ('stop_time_check', 'CHECK(time_stop >= 0 AND time_stop <= 24)', "The stop time must be between 0 and 24."), + ('times_order_check', 'CHECK(time_start < time_stop)', "The start time must be lower than the stop time."), ] @api.depends('time_start', 'duration')