mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] improve error messages system
This commit is contained in:
@@ -383,8 +383,8 @@ class HotelReservation(models.Model):
|
|||||||
|
|
||||||
if not rooms:
|
if not rooms:
|
||||||
raise AccessError(
|
raise AccessError(
|
||||||
_("Wrong hotel and company access settings for this user. "
|
_("No rooms found for hotel %s. "
|
||||||
"No rooms found for hotel %s") % self.env.user.hotel_id.name)
|
"Please, review the rooms configured for this hotel.") % self.env.user.hotel_id.name)
|
||||||
|
|
||||||
json_res, json_res_tooltips = self.get_hcalendar_reservations_data(
|
json_res, json_res_tooltips = self.get_hcalendar_reservations_data(
|
||||||
dfrom_dt, dto_dt, rooms)
|
dfrom_dt, dto_dt, rooms)
|
||||||
|
|||||||
Reference in New Issue
Block a user