diff --git a/pms/controllers/pms_portal.py b/pms/controllers/pms_portal.py index 0ecf0e989..8b7beb613 100644 --- a/pms/controllers/pms_portal.py +++ b/pms/controllers/pms_portal.py @@ -626,6 +626,7 @@ 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 aedc5d3fc..df54df5ab 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,123 +89,163 @@

+ 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}
% 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
+
+
+ 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. + 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. + + + + +
+ +
Check-in +
+
Hacer check-in
+
+
+

+ 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
@@ -220,12 +260,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;" + > @@ -235,18 +275,18 @@
${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/static/src/js/send_invitation_data.js b/pms/static/src/js/send_invitation_data.js index 5e5c01471..f6c9f886e 100644 --- a/pms/static/src/js/send_invitation_data.js +++ b/pms/static/src/js/send_invitation_data.js @@ -13,6 +13,7 @@ odoo.define("pms.SendInvitationData", function (require) { _onReminderToggleClick: function (ev) { ev.preventDefault(); var checkinPartnerId = $(ev.currentTarget) + .parent() .parent() .parent() .find("input[name=checkin_partner_id]") diff --git a/pms/views/precheckin_portal_templates.xml b/pms/views/precheckin_portal_templates.xml index 0c307d0fe..27b40ff90 100644 --- a/pms/views/precheckin_portal_templates.xml +++ b/pms/views/precheckin_portal_templates.xml @@ -17,9 +17,9 @@ /> -
-
-
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
- - - - - -
-
- - - - - -
-
+

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

-
+
-
+
+
+ + + + + +
+
+ + + + + +
+
+ +
-
- -