From bd169cb633d6c5bd6ec81eaf6073910b3c5683c1 Mon Sep 17 00:00:00 2001 From: Sara Lago Date: Tue, 19 Oct 2021 16:35:30 +0200 Subject: [PATCH] [IMP] pms: change location of precheckin link --- pms/controllers/pms_portal.py | 1 - ...s_confirmed_reservation_email_template.xml | 243 +++++++++--------- pms/views/folio_portal_templates.xml | 19 +- pms/views/precheckin_portal_templates.xml | 83 +++--- 4 files changed, 189 insertions(+), 157 deletions(-) diff --git a/pms/controllers/pms_portal.py b/pms/controllers/pms_portal.py index 8b7beb613..0ecf0e989 100644 --- a/pms/controllers/pms_portal.py +++ b/pms/controllers/pms_portal.py @@ -626,7 +626,6 @@ class PortalPrecheckin(CustomerPortal): csrf=False, ) def portal_precheckin_folio_send_invitation(self, **kw): - print(kw) if kw.get("folio_id"): folio = request.env["pms.folio"].browse(int(kw.get("folio_id"))) kw.update({"folio": folio}) diff --git a/pms/data/pms_confirmed_reservation_email_template.xml b/pms/data/pms_confirmed_reservation_email_template.xml index df54df5ab..b4de65eac 100644 --- a/pms/data/pms_confirmed_reservation_email_template.xml +++ b/pms/data/pms_confirmed_reservation_email_template.xml @@ -21,57 +21,57 @@ style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;" > + border="0" + cellpadding="0" + cellspacing="0" + width="590" + style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;" + > + rel="stylesheet" + href="https://use.fontawesome.com/releases/v5.8.1/css/all.css" + integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" + crossorigin="anonymous" + />
+ width="590" + border="0" + cellpadding="0" + cellspacing="0" + style="min-width: 590px; background-color: white; padding: 0px 0px 0px 0px; border-collapse:separate;" + >
% if object.pms_property_id.partner_id.street

${object.pms_property_id.partner_id.street}

+ >${object.pms_property_id.partner_id.street}

% endif % if object.pms_property_id.partner_id.street2

${object.pms_property_id.partner_id.street2}

+ >${object.pms_property_id.partner_id.street2}

% endif

${object.pms_property_id.partner_id.zip}

+ >${object.pms_property_id.partner_id.zip}

${object.pms_property_id.partner_id.city}

+ >${object.pms_property_id.partner_id.city}

${object.pms_property_id.partner_id.country_id.name}

+ >${object.pms_property_id.partner_id.country_id.name}


+ width="100%" + style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" + />
Hello ${object.partner_id.name or ''},
+ /> We are happy to confirm your reservation in ${object.pms_property_id.name}
@@ -89,76 +89,76 @@

+ width="100%" + style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" + />
Reservation Details
+ align="left" + style="margin: 16px 0px 16px 0px;" + >Reservation Details + width="590" + border="0" + cellpadding="0" + cellspacing="0" + style="min-width: 590px; background-color: white; padding: 0px 8px 0px 8px; border-collapse:separate;" + > -
+ class="far fa-calendar-alt fa-2x" + style="margin: 0px 16px 0px 0px;" + />
+ style="margin: 16px 0px 16px 0px; font-size: 14px;" + >
From ${object.checkin} At ${object.arrival_hour}
+ >From ${object.checkin} At ${object.arrival_hour}
To ${object.checkout} At ${object.departure_hour}
+ >To ${object.checkout} At ${object.departure_hour}
TZ ${object.pms_property_id.tz}
+ style="font-size:12px;color:#9e9e9e" + >TZ ${object.pms_property_id.tz}
+ style="margin: 16px 0px 16px 0px;" + >
+ class="fas fa-bed fa-2x" + style="margin: 0px 16px 0px 0px;" + />

Room: ${object.room_type_id.name}
+ >Room: ${object.room_type_id.name}
+ style="margin: 16px 0px 16px 0px;" + >
+ class="fas fa-coins fa-2x" + style="margin: 0px 16px 0px 0px;" + />
+ style="margin: 16px 0px 16px 0px; font-size: 14px;" + >
Price: ${object.price_room_services_set} ${object.pms_property_id.country_id.currency_id.symbol}
+ >Price: ${object.price_room_services_set} ${object.pms_property_id.country_id.currency_id.symbol}
@@ -168,51 +168,58 @@
% if object.pms_property_id.mail_information
+ width="100%" + style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" + />
Additional Information
+ align="left" + style="margin: 16px 0px 16px 0px;" + >Additional Information
${object.pms_property_id.mail_information|safe} % endif
+

