2018-05-07 18:51:47 +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/>.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<odoo>
|
|
|
|
|
|
|
|
<report id="golem_activity_report_pdf" model="golem.activity"
|
|
|
|
string="Activity Report [PDF]" report_type="qweb-pdf"
|
|
|
|
name="golem_activity.golem_activity_report_template"
|
|
|
|
file="golem_activity.golem_activity_report_template"
|
|
|
|
attachment="(object.name + '.pdf')" />
|
|
|
|
|
2018-05-08 02:31:05 +02:00
|
|
|
<report id="golem_activity_report_html" model="golem.activity"
|
|
|
|
string="Activity Report [HTML]" report_type="qweb-html"
|
|
|
|
name="golem_activity.golem_activity_report_template"
|
|
|
|
file="golem_activity.golem_activity_report_template"
|
|
|
|
attachment="(object.name + '.html')" />
|
2018-05-07 18:51:47 +02:00
|
|
|
|
2018-05-08 02:31:05 +02:00
|
|
|
<template id="golem_activity_report_template">
|
|
|
|
<t t-call="report.html_container">
|
2018-07-20 11:19:08 +02:00
|
|
|
<t t-set="season" t-value="docs.default_season()" />
|
2018-05-08 02:31:05 +02:00
|
|
|
<t t-foreach="docs" t-as="activity" id="foreach_activity">
|
|
|
|
<t t-call="report.external_layout">
|
|
|
|
<div id='page_report_activity' class="page">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12" id="activity_title">
|
|
|
|
<h2 class="golem_report_title">
|
|
|
|
Activity : <span t-field="activity.name" />
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-06-11 17:58:45 +02:00
|
|
|
<div class="col-xs-12" style="margin-top: 40px;" >
|
|
|
|
<div class="col-xs-4" id="activity_info_left">
|
|
|
|
<h4 style="font-weight: bold;">General Information</h4>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-4" id="activity_info_middle">
|
|
|
|
<h4 style="font-weight: bold;">Type</h4>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-4" id="activity_info_right">
|
|
|
|
<h4 style="font-weight: bold;">Session</h4>
|
|
|
|
</div>
|
2018-05-08 02:31:05 +02:00
|
|
|
</div>
|
2018-05-08 16:59:46 +02:00
|
|
|
<div id="activity_info" class="col-xs-12" >
|
2018-05-08 02:31:05 +02:00
|
|
|
<div class="col-xs-4" id="activity_info_left">
|
2018-06-11 17:58:45 +02:00
|
|
|
<div t-if="activity.season_id">
|
|
|
|
<strong>Season : </strong>>
|
|
|
|
<span t-field="activity.season_id"/>
|
|
|
|
</div>
|
|
|
|
<div t-if="activity.animator_id">
|
|
|
|
<strong>Animator : </strong>>
|
|
|
|
<span t-field="activity.animator_id"/>
|
|
|
|
</div>
|
|
|
|
<div t-if="activity.list_price">
|
|
|
|
<strong>Price : </strong>>
|
|
|
|
<span t-field="activity.list_price"/>
|
|
|
|
</div>
|
|
|
|
<div t-if="activity.default_code">
|
|
|
|
<strong>Reference : </strong>>
|
|
|
|
<span t-field="activity.default_code"/>
|
|
|
|
</div>
|
2018-05-08 02:31:05 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-xs-4" id="activity_info_middle">
|
2018-06-11 17:58:45 +02:00
|
|
|
<div t-if="activity.type_id">
|
|
|
|
<strong>Type : </strong><span t-field="activity.type_id"/>
|
|
|
|
</div>
|
|
|
|
<div t-if="activity.categ_id">
|
|
|
|
<strong>Category : </strong><span t-field="activity.categ_id"/>
|
|
|
|
</div>
|
2018-05-08 02:31:05 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-xs-4" id="activity_info_right">
|
2018-06-11 17:58:45 +02:00
|
|
|
<div t-if="activity.places">
|
|
|
|
<strong>Places : </strong><span t-field="activity.places"/>
|
|
|
|
</div>
|
2018-05-08 02:31:05 +02:00
|
|
|
<t t-if="activity.is_recurrent">
|
2018-06-11 17:58:45 +02:00
|
|
|
<div>
|
|
|
|
<strong>Is Recurrent : </strong>
|
|
|
|
<span t-field="activity.is_recurrent"/>
|
|
|
|
</div>
|
2018-05-08 02:31:05 +02:00
|
|
|
<t t-if="activity.is_fullseason">
|
2018-06-11 17:58:45 +02:00
|
|
|
<div><strong>Is Full Season : </strong>
|
|
|
|
<span t-field="activity.is_fullseason"/></div>
|
|
|
|
<div t-if="activity.weekday">
|
|
|
|
<strong>Weekday : </strong>
|
|
|
|
<span t-field="activity.weekday"/>
|
|
|
|
</div>
|
2018-05-08 02:31:05 +02:00
|
|
|
</t>
|
|
|
|
<t t-else="">
|
2018-06-11 17:58:45 +02:00
|
|
|
<div t-if="activity.date_start">
|
|
|
|
<strong>Date Start : </strong><span t-field="activity.date_start"/>
|
|
|
|
</div>
|
|
|
|
<div t-if="activity.date_stop">
|
|
|
|
<strong>Date Stop : </strong><span t-field="activity.date_stop"/>
|
2018-05-08 16:59:46 +02:00
|
|
|
</div>
|
2018-05-08 02:31:05 +02:00
|
|
|
</t>
|
2018-06-11 17:58:45 +02:00
|
|
|
<div t-if="activity.hour_start">
|
|
|
|
<strong>Start Hour : </strong>>
|
|
|
|
<span t-esc="'%02d:%02d' % (int(activity.hour_start), round(activity.hour_start % 1 * 60))" />
|
|
|
|
</div>
|
|
|
|
<div t-if="activity.hour_stop">
|
|
|
|
<strong>Stop Hour : </strong>>
|
|
|
|
<span t-esc="'%02d:%02d' % (int(activity.hour_stop), round(activity.hour_stop % 1 * 60))" />
|
|
|
|
</div>
|
2018-05-08 02:31:05 +02:00
|
|
|
</t>
|
|
|
|
<t t-else="">
|
2018-06-11 17:58:45 +02:00
|
|
|
<div t-if="activity.date_start">
|
|
|
|
<strong>Date Start : </strong>
|
|
|
|
<span t-field="activity.date_start"/>
|
|
|
|
</div>
|
|
|
|
<div t-if="activity.date_stop">
|
|
|
|
<strong>Date Stop : </strong>
|
|
|
|
<span t-field="activity.date_stop"/>
|
|
|
|
</div>
|
2018-05-08 02:31:05 +02:00
|
|
|
</t>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
</template>
|
2018-06-11 17:58:45 +02:00
|
|
|
|
2018-05-07 18:51:47 +02:00
|
|
|
</odoo>
|