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

View File

@ -27,5 +27,5 @@
'depends': ['golem_member', 'account', 'decimal_precision'], 'depends': ['golem_member', 'account', 'decimal_precision'],
'data': ['views/golem_membership_invoice.xml', 'data': ['views/golem_membership_invoice.xml',
'views/golem_member_view.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