[MOV]GOLEM Membership member card report move

This commit is contained in:
Fabien BOURGEOIS 2018-03-08 15:02:39 +01:00
parent 9898a98da1
commit 027eaf0a9b
4 changed files with 27 additions and 37 deletions

View File

@ -29,23 +29,32 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<template id="golem_member_card_template">
<t t-call="report.html_container">
<t t-call="report.external_layout">
<div id='page_report_member' class="page">
<t t-set="season" t-value="docs._default_season()" />
<t t-foreach="docs" t-as="member">
<t t-set="season" t-value="docs._default_season()" />
<t t-foreach="docs" t-as="member" id="foreach_member">
<t t-call="report.external_layout">
<div id='page_report_member' class="page">
<div class="row">
<h2>Member <span t-field="member.name" /> - <span t-field="member.number" /></h2>
<p>
<strong>Season :</strong>
<span t-field="season.name" />
<t t-if="season.date_start">
(<em>from :
<span t-field="season.date_start" /> to
<span t-field="season.date_end" /></em>)
</t>
</p>
<div class="col-xs-6">
<h2>
<span t-field="member.name" />
<small>(num. <span t-field="member.number" />)</small>
</h2>
</div>
<div class="col-xs-6">
<h3>
Season :
<span t-field="season.name" />
<t t-if="season.date_start">
<br />
<small>Period :
<span t-field="season.date_start" /> -
<span t-field="season.date_end" />
</small>
</t>
</h3>
</div>
</div>
<h3>Activities for this season</h3>
<h3>Activities</h3>
<table id="table_activity_ref" class="table table-striped">
<thead>
<tr>
@ -92,8 +101,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<tr id="activity_inherit_total"></tr>
</tbody>
</table>
</t>
</div>
</div>
</t>
</t>
</t>
</template>

View File

@ -27,5 +27,5 @@
'depends': ['golem_member', 'account', 'decimal_precision'],
'data': ['views/golem_membership_invoice.xml',
'views/golem_member_view.xml',
'report/golem_member_report.xml']
'views/report_golem_member.xml']
}

View File

@ -1,19 +0,0 @@
# -*- coding: utf-8 -*-
# Copyright 2016 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/>.
from . import golem_membership