mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pos_pms_link:
- Adds checkin and checkout to reservation list. - Improves reservation form format. - Shows reservation name on order receipt
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="OrderReceipt" t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension" owl="1">
|
||||
<xpath expr="//div[hasclass('before-footer')]" position="before">
|
||||
<t t-if="paid_on_reservation">
|
||||
<br/><br/>
|
||||
<div>
|
||||
Signature: <br/><br/>
|
||||
<span t-esc="reservation_name" style="font-size: 100%;"/><br/>
|
||||
-------------------
|
||||
</div>
|
||||
</t>
|
||||
</xpath>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
@@ -5,13 +5,17 @@
|
||||
<section class="client-details edit">
|
||||
<h3 class="detail client-name" t-esc="props.reservation.name"/>
|
||||
<div class="client-details-box clearfix">
|
||||
<div class="client-details-left">
|
||||
<span class="detail client-partner-name" t-esc="props.reservation.partner_name"/><br/>
|
||||
<span class="detail client-aduls" t-esc="props.reservation.adults"/><br/>
|
||||
<span class="detail client-children" t-esc="props.reservation.children"/><br/>
|
||||
<div class="client-details-row">
|
||||
Name: <span class="detail client-partner-name" t-esc="props.reservation.partner_name"/><br/>
|
||||
Checkin: <span class="detail client-aduls" t-esc="props.reservation.checkin"/><br/>
|
||||
Checkout: <span class="detail client-aduls" t-esc="props.reservation.checkout"/><br/>
|
||||
Adults: <span class="detail client-aduls" t-esc="props.reservation.adults"/><br/>
|
||||
Children: <span class="detail client-children" t-esc="props.reservation.children"/><br/>
|
||||
Internal comment: <span class="detail client-aduls" t-esc="props.reservation.folio_internal_comment"/><br/>
|
||||
</div>
|
||||
<div class="client-details-right">
|
||||
<table>
|
||||
<h3 class="detail client-name">Services:</h3>
|
||||
<div class="client-details-row">
|
||||
<table class="content-row">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Service</th>
|
||||
@@ -19,8 +23,8 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<t t-foreach="props.reservation.service_ids" t-as="service" t-key="service.id">
|
||||
<t t-foreach="props.reservation.service_ids" t-as="service" t-key="service.id">
|
||||
<tr>
|
||||
<td t-esc="service_value['name']"/>
|
||||
<td>
|
||||
<ul>
|
||||
@@ -31,8 +35,8 @@
|
||||
</t>
|
||||
</ul>
|
||||
</td>
|
||||
</t>
|
||||
</tr>
|
||||
</tr>
|
||||
</t>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -13,6 +13,12 @@
|
||||
<td>
|
||||
<t t-esc="props.reservation.partner_name" />
|
||||
</td>
|
||||
<td>
|
||||
<t t-esc="props.reservation.checkin" />
|
||||
</td>
|
||||
<td>
|
||||
<t t-esc="props.reservation.checkout" />
|
||||
</td>
|
||||
<td>
|
||||
<t t-esc="props.reservation.adults" />
|
||||
</td>
|
||||
|
||||
@@ -43,6 +43,8 @@
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Partner name</th>
|
||||
<th>Checkin</th>
|
||||
<th>Checkout</th>
|
||||
<th>Adults</th>
|
||||
<th>Children</th>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user