Skip to Content
Menu
This question has been flagged
2157 Views

Hello everyone,

I have modify the report of partner overdue like follow:

<?xml version="1.0" encoding="utf-8"?>

<!--Custom report.-->

<openerp>

<data>

<template id="report_snc.report_credit_document">

<t t-call="report.external_layout">

<div class="page">

<div class="row">

<h2>Règlements en retard

</h2>

</div>

<table class="table table-condensed">

<thead style="background-color:#ffffff;border: 1px solid #000000;color:#000000;">

<tr>

<th style="border: 1px solid #000000">Nom</th>

<th style="border: 1px solid #000000">Montant non payé</th>

</tr>

</thead>

<tbody>

<tr t-foreach="docs" t-as="partner">

<td style="border: 1px solid #000000">

<span t-field="partner.name"/>

</td>

<td style="border: 1px solid #000000">

<span t-esc="formatLang(due[partner.id] - paid[partner.id], currency_obj=res_company.currency_id)"/> 

</td>

</tr>

</tbody>

</table>

 

</div>

</t>

</template>

<template id="report_credit">

<t t-call="report.html_container">

<t t-foreach="doc_ids" t-as="doc_id">

<t t-raw="translate_doc(doc_id, doc_model, 'lang', 'report_snc.report_credit_document')"/>

</t>

</t>

</template>

</data>

</openerp>

My problem is one I select for example 2 partners I get 2 page of this report also I need to not get the partner who hasn't an amount to pay.

Thanks

Avatar
Discard