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

Hello,

As I described in the title, I want to make a new report inheriting from sale.order (customized report) and omitting the layout (footer and header)

Avatar
Discard
Best Answer

Hi,

Use the below code,

<template id="report_saleorder_document" primary="True" inherit_id="sale.report_saleorder_document">
<xpath expr="//t[@t-call='report.external_layout']" position="attributes">
<attribute name="t-call"></attribute>
</xpath>
</template>

Reference:  How To Inherit And Create New Report In Odoo


Thanks

Avatar
Discard
Best Answer

you can try using this

<div class="header"></div>
<div class="footer"></div>

Avatar
Discard