2018-02-16 17:47:52 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Copyright 2017 Fabien Bourgeois <fabien@yaltik.com>
|
|
|
|
Copyright 2018 Michel Dessenne <michel@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>
|
|
|
|
|
2018-02-19 16:22:29 +01:00
|
|
|
<template id="activity" inherit_id="golem_member.report_golem_member_template">
|
2018-02-20 11:44:48 +01:00
|
|
|
<xpath expr="//th[@id='activity_inherit_th']" position="after">
|
|
|
|
<th>State</th>
|
|
|
|
<th>Price</th>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//td[@id='activity_inherit_td']" position="after">
|
2018-02-21 15:52:10 +01:00
|
|
|
<td class="col-xs-6">
|
2018-02-20 11:44:48 +01:00
|
|
|
<span t-field="t.state" />
|
|
|
|
</td>
|
2018-02-21 15:52:10 +01:00
|
|
|
<td class="col-xs-6">
|
2018-02-20 11:44:48 +01:00
|
|
|
<span t-field="t.activity_price" t-field-options="{'widget': 'monetary',
|
|
|
|
'display_currency': o.currency_id}"/>
|
|
|
|
</td>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//tr[@id='activity_inherit_price_sum']" position="before">
|
|
|
|
<t t-set="price_sum" t-value="0"/>
|
|
|
|
</xpath>
|
|
|
|
<xpath expr="//tr[@id='activity_inherit_sum']" position="inside">
|
|
|
|
<t t-set="price_sum" t-value="price_sum + t.activity_price"/>
|
|
|
|
</xpath>
|
2018-02-21 15:52:10 +01:00
|
|
|
<xpath expr="//tr[@id='activity_inherit_total']" position="replace">
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<td><td><td><td><td><td><td>
|
|
|
|
<td class="col-xs-6">
|
|
|
|
<strong>
|
|
|
|
TOTAL
|
|
|
|
</strong>
|
|
|
|
</td>
|
|
|
|
<td class="col-xs-6">
|
|
|
|
<t t-esc="price_sum"
|
|
|
|
t-esc-options="{'widget': 'monetary',
|
|
|
|
'display_currency': o.currency_id}"/>
|
|
|
|
</td>
|
|
|
|
</td></td></td></td></td></td></td>
|
2018-02-20 11:44:48 +01:00
|
|
|
</tr>
|
2018-02-21 15:52:10 +01:00
|
|
|
</tfoot>
|
2018-02-20 11:44:48 +01:00
|
|
|
</xpath>
|
|
|
|
|
|
|
|
<xpath expr="//table[@id='table_activity_ref']" position="after">
|
|
|
|
<table class="table table-striped">
|
2018-02-21 15:52:10 +01:00
|
|
|
<thead>
|
|
|
|
<strong>Invoices</strong>
|
|
|
|
<tr>
|
|
|
|
<th>Date</th>
|
|
|
|
<th>Number</th>
|
|
|
|
<th>Activity</th>
|
|
|
|
<th>Amount</th>
|
|
|
|
<th>State</th>
|
|
|
|
<th>Residual</th>
|
2018-02-20 11:44:48 +01:00
|
|
|
</tr>
|
2018-02-21 15:52:10 +01:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<t t-foreach="docs" t-as="o">
|
|
|
|
<tr t-foreach="o.activity_registration_ids" t-as="l">
|
|
|
|
<td class="col-xs-6">
|
|
|
|
<spam t-field="l.invoice_id.date_invoice" />
|
|
|
|
</td>
|
|
|
|
<td class="col-xs-6">
|
|
|
|
<spam t-field="l.invoice_id[0].number" />
|
|
|
|
</td>
|
|
|
|
<td class="col-xs-6">
|
|
|
|
<spam t-field="l.invoice_line_id.product_id" />
|
|
|
|
</td>
|
|
|
|
<td class="col-xs-6">
|
|
|
|
<spam t-field="l.invoice_id.amount_total"
|
|
|
|
t-field-options="{'widget': 'monetary',
|
|
|
|
'display_currency': o.currency_id}"/>
|
|
|
|
</td>
|
|
|
|
<td class="col-xs-6">
|
|
|
|
<spam t-field="l.invoice_id.state" />
|
|
|
|
</td>
|
|
|
|
<td class="col-xs-6">
|
|
|
|
<span t-field="l.invoice_id.residual"
|
|
|
|
t-field-options="{'widget': 'monetary',
|
|
|
|
'display_currency': o.currency_id}"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</t>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2018-02-21 16:49:09 +01:00
|
|
|
|
|
|
|
<!-- En cours -->
|
2018-02-21 15:52:10 +01:00
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>payment</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<t t-foreach="docs" t-as="o">
|
2018-02-21 16:49:09 +01:00
|
|
|
<tr t-foreach="o.activity_registration_ids" t-as="l">
|
2018-02-21 15:52:10 +01:00
|
|
|
<tr>
|
|
|
|
<td>
|
2018-02-21 16:49:09 +01:00
|
|
|
<spam t-field="o.last_payment_state" />
|
2018-02-21 15:52:10 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
</t>
|
|
|
|
</tbody>
|
|
|
|
|
2018-02-20 11:44:48 +01:00
|
|
|
</table>
|
|
|
|
</xpath>
|
2018-02-16 17:47:52 +01:00
|
|
|
</template>
|
|
|
|
|
|
|
|
</odoo>
|