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

Hello,

I have problem with migrating the custom reports module to v10, when i install Sales and print default report it looks fine, but as soon as i install my custom reports module(which is fro test purposees minimal), the header is lost on default reports as well as on my custom reports. Have someone encountered this? The version of odoo v10 is irrelevant since i tried on cultiple versions and got same result.

Thanks

Avatar
Abbandona

If that happens when you install your module. You should check your template. You can post here, and we can help you.

Risposta migliore

If you are able to install the module without any errors then you might be missing the call to "external_layout" template which generates the default header. You need to call it just before the page starts: Here is a sample

<template id="report_saleorder_document">

        <t t-call="report.external_layout">

                <div class="page">

                     YOUR REPORT CONTENTS

                </div>

        </t>

</template>

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
giu 22
7697
3
mar 17
12659
2
lug 15
3486
2
set 24
1748
5
ago 19
46352