mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
Finalize Calendar & Connector integration (#69)
* [WIP] Refactor calendar_channel_connector * [FIX] Hotel Calendar + Hotel Connector * [ADD] Push URLs * [IMP] Connector * [IMP] Notifications * [ADD] hotel_channel_connector_wubook * [FIX] missing imports * [IMP] Clean code
This commit is contained in:
@@ -31,7 +31,7 @@ class HotelRoomTypeRestrictionItem(models.Model):
|
||||
'max_stay_arrival')
|
||||
def _check_min_stay(self):
|
||||
for record in self:
|
||||
if record.self.min_stay < 0:
|
||||
if record.min_stay < 0:
|
||||
raise ValidationError(_("Min. Stay can't be less than zero"))
|
||||
elif record.min_stay_arrival < 0:
|
||||
raise ValidationError(
|
||||
@@ -40,5 +40,4 @@ class HotelRoomTypeRestrictionItem(models.Model):
|
||||
raise ValidationError(_("Max. Stay can't be less than zero"))
|
||||
elif record.max_stay_arrival < 0:
|
||||
raise ValidationError(
|
||||
("Max. Stay Arrival can't be less than zero"))
|
||||
|
||||
_("Max. Stay Arrival can't be less than zero"))
|
||||
|
||||
Reference in New Issue
Block a user