Odoo Help

Welcome!

This community 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.

0

Partner Overdue report

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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