Browse Source

[FIX] list

14.0
Rémi FRANÇOIS 4 years ago
parent
commit
34b7bd2d0a
  1. 6
      pos_restaurant_table_booking/models/restaurant_booking.py

6
pos_restaurant_table_booking/models/restaurant_booking.py

@ -55,9 +55,9 @@ class RestaurantBooking(models.Model):
string="Tables bookings", readonly=True) string="Tables bookings", readonly=True)
_sql_constraints = [ _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') @api.depends('time_start', 'duration')

Loading…
Cancel
Save