[IMP]GOLEM Family report : add family info on main card report

This commit is contained in:
Fabien BOURGEOIS 2018-03-18 10:12:56 +01:00
parent 39256ec70d
commit 1948f16110
4 changed files with 31 additions and 20 deletions

View File

@ -18,7 +18,7 @@
{
'name': 'GOLEM families',
'summary': 'GOLEM Members Families',
'version': '10.0.2.1.1',
'version': '10.0.2.2.0',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',

View File

@ -38,26 +38,30 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<t t-foreach="docs" t-as="o">
<div class="oe_structure"/>
<div class="row">
<h2>Family <span t-field="o.name" /></h2>
</div>
<div class="row">
<div class="col-xs-12">
<h2 class="golem_report_title">
Family <span t-field="o.name" />
</h2>
</div>
<div class="col-xs-6">
<h3>Details</h3>
<t if="o.city">
Address :
<span t-field="o.street" /><br />
<t t-if="o.street2">
<span t-field="o.street2" /><br />
</t>
<span t-field="o.zip" />
<span t-field="o.city" /><br /><br />
<address>
<strong>Address</strong> :
<span t-field="o.street" /><br />
<t t-if="o.street2">
<span t-field="o.street2" /><br />
</t>
<span t-field="o.zip" />
<span t-field="o.city" /><br />
</address>
</t>
<t t-if="o.state_id">
State :
<strong>State</strong> :
<span t-field="o.state_id" /><br />
</t>
<t t-if="o.country_id">
Country :
<strong>Country</strong> :
<span t-field="o.country_id" />
</t>
</div>
@ -90,7 +94,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</t>
</template>
<template id="golem_member_card_template_inherit_golem_family"
inherit_id="golem_member.golem_member_card_template">
<xpath expr="//div[@id='season_info']" position="before">
<div class="col-xs-12 text-right" id="family_info" t-if="member.family_id">
<strong>Family </strong> <span t-field="member.family_id.name" />
<t t-if="member.family_role">(<em t-field="member.family_role.name" />)</t>
</div>
</xpath>
</template>
</odoo>

View File

@ -19,7 +19,7 @@
{
'name': 'GOLEM non-profit members',
'summary': 'Extends Odoo contacts for MJC',
'version': '10.0.1.1.3',
'version': '10.0.1.1.4',
'category': 'GOLEM',
'author': 'Fabien Bourgeois, Michel Dessenne',
'license': 'AGPL-3',

View File

@ -38,18 +38,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<t t-call="report.external_layout">
<div id='page_report_member' class="page">
<div class="row">
<div class="col-xs-6">
<h2>
<div class="col-xs-12" id="member_title">
<h2 class="golem_report_title">
<span t-field="member.name" />
<small>(num. <span t-field="member.number" />)</small>
</h2>
</div>
<div class="col-xs-6">
<h3>
<div class="col-xs-12" id="season_info">
<h3 class="text-right" style="margin-top: 0;">
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" />