This commit is contained in:
michel 2018-02-22 18:08:38 +01:00
parent 9fc3922ba1
commit 54697f78bf
2 changed files with 44 additions and 68 deletions

View File

@ -26,10 +26,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<th>Price</th> <th>Price</th>
</xpath> </xpath>
<xpath expr="//td[@id='activity_inherit_td']" position="after"> <xpath expr="//td[@id='activity_inherit_td']" position="after">
<td class="col-xs-4"> <td class="col-xs-2">
<span t-field="t.state" /> <span t-field="t.state" />
</td> </td>
<td class="col-xs-4"> <td class="col-xs-2">
<span t-field="t.activity_price" t-field-options="{'widget': 'monetary', <span t-field="t.activity_price" t-field-options="{'widget': 'monetary',
'display_currency': o.currency_id}"/> 'display_currency': o.currency_id}"/>
</td> </td>
@ -60,40 +60,30 @@ 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-striped"> <table class="table">
<thead> <thead>
<strong>Invoices</strong> <strong>Invoices</strong>
<tr> <tr>
<th>Number</th>
<th>Date</th>
<th>Activity</th> <th>Activity</th>
<th>Amount</th> <th>Date</th>
<th>State</th> <th>State</th>
<th>Residual</th> <th>Amount</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<t t-foreach="docs" t-as="o"> <t t-foreach="docs" t-as="o">
<tr t-foreach="o.activity_registration_ids" t-as="l"> <tr t-foreach="o.activity_registration_ids" t-as="l">
<td class="col-xs-6"> <td class="col-xs-3">
<spam t-field="l.invoice_id.number" />
</td>
<td class="col-xs-6">
<spam t-field="l.invoice_id.date_invoice" />
</td>
<td class="col-xs-6">
<spam t-field="l.invoice_line_id.product_id" /> <spam t-field="l.invoice_line_id.product_id" />
</td> </td>
<td class="col-xs-6"> <td class="col-xs-3">
<spam t-field="l.invoice_id.amount_total" <spam t-field="l.invoice_id.date_invoice" />
t-field-options="{'widget': 'monetary',
'display_currency': o.currency_id}"/>
</td> </td>
<td class="col-xs-6"> <td class="col-xs-3">
<spam t-field="l.invoice_id.state" /> <spam t-field="l.invoice_id.state" />
</td> </td>
<td class="col-xs-6"> <td class="col-xs-3">
<span t-field="l.invoice_id.residual" <spam t-field="l.invoice_line_id.price_subtotal"
t-field-options="{'widget': 'monetary', t-field-options="{'widget': 'monetary',
'display_currency': o.currency_id}"/> 'display_currency': o.currency_id}"/>
</td> </td>
@ -106,7 +96,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<strong>Payments</strong> <strong>Payments</strong>
<tr> <tr>
<th>Invoice number</th> <th>Invoice number</th>
<th>Ref payment</th>
<th>State</th> <th>State</th>
</tr> </tr>
</thead> </thead>
@ -114,14 +103,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<t t-foreach="docs" t-as="o"> <t t-foreach="docs" t-as="o">
<tr t-foreach="o.activity_registration_ids" t-as="l"> <tr t-foreach="o.activity_registration_ids" t-as="l">
<tr> <tr>
<td> <td class="col-xs-6">
<spam t-field="l.invoice_id.number" /> <spam t-field="l.invoice_id.number" />
</td> </td>
<td> <td class="col-xs-6">
<spam t-field="l.invoice_id.payment_ids.name" /> <span t-field="l.invoice_id.payment_ids.state" />
</td>
<td>
<spam t-field="l.invoice_id.payment_ids.state" />
</td> </td>
</tr> </tr>

View File

@ -47,41 +47,31 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<t t-call="report.html_container"> <t t-call="report.html_container">
<t t-call="report.external_layout"> <t t-call="report.external_layout">
<div class="page"> <div class="page">
<table class="table table-striped"> <t t-foreach="docs" t-as="o">
<thead> <div class="oe_structure"/>
<tr> <div class="row">
<th>Member</th> <div class="col-xs-4">
<th>Season</th> <strong>Member</strong>
<th>Date of season</th> <div t-field="o.partner_id"
</tr> t-options='{"widget": "contact", "fields":
</thead> ["address", "name", "street", "street2", "phone", "fax"],
<tbody> "no_marker": True, "phone_icons": True}'/>
<t t-foreach="docs" t-as="o"> <br></br>
<tr> </div>
<td class="col-xs-4"> <div class="oe_structure"/>
<strong><span t-field="o.name" /></strong><br></br> <div class="col-xs-4">
<span t-field="o.street" /><br></br> <strong>Season :</strong>
<t t-if="o.street2"> <span t-field="o.season_ids[0].name" />
<span t-field="o.street2" /><br></br> </div>
</t> <div class="col-xs-4">
<span t-field="o.zip" /><br></br> <strong>Date :</strong>
<span t-field="o.city" /><br></br> <span t-field="o.season_ids[0].date_start" />
<t t-if="o.state_id"> -
<span t-field="o.state_id" /><br></br> <span t-field="o.season_ids[0].date_end" />
</t> </div>
<span t-field="o.country_id" /><br></br> </div>
</td>
<td class="col-xs-4">
<span t-field="o.season_ids[0].name" /><br></br>
</td>
<td class="col-xs-4">
<span t-field="o.season_ids[0].date_start" /><br></br>
<span t-field="o.season_ids[0].date_end" /><br></br>
</td>
</tr>
</t> </t>
</tbody>
</table>
<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>
@ -98,22 +88,22 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<tbody> <tbody>
<t t-foreach="docs" t-as="o"> <t t-foreach="docs" t-as="o">
<tr id="activity_inherit_price_sum" t-foreach="o.activity_registration_ids" t-as="t"> <tr id="activity_inherit_price_sum" t-foreach="o.activity_registration_ids" t-as="t">
<td class="col-xs-4"> <td class="col-xs-2">
<span t-esc="t.activity_id.name" /><br></br> <span t-esc="t.activity_id.name" /><br></br>
</td> </td>
<td class="col-xs-4"> <td class="col-xs-2">
<span t-field="t.activity_id.animator_id" /><br></br> <span t-field="t.activity_id.animator_id" /><br></br>
</td> </td>
<td class="col-xs-4"> <td class="col-xs-2">
<span t-field="t.activity_id.weekday" /><br></br> <span t-field="t.activity_id.weekday" /><br></br>
</td> </td>
<td class="col-xs-4"> <td class="col-xs-2">
<span t-field="t.activity_id.hour_start" /><br></br> <span t-field="t.activity_id.hour_start" /><br></br>
</td> </td>
<td class="col-xs-4"> <td class="col-xs-2">
<span t-field="t.activity_id.hour_stop" /><br></br> <span t-field="t.activity_id.hour_stop" /><br></br>
</td> </td>
<td class="col-xs-4"> <td class="col-xs-2">
<span t-field="t.activity_id.date_start" /><br></br> <span t-field="t.activity_id.date_start" /><br></br>
</td> </td>
<td id="activity_inherit_td"> <td id="activity_inherit_td">