[IMP]pms: new dummy state in checkin partner

This commit is contained in:
Darío Lodeiros
2022-06-29 11:36:25 +02:00
parent f9ef793fe7
commit 2c3412f65c
5 changed files with 62 additions and 20 deletions

View File

@@ -337,7 +337,7 @@ class PortalPrecheckin(CustomerPortal):
"checkin_pos": 0,
}
)
if checkin_partner.state != "draft":
if checkin_partner.state not in ["dummy", "draft"]:
return request.render("pms.portal_not_checkin", values)
return request.render("pms.portal_my_reservation_precheckin", values)
@@ -403,7 +403,7 @@ class PortalPrecheckin(CustomerPortal):
self._precheckin_get_page_view_values(checkin_partner_id.id, access_token)
)
values.update({"no_breadcrumbs": True})
if checkin_partner_id.state != "draft":
if checkin_partner_id.state not in ["dummy", "draft"]:
return request.render("pms.portal_not_checkin", values)
return request.render("pms.portal_my_precheckin_detail", values)