mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms: error handling in precheckin portal
This commit is contained in:
committed by
Darío Lodeiros
parent
52e5e545bf
commit
91ca6d645a
@@ -378,12 +378,14 @@ class PortalPrecheckin(CustomerPortal):
|
||||
if error:
|
||||
checkin_pos = checkin_pos - 1
|
||||
values.update({"checkin_pos": checkin_pos})
|
||||
if checkin_pos == len(folio_id.checkin_partner_ids) or checkin_pos == -2:
|
||||
if checkin_pos == len(folio_id.checkin_partner_ids):
|
||||
values = {
|
||||
"folio": folio_id,
|
||||
"no_breadcrumbs": True,
|
||||
}
|
||||
return request.render("pms.portal_my_precheckin_end", values)
|
||||
if checkin_pos == -2:
|
||||
return request.render("pms.portal_my_precheckin_end", values)
|
||||
values.update(
|
||||
{
|
||||
"folio": folio_id,
|
||||
|
||||
Reference in New Issue
Block a user