2018-02-26 16:52:29 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<!--
|
2018-03-18 07:05:06 +01:00
|
|
|
Copyright 2018 Fabien Bourgeois <fabien@yaltik.com>
|
2018-02-26 16:52:29 +01:00
|
|
|
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-03-08 14:56:34 +01:00
|
|
|
<template id="golem_member_card_template_inherit_golem_membership"
|
|
|
|
inherit_id="golem_member.golem_member_card_template">
|
2018-03-08 15:37:39 +01:00
|
|
|
<xpath expr="//table[@id='table_activity_ref']" position="after">
|
|
|
|
<t t-if="member.membership_state != 'none'">
|
|
|
|
<div class="row" id="page_report_membership">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<h3>Memberships</h3>
|
|
|
|
</div>
|
2018-03-08 14:56:34 +01:00
|
|
|
</div>
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Registration</th>
|
|
|
|
<th>Registration date</th>
|
|
|
|
<th>Date from</th>
|
|
|
|
<th>Date to</th>
|
|
|
|
<th>State</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2018-03-08 15:37:39 +01:00
|
|
|
<t t-foreach="member.member_lines" t-as="mline">
|
|
|
|
<tr>
|
|
|
|
<td class="col-xs-3">
|
|
|
|
<spam t-field="mline.membership_id" />
|
|
|
|
</td>
|
|
|
|
<td class="col-xs-2">
|
|
|
|
<spam t-field="mline.date_from" />
|
|
|
|
</td>
|
|
|
|
<td class="col-xs-2">
|
|
|
|
<spam t-field="mline.date_to" />
|
|
|
|
</td>
|
|
|
|
<td class="col-xs-2">
|
|
|
|
<spam t-field="mline.date" />
|
|
|
|
</td>
|
|
|
|
<td class="col-xs-3">
|
|
|
|
<spam t-field="mline.state" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
2018-03-08 14:56:34 +01:00
|
|
|
</t>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2018-03-08 15:37:39 +01:00
|
|
|
</t>
|
2018-03-08 14:56:34 +01:00
|
|
|
</xpath>
|
|
|
|
</template>
|
2018-02-26 16:52:29 +01:00
|
|
|
|
|
|
|
</odoo>
|