+ width="100%" + style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" + /> Do your check-in now and save time.
Access our quick registration system. In a few steps you will be able to register your data in an agile, simple and secure way, avoiding queues at reception. + > quick registration system. In a few steps you will be able to register your data in an agile, simple and secure way, avoiding queues at reception. If you register your data in our system, your passage through reception will be much faster, being able to enjoy the comfort of your room right away. - + > your passage through reception will be much faster, being able to enjoy the comfort of your room right away. +
+ href="/my/folios/${object.folio_id.id}/precheckin?access_token=${object.folio_id.access_token}" + target="_blank" + style="text-decoration: none; color: #FFFFFF; font-size: 2em; padding: 10px 20px 10px 20px;" + >
Check-in + style="padding: 0.5em; background-color: #45C2B1; border-color: #45C2B1; border-width: 2px;border-style:solid; border-bottom-style: solid;border-left-style: solid;border-right-style: solid;border-top-style: solid;-webkit-border-radius: 10; -moz-border-radius: 10; border-radius: 10px;font-size: 12px;" + >Check-in
Hacer check-in
+ src="https://www.aldahotels.es/firma/email/llegada/check-in.png" + alt="Hacer check-in" + width="80px" + height="80px" + href="${object.url}" + />
@@ -221,31 +228,31 @@

+ width="100%" + style="background-color:rgb(204,204,204);border:medium none;clear:both;display:block;font-size:0px;min-height:1px;line-height:0; margin: 16px 0px 16px 0px;" + />
Questions about the reservation? + style="font-weight:300;margin:10px 0px" + >Questions about the reservation?
Please contact with us:
  • ${object.pms_property_id.name}
  • + >${object.pms_property_id.name} % if object.pms_property_id.partner_id.email
  • Mail: ${object.pms_property_id.partner_id.email}
  • + href="mailto:${object.pms_property_id.partner_id.email}" + style="text-decoration:none;color:#875A7B;" + >${object.pms_property_id.partner_id.email} % endif % if object.pms_property_id.partner_id.phone
  • Phone: ${object.pms_property_id.partner_id.phone}
  • + >Phone: ${object.pms_property_id.partner_id.phone} % endif % if object.pms_property_id.partner_id.mobile
  • Mobile: ${object.pms_property_id.partner_id.mobile}
  • + >Mobile: ${object.pms_property_id.partner_id.mobile} % endif
@@ -260,12 +267,12 @@
% if object.pms_property_id.privacy_policy + width="590" + border="0" + cellpadding="0" + cellspacing="0" + style="min-width: 590px; background-color: #F1F1F1; color: #454748; padding: 8px; border-collapse:separate;" + > @@ -275,18 +282,18 @@ + t-field="reservation.sudo().room_type_id.name" + /> Room @@ -633,10 +636,10 @@ for="gender" >Gender

+ id="genderId" + >

+ t-field="folio.pms_property_id.name" + /> @@ -878,21 +881,37 @@ t-att-value="id or (checkin_partner.id)" /> -
- - + -
-
+
+
-
+
Send Invitation - + t-att-class="' btn btn-secondary o_send_invitation_js mt-4 p-2'" + style="color:#fff; height:36px;" + > + Send Invitation
@@ -1172,10 +1196,10 @@ for="gender" >Gender

+ id="genderId" + >

${object.pms_property_id.privacy_policy|safe}
% if object.company_id + width="590" + border="0" + cellpadding="0" + cellspacing="0" + style="min-width: 590px; background-color: #F1F1F1; color: #454748; padding: 8px; border-collapse:separate;" + >
Sent by ${object.company_id.name} + target="_blank" + href="${object.company_id.website}" + style="color: #875A7B;" + >${object.company_id.name}
diff --git a/pms/views/folio_portal_templates.xml b/pms/views/folio_portal_templates.xml index 174393b3a..65129a4ef 100644 --- a/pms/views/folio_portal_templates.xml +++ b/pms/views/folio_portal_templates.xml @@ -63,10 +63,6 @@ > - Precheckin
-
  • +
  • Gender

    + t-esc="checkin_partner.gender" + />

  • PreCheckin for Room
    PreCheckin in