跳至内容
菜单
此问题已终结
2 回复
3754 查看

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

形象
丢弃

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

最佳答案

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>

形象
丢弃
相关帖文 回复 查看 活动
2
6月 22
7609
3
3月 17
12561
2
7月 15
3417
2
9月 24
1569
5
8月 19
46188