mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms-api-rest: fix service reservation lines (prev. loading cancel res. lines)
This commit is contained in:
committed by
Darío Lodeiros
parent
5ca8bd125a
commit
276470017c
@@ -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(
|
||||
|
||||
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user