mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[REF]: changed object model from reservation to folio in default email templates
This commit is contained in:
@@ -65,7 +65,7 @@
|
|||||||
<div>
|
<div>
|
||||||
Hello ${object.partner_id.name or ''},<br
|
Hello ${object.partner_id.name or ''},<br
|
||||||
/>
|
/>
|
||||||
Your reservation at ${object.pms_property_id.name} has been successfully canceled.
|
Your reservation at ${object.pms_property_id.name} has been cancelled.
|
||||||
</div>
|
</div>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<data>
|
<data>
|
||||||
<record id="confirmed_reservation_email" model="mail.template">
|
<record id="confirmed_reservation_email" model="mail.template">
|
||||||
<field name="name">Confirmed Reservation</field>
|
<field name="name">Confirmed Reservation</field>
|
||||||
<field name="model_id" ref="pms.model_pms_reservation" />
|
<field name="model_id" ref="pms.model_pms_folio" />
|
||||||
<field
|
<field
|
||||||
name="subject"
|
name="subject"
|
||||||
>${object.company_id.name} has confirmed your reservation in ${object.pms_property_id.name}</field>
|
>${object.company_id.name} has confirmed your reservation in ${object.pms_property_id.name}</field>
|
||||||
@@ -116,11 +116,9 @@
|
|||||||
style="margin: 16px 0px 16px 0px; font-size: 14px;"
|
style="margin: 16px 0px 16px 0px; font-size: 14px;"
|
||||||
>
|
>
|
||||||
<div><strong
|
<div><strong
|
||||||
>From</strong> ${object.checkin} <strong
|
>From</strong> ${object.first_checkin}</div>
|
||||||
>At</strong> ${object.arrival_hour}</div>
|
|
||||||
<div><strong
|
<div><strong
|
||||||
>To</strong> ${object.checkout} <strong
|
>To</strong> ${object.last_checkout}</div>
|
||||||
>At</strong> ${object.departure_hour}</div>
|
|
||||||
<div
|
<div
|
||||||
style="font-size:12px;color:#9e9e9e"
|
style="font-size:12px;color:#9e9e9e"
|
||||||
><i><strong
|
><i><strong
|
||||||
@@ -140,7 +138,12 @@
|
|||||||
<td style="vertical-align:top;">
|
<td style="vertical-align:top;">
|
||||||
<br />
|
<br />
|
||||||
<div><strong
|
<div><strong
|
||||||
>Room: </strong> ${object.room_type_id.name}</div>
|
>Rooms: </strong></div><div
|
||||||
|
>
|
||||||
|
% for reservation in object.reservation_ids:
|
||||||
|
${reservation.room_type_id.name}<br
|
||||||
|
/></div>
|
||||||
|
% endfor
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -158,7 +161,7 @@
|
|||||||
>
|
>
|
||||||
<br />
|
<br />
|
||||||
<div><strong
|
<div><strong
|
||||||
>Price: </strong> ${object.price_room_services_set} ${object.pms_property_id.country_id.currency_id.symbol}</div>
|
>Price: </strong> ${object.amount_total} ${object.pms_property_id.country_id.currency_id.symbol}</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -205,7 +208,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<a
|
<a
|
||||||
href="/my/folios/${object.folio_id.id}/precheckin?access_token=${object.folio_id.access_token}"
|
href="/my/folios/${object.id}/precheckin?access_token=${object.access_token}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
style="text-decoration: none; color: #FFFFFF; font-size: 2em; padding: 10px 20px 10px 20px;"
|
style="text-decoration: none; color: #FFFFFF; font-size: 2em; padding: 10px 20px 10px 20px;"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<data>
|
<data>
|
||||||
<record id="modified_reservation_email" model="mail.template">
|
<record id="modified_reservation_email" model="mail.template">
|
||||||
<field name="name">Modified Reservation</field>
|
<field name="name">Modified Reservation</field>
|
||||||
<field name="model_id" ref="pms.model_pms_reservation" />
|
<field name="model_id" ref="pms.model_pms_folio" />
|
||||||
<field
|
<field
|
||||||
name="subject"
|
name="subject"
|
||||||
>Your reservation in ${object.pms_property_id.name} has been modified</field>
|
>Your reservation in ${object.pms_property_id.name} has been modified</field>
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
>
|
>
|
||||||
<tr><td valign="top" style="font-size: 14px;">
|
<tr><td valign="top" style="font-size: 14px;">
|
||||||
<table style="width:50%;">
|
<table style="width:50%;">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<div
|
<div
|
||||||
class="far fa-calendar-alt fa-2x"
|
class="far fa-calendar-alt fa-2x"
|
||||||
@@ -117,11 +117,9 @@
|
|||||||
style="margin: 16px 0px 16px 0px; font-size: 14px;"
|
style="margin: 16px 0px 16px 0px; font-size: 14px;"
|
||||||
>
|
>
|
||||||
<div><strong
|
<div><strong
|
||||||
>From</strong> ${object.checkin} <strong
|
>From</strong> ${object.first_checkin}</div>
|
||||||
>At</strong> ${object.arrival_hour}</div>
|
|
||||||
<div><strong
|
<div><strong
|
||||||
>To</strong> ${object.checkout} <strong
|
>To</strong> ${object.last_checkout}</div>
|
||||||
>At</strong> ${object.departure_hour}</div>
|
|
||||||
<div
|
<div
|
||||||
style="font-size:12px;color:#9e9e9e"
|
style="font-size:12px;color:#9e9e9e"
|
||||||
><i><strong
|
><i><strong
|
||||||
@@ -141,7 +139,12 @@
|
|||||||
<td style="vertical-align:top;">
|
<td style="vertical-align:top;">
|
||||||
<br />
|
<br />
|
||||||
<div><strong
|
<div><strong
|
||||||
>Room: </strong> ${object.room_type_id.name}</div>
|
>Rooms: </strong></div><div
|
||||||
|
>
|
||||||
|
% for reservation in object.reservation_ids:
|
||||||
|
${reservation.room_type_id.name}<br
|
||||||
|
/></div>
|
||||||
|
% endfor
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -158,8 +161,8 @@
|
|||||||
style="margin: 16px 0px 16px 0px; font-size: 14px;"
|
style="margin: 16px 0px 16px 0px; font-size: 14px;"
|
||||||
>
|
>
|
||||||
<br />
|
<br />
|
||||||
<div><strong
|
<div><strong
|
||||||
>Price: </strong> ${object.price_total} ${object.pms_property_id.country_id.currency_id.symbol}</div>
|
>Price: </strong> ${object.amount_total} ${object.pms_property_id.country_id.currency_id.symbol}</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -1118,7 +1118,7 @@
|
|||||||
<field name="res_model">mail.compose.message</field>
|
<field name="res_model">mail.compose.message</field>
|
||||||
<field name="view_mode">form</field>
|
<field name="view_mode">form</field>
|
||||||
<field name="target">new</field>
|
<field name="target">new</field>
|
||||||
<field name="binding_model_id" ref="pms.model_pms_reservation" />
|
<field name="binding_model_id" ref="pms.model_pms_folio" />
|
||||||
<field name="binding_view_types">form</field>
|
<field name="binding_view_types">form</field>
|
||||||
<field
|
<field
|
||||||
name="context"
|
name="context"
|
||||||
@@ -1132,7 +1132,7 @@
|
|||||||
<field name="res_model">mail.compose.message</field>
|
<field name="res_model">mail.compose.message</field>
|
||||||
<field name="view_mode">form</field>
|
<field name="view_mode">form</field>
|
||||||
<field name="target">new</field>
|
<field name="target">new</field>
|
||||||
<field name="binding_model_id" ref="pms.model_pms_reservation" />
|
<field name="binding_model_id" ref="pms.model_pms_folio" />
|
||||||
<field name="binding_view_types">form</field>
|
<field name="binding_view_types">form</field>
|
||||||
<field
|
<field
|
||||||
name="context"
|
name="context"
|
||||||
|
|||||||
Reference in New Issue
Block a user