Skip to Content
Menu
This question has been flagged
2 Replies
984 Views

hello,

i'm trying to create a custom footer for web.external layout and i need to do those changes only for invoice, not the quotation .
any idea, thank you

Avatar
Discard

Hello,

You have to add the footer code inside the invoice template only.

Thanks,
shivoham.odoo@gmail.com

Author Best Answer

hello, it worked, thanks for helping me

Avatar
Discard
Best Answer

Hello mouatez ouarhlent,

Please find code in comment.

I hope this will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Discard

Please find below code it may help you to resolve this issue,

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

<odoo>
<data>
<template id="report_invoice_extend" inherit_id="account.report_invoice_document">
<t t-call="my_module.extend_layout">
</t>
</template>

<template id="extend_layout">
<t t-if="o and 'company_id' in o">
<t t-set="company" t-value="o.company_id"></t>
</t>
<t t-if="not o or not 'company_id' in o">
<t t-set="company" t-value="res_company"></t>
</t>
<t t-call="module_name.report_footer" />
</template>

<template id="report_footer">
<div class="footer">
Your Report Footer
</div>
</template>
</data>
</odoo>