mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] Wizard avail call center
This commit is contained in:
@@ -362,8 +362,8 @@ class HotelRoomTypeWizards(models.TransientModel):
|
|||||||
if date_min_days > min_stay:
|
if date_min_days > min_stay:
|
||||||
min_stay = date_min_days
|
min_stay = date_min_days
|
||||||
if user.has_group('hotel.group_hotel_call'):
|
if user.has_group('hotel.group_hotel_call'):
|
||||||
|
max_avail = real_max
|
||||||
if avail_restrictions:
|
if avail_restrictions:
|
||||||
max_avail = real_max
|
|
||||||
restriction = avail_restrictions.filtered(
|
restriction = avail_restrictions.filtered(
|
||||||
lambda r: r.date == ndate_str)
|
lambda r: r.date == ndate_str)
|
||||||
if restriction:
|
if restriction:
|
||||||
|
|||||||
Reference in New Issue
Block a user