[REF][FIX]GOLEM Member card membership section

This commit is contained in:
Fabien BOURGEOIS 2018-03-08 14:56:34 +01:00
parent 8ee4aca5f4
commit 9898a98da1
2 changed files with 45 additions and 40 deletions

View File

@ -18,7 +18,7 @@
{ {
'name': 'GOLEM non-profit membership handling', 'name': 'GOLEM non-profit membership handling',
'summary': 'Extends Odoo membership', 'summary': 'Extends Odoo membership',
'version': '10.0.1.1.0', 'version': '10.0.1.1.1',
'category': 'GOLEM', 'category': 'GOLEM',
'author': 'Fabien Bourgeois, Michel Dessenne', 'author': 'Fabien Bourgeois, Michel Dessenne',
'license': 'AGPL-3', 'license': 'AGPL-3',

View File

@ -20,44 +20,49 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<odoo> <odoo>
<template id="membership" inherit_id="golem_member.golem_member_card_template"> <template id="golem_member_card_template_inherit_golem_membership"
<xpath expr="//div[@id='page_report_member']" position="after"> inherit_id="golem_member.golem_member_card_template">
<t t-call="report.external_layout"> <xpath expr="//div[@id='page_report_member']" position="after">
<div class="page"> <div class="page">
<table class="table table-striped"> <div class="row">
<thead> <h2>Membership</h2>
<strong>Membership</strong> </div>
<tr> <table class="table table-striped">
<th>Season date</th> <thead>
<th>Registration</th> <tr>
<th>Registration type</th> <th>Registration</th>
<th>State</th> <th>Registration date</th>
</tr> <th>Date from</th>
</thead> <th>Date to</th>
<tbody> <th>State</th>
<t t-foreach="docs" t-as="o"> </tr>
<tr> </thead>
<td class="col-xs-3"> <tbody>
<spam t-field="o.membership_start" /> <t t-foreach="docs" t-as="member">
<spam t-field="o.membership_stop" /> <t t-foreach="member.member_lines" t-as="mline">
</td> <tr>
<td class="col-xs-3"> <td class="col-xs-3">
<spam t-field="o.member_lines[0].date" /> <spam t-field="mline.membership_id" />
</td> </td>
<td class="col-xs-3"> <td class="col-xs-2">
<spam t-field="o.member_lines[0].membership_id" /> <spam t-field="mline.date_from" />
</td> </td>
<td class="col-xs-3"> <td class="col-xs-2">
<spam t-field="o.membership_state" /> <spam t-field="mline.date_to" />
</td> </td>
</tr> <td class="col-xs-2">
</t> <spam t-field="mline.date" />
</tbody> </td>
</table> <td class="col-xs-3">
</div> <spam t-field="mline.state" />
</t> </td>
</xpath> </tr>
</t>
</template> </t>
</tbody>
</table>
</div>
</xpath>
</template>
</odoo> </odoo>