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
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