Skip to Content
Menu
This question has been flagged
3 Replies
9867 Views

Hi,

in sale order i want to create a new report without header and footer but  i should keep the original report that containt header footer.

Is this possbile.


Regards


 

Avatar
Discard

You can create more than one report for the same model.

Author

Yes i know but can we create one without header and footer and one with header and footer in the same model

Best Answer

The header and footer are defined as a separate template in the report module. See report/view/layout_templates.xml. Odoo defines two header templates as standard: external_layout and internal_layout. Internal layout is very simple.
Sale order report uses the template external_layout in its definition:
<template id="report_saleorder_document">
    <t t-call="report.external_layout">

...

</t>

</template>

If you define new SO report with <t t-call="report.internal_layout">, footer and header will be differen and simple.

You can also define a new report that will not call any prepared layout.

Avatar
Discard