Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2453 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

you can try using this

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

Avatar
Abbandona