[IMP] Replace room_lines and service_lines by _ids

This commit is contained in:
Dario Lodeiros
2019-09-24 19:18:17 +02:00
parent ca6a0e669a
commit 22b7ec6626
21 changed files with 89 additions and 89 deletions

View File

@@ -331,7 +331,7 @@
</tr>
<tr>
<td class="subheading" style="color: #555555" align="justify">
<strong>Noches</strong>: ${len(object.room_lines[0].reservation_lines)}</td>
<strong>Noches</strong>: ${len(object.reservation_ids[0].reservation_lines)}</td>
</tr>
<tr>
<td class="paragraph" style="padding: 10px 0 0 0;" align="justify">

View File

@@ -205,8 +205,8 @@
</tr>
<tr>
<td align="justify" class="paragraph" style="padding: 10px 0 0 0;">Hola ${object.partner_id.firstname}<br />
Tu reserva en <b>${object.company_id.property_name}</b> queda confirmada. Te esperamos el día <b>${object.room_lines[0].checkin[8:10]} del ${object.room_lines[0].checkin[5:7]} de
${object.room_lines[0].checkin[0:4]}</b>. Si podemos ayudarte en cualquier tipo de gestión, no dudes en hacérnoslo saber.<br />
Tu reserva en <b>${object.company_id.property_name}</b> queda confirmada. Te esperamos el día <b>${object.reservation_ids[0].checkin[8:10]} del ${object.reservation_ids[0].checkin[5:7]} de
${object.reservation_ids[0].checkin[0:4]}</b>. Si podemos ayudarte en cualquier tipo de gestión, no dudes en hacérnoslo saber.<br />
</td>
</tr>
<tr>
@@ -524,7 +524,7 @@
<div>
<div class="h2" style="font-family: sans-serif; font-size: 18px; font-weight: bold; color: #45C2B1; padding: 0 0 0 0; text-transform: uppercase; letter-spacing: 0.5px;">Información de la
habitación</div>
% set room_type_ids = object.room_lines.filtered('to_send').mapped('room_type_id.id')
% set room_type_ids = object.reservation_ids.filtered('to_send').mapped('room_type_id.id')
% set room_types = user.env['hotel.room.type'].browse(room_type_ids)
% for room_type in room_types: