2018-04-12 18:25:57 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
Copyright 2018 Youssef El Ouahby <youssef@yaltik.com>
|
|
|
|
Copyright 2018 Fabien Bourgeois <fabien@yaltik.com>
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-->
|
2018-04-11 21:27:07 +02:00
|
|
|
<odoo>
|
2018-04-12 18:25:57 +02:00
|
|
|
<data>
|
|
|
|
<template id="golem_reservation_report">
|
|
|
|
<t t-call="report.html_container">
|
|
|
|
<t t-call="report.external_layout">
|
|
|
|
<div class="font">
|
|
|
|
<div class="page">
|
|
|
|
<br></br>
|
|
|
|
<table border="1" width="100%" cellpadding="0" bgcolor="#5F8CA3" >
|
|
|
|
<tbody>
|
|
|
|
<tr width="100%">
|
|
|
|
<td class="text-center" width="100%">
|
|
|
|
<center><b>Maison Phare toutes les reservations</b><br/>
|
|
|
|
<b>From Date: </b>
|
|
|
|
<span t-esc="from_date" />
|
|
|
|
<span t-raw="'%s' % date_start if date_start else ''" />
|
|
|
|
<b>To Date:</b>
|
|
|
|
<span t-raw="'%s' % date_stop if date_stop else ''" /></center>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<table border="1" width="100%" cellpadding="0" bgcolor="#ededed" style="padding: 20px; background-color: #ededed; border-collapse:separate;">
|
|
|
|
<tbody>
|
2018-04-13 19:18:59 +02:00
|
|
|
<!--<tr t-foreach="get_resource" t-as="r">-->
|
|
|
|
<tr t-foreach="get_resource" t-as="resource">
|
|
|
|
<td><span t-esc="resource"/></td>
|
|
|
|
<t t-foreach="get_data" t-as="data">
|
|
|
|
<t t-if="data['resource_name']==resource">
|
2018-04-16 17:10:22 +02:00
|
|
|
<td t-attf-style="background-color:{{data['bgcolor']}}!important;">
|
2018-04-13 19:18:59 +02:00
|
|
|
<b>Date :</b><span t-esc="data['day_start']"/><br/>
|
|
|
|
<b>On behalf of :</b><span t-esc="data['client']"/><br/>
|
2018-04-16 17:10:22 +02:00
|
|
|
<b>client_id :</b><span t-esc="data['bgcolor']"/><br/>
|
2018-04-13 19:18:59 +02:00
|
|
|
</td>
|
|
|
|
</t>
|
|
|
|
</t>
|
2018-04-12 18:25:57 +02:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
</data>
|
2018-04-11 21:27:07 +02:00
|
|
|
</odoo>
|