Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4017 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

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>

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 6 22
7841
3
thg 3 17
12781
2
thg 7 15
3581
2
thg 9 24
1881
5
thg 8 19
46495