[FIX] pms-api-rest: fix service reservation lines (prev. loading cancel res. lines)

This commit is contained in:
miguelpadin
2022-04-13 14:11:47 +01:00
committed by Darío Lodeiros
parent 5ca8bd125a
commit 276470017c
2 changed files with 2 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ class PmsCalendarService(Component):
domain.append(("date", ">=", calendar_search_param.date_from))
domain.append(("date", "<=", calendar_search_param.date_to))
domain.append(("pms_property_id", "=", calendar_search_param.pms_property_id))
domain.append(("state", "!=", "cancel"))
result_lines = []
PmsCalendarInfo = self.env.datamodels["pms.calendar.info"]
for line in self.env["pms.reservation.line"].search(

View File

@@ -1,5 +1,4 @@
import time
from math import ceil
from jose import jwt
@@ -38,7 +37,7 @@ class PmsLoginService(Component):
)
# formula = ms_now + ms in 1 sec * secs in 1 min
minutes = 10
timestamp_expire_in_a_min = int(time.time()*1000.0) + 1000 * 60 * minutes
timestamp_expire_in_a_min = int(time.time() * 1000.0) + 1000 * 60 * minutes
if not user_record:
raise ValidationError(_("user or password not valid"))