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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
hello, it worked, thanks for helping me
Hello mouatez ouarhlent,
Please find code in comment.
I hope this will help you.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
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>
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
Hello,
You have to add the footer code inside the invoice template only.
Thanks,
shivoham.odoo@gmail.com