Skip to Content
Menu
This question has been flagged

I want to customize the customer follow-up report to add invoices that have been paid as well. Can anyone help me with the coding? 


This is the current code:

<?xml version="1.0"?>

<t t-name="account_followup.report_followup_print_all">

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

                <t t-call-assets="web.assets_common" t-js="false"/>

                <t t-set="company" t-value="docs.env.company"/>

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

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

                        <t t-set="fallback_address" t-value="partner.browse(partner.address_get(['invoice'])['invoice']) or partner"/>

                        <t t-call-assets="account_followup.assets_followup_report"/>

                        <div class="page">

                            <span t-raw="partner.get_followup_html()"/>

                        </div>

                    </t>

                    <t t-if="partner.followup_level.join_invoices" t-foreach="partner.unpaid_invoices" t-as="o">

                        <t t-set="lang" t-value="o.user_id.lang if o.type in ('in_invoice', 'in_refund') else o.partner_id.lang"/>

                        <t t-call="account.report_invoice_document" t-lang="lang"/>

                        

                    </t>

                </t>

            </t>

        </t>



I am using Odoo Online V13


Thanks

Avatar
Discard

Hello,

Why do you want to add invoices that have been paid in this report ? The follow up report is used to identify payments that are late and will allow you to send the appropriate reminders.

why not going through Accounting/customer/invoices (group by "partner" and "payments")

Just let me know about the need ;-) Regards

Related Posts Replies Views Activity
0
May 23
896
0
Jun 24
198
2
May 23
3481
8
Jul 20
4222
4
Mar 24
5967