[FIX]pms: fixed previous button in precheckin stepper

This commit is contained in:
braisab
2022-01-31 21:14:17 +01:00
parent 86a4135b0b
commit 1d21c36af1
2 changed files with 20 additions and 9 deletions

View File

@@ -356,9 +356,9 @@ class PortalPrecheckin(CustomerPortal):
state_ids = request.env["res.country.state"].search([])
doc_type_ids = request.env["res.partner.id_category"].sudo().search([])
values = kw
if not kw.get("first") and kw.get("checkin_pos"):
if not kw.get("first") and kw.get("checkin_pos") and not kw.get("back"):
error, error_message = self.form_validate(kw, None)
if not kw.get("first") and not error:
if not kw.get("first") and not kw.get("back") and not error:
kw.update({"checkin_partner_id": checkin_partner_id})
request.env["pms.checkin.partner"]._save_data_from_portal(kw)
if error: