From 8762436554b70b9dc6dcf5e4307077ecb8919bf9 Mon Sep 17 00:00:00 2001 From: braisab Date: Fri, 11 Feb 2022 18:43:24 +0100 Subject: [PATCH] [REF]: changed object model from reservation to folio in default email templates --- ...s_cancelled_reservation_email_template.xml | 2 +- ...s_confirmed_reservation_email_template.xml | 19 ++++++++++------- ...ms_modified_reservation_email_template.xml | 21 +++++++++++-------- pms/views/pms_reservation_views.xml | 4 ++-- 4 files changed, 26 insertions(+), 20 deletions(-) diff --git a/pms/data/pms_cancelled_reservation_email_template.xml b/pms/data/pms_cancelled_reservation_email_template.xml index 31ab04cc0..32f1876ed 100644 --- a/pms/data/pms_cancelled_reservation_email_template.xml +++ b/pms/data/pms_cancelled_reservation_email_template.xml @@ -65,7 +65,7 @@
Hello ${object.partner_id.name or ''},
- Your reservation at ${object.pms_property_id.name} has been successfully canceled. + Your reservation at ${object.pms_property_id.name} has been cancelled.
diff --git a/pms/data/pms_confirmed_reservation_email_template.xml b/pms/data/pms_confirmed_reservation_email_template.xml index b4de65eac..35e8273a8 100644 --- a/pms/data/pms_confirmed_reservation_email_template.xml +++ b/pms/data/pms_confirmed_reservation_email_template.xml @@ -3,7 +3,7 @@ Confirmed Reservation - + ${object.company_id.name} has confirmed your reservation in ${object.pms_property_id.name} @@ -116,11 +116,9 @@ style="margin: 16px 0px 16px 0px; font-size: 14px;" >
From ${object.checkin} At ${object.arrival_hour}
+ >From ${object.first_checkin}
To ${object.checkout} At ${object.departure_hour}
+ >To ${object.last_checkout}

Room: ${object.room_type_id.name}
+ >Rooms:
+ % for reservation in object.reservation_ids: + ${reservation.room_type_id.name}
+ % endfor @@ -158,7 +161,7 @@ >
Price: ${object.price_room_services_set} ${object.pms_property_id.country_id.currency_id.symbol}
+ >Price: ${object.amount_total} ${object.pms_property_id.country_id.currency_id.symbol} @@ -205,7 +208,7 @@ diff --git a/pms/data/pms_modified_reservation_email_template.xml b/pms/data/pms_modified_reservation_email_template.xml index 9ca3a0942..6fb107c67 100644 --- a/pms/data/pms_modified_reservation_email_template.xml +++ b/pms/data/pms_modified_reservation_email_template.xml @@ -3,7 +3,7 @@ Modified Reservation - + Your reservation in ${object.pms_property_id.name} has been modified @@ -106,7 +106,7 @@ > - + @@ -158,8 +161,8 @@ style="margin: 16px 0px 16px 0px; font-size: 14px;" >
-
Price: ${object.price_total} ${object.pms_property_id.country_id.currency_id.symbol}
+
Price: ${object.amount_total} ${object.pms_property_id.country_id.currency_id.symbol}
From ${object.checkin} At ${object.arrival_hour}
+ >From ${object.first_checkin}
To ${object.checkout} At ${object.departure_hour}
+ >To ${object.last_checkout}

Room: ${object.room_type_id.name}
+ >Rooms:
+ % for reservation in object.reservation_ids: + ${reservation.room_type_id.name}
+ % endfor
diff --git a/pms/views/pms_reservation_views.xml b/pms/views/pms_reservation_views.xml index 9cf82c060..581403495 100644 --- a/pms/views/pms_reservation_views.xml +++ b/pms/views/pms_reservation_views.xml @@ -1118,7 +1118,7 @@ mail.compose.message form new - + form mail.compose.message form new - + form