[TMP] Report golem_member and golem_membership PDF style ok

This commit is contained in:
michel 2018-02-27 10:05:14 +01:00
parent e2fe375869
commit f02a2eb912
3 changed files with 68 additions and 58 deletions

View File

@ -60,9 +60,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</xpath> </xpath>
<xpath expr="//table[@id='table_activity_ref']" position="after"> <xpath expr="//table[@id='table_activity_ref']" position="after">
<table class="table"> <table class="table table-striped">
<thead> <thead>
<strong>Invoices</strong> <strong>Invoices</strong>
<br></br>
<tr> <tr>
<th>Activity</th> <th>Activity</th>
<th>Date</th> <th>Date</th>
@ -94,6 +95,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<table class="table table-striped" > <table class="table table-striped" >
<thead> <thead>
<strong>Payments</strong> <strong>Payments</strong>
<br></br>
<tr> <tr>
<th>Invoice number</th> <th>Invoice number</th>
<th>State</th> <th>State</th>

View File

@ -22,17 +22,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<record id="paperformat_euro_landscape" <record id="paperformat_euro_landscape"
model="report.paperformat"> model="report.paperformat">
<field name="name">European A4 Landscape</field> <field name="name">European A4 Portrait</field>
<field name="default" eval="True" /> <field name="default" eval="True" />
<field name="format">A4</field> <field name="format">A4</field>
<field name="page_height">0</field> <field name="page_height">0</field>
<field name="page_width">0</field> <field name="page_width">0</field>
<field name="orientation">Landscape</field> <field name="orientation">Portrait</field>
<field name="margin_top">40</field> <field name="margin_top">40</field>
<field name="margin_bottom">23</field> <field name="margin_bottom">23</field>
<field name="margin_left">7</field> <field name="margin_left">7</field>
<field name="margin_right">7</field> <field name="margin_right">7</field>
<field name="header_line" eval="False" /> <field name="header_line" eval="True" />
<field name="header_spacing">35</field> <field name="header_spacing">35</field>
<field name="dpi">90</field> <field name="dpi">90</field>
</record> </record>
@ -40,7 +40,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<report id="golem_member_report" <report id="golem_member_report"
string="Golem member report" string="Golem member report"
model="golem.member" model="golem.member"
report_type="qweb-html" report_type="qweb-pdf"
name="golem_member.report_golem_member_template" /> name="golem_member.report_golem_member_template" />
<template id="report_golem_member_template"> <template id="report_golem_member_template">
@ -68,6 +68,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<span t-field="o.season_ids[0].date_start" /> <span t-field="o.season_ids[0].date_start" />
- -
<span t-field="o.season_ids[0].date_end" /> <span t-field="o.season_ids[0].date_end" />
<br></br>
<br></br>
</div> </div>
</div> </div>
</t> </t>
@ -75,6 +77,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<table id="table_activity_ref" class="table table-striped"> <table id="table_activity_ref" class="table table-striped">
<thead> <thead>
<strong>Activity</strong> <strong>Activity</strong>
<br></br>
<tr> <tr>
<th>Name</th> <th>Name</th>
<th>Animator</th> <th>Animator</th>

View File

@ -22,35 +22,40 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<template id="membership" inherit_id="golem_member.report_golem_member_template"> <template id="membership" inherit_id="golem_member.report_golem_member_template">
<xpath expr="//div[@id='page_report_member']" position="after"> <xpath expr="//div[@id='page_report_member']" position="after">
<t t-call="report.external_layout">
<div class="page"> <div class="page">
<table class="table"> <table class="table table-striped">
<thead> <thead>
<strong>Membership</strong> <strong>Membership</strong>
<tr> <tr>
<th>Season</th> <th>Season date</th>
<th>Date</th> <th>Registration</th>
<th>Registration type</th>
<th>State</th> <th>State</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<t t-foreach="docs" t-as="o"> <t t-foreach="docs" t-as="o">
<tr> <tr>
<td class="col-xs-4"> <td class="col-xs-3">
<spam t-field="o.membership_start" />
<spam t-field="o.membership_stop" />
</td>
<td class="col-xs-3">
<spam t-field="o.member_lines.date" /> <spam t-field="o.member_lines.date" />
</td> </td>
<td class="col-xs-4"> <td class="col-xs-3">
<spam t-field="o.member_lines.membership_id" /> <spam t-field="o.member_lines.membership_id" />
</td> </td>
<td class="col-xs-4"> <td class="col-xs-3">
<spam t-field="o.member_lines.state" /> <spam t-field="o.membership_state" />
</td> </td>
</tr> </tr>
</t> </t>
</tbody> </tbody>
</table> </table>
</div> </div>
</t>
</xpath> </xpath>
</template> </template>