Odoo Help

0

Partner Overdue report

By
Jihen BEN ALI
on 2/8/16, 10:31 AM 505 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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 2/8/16, 10:31 AM
Seen: 505 times
Last updated: 2/8/16, 10:51 AM