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

Hi

I'm trying to create an addon to print pdf product sheet from products. With this minimal example, the entry 'Product sheet' appears on the 'Print' menu, but when clicked it displays the following error:

Bad Request
The browser (or proxy) sent a request that this server could not understand.
KeyError: 'Content-Disposition'
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <report
            id="report_product_template_sheet"
            string="Product sheet"
            model="product.template"
            report_type="qweb-pdf"
            name="my_addon.report_producttemplatesheet"
            file="my_addon.report_producttemplatesheet"
            />

        <template id="report_producttemplatesheet">
            <t t-call="web.html_container">
                <div class="page">
                    <h1>Hi</h1>
                </div>
            </t>
        </template>
    </data>
</odoo>

I'm using Odoo 10 Community on Debian.


Thanks in advance

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Below links may help you,

https://www.cybrosys.com/blog/qweb-reports-in-odoo-v10

https://www.odoo.com/documentation/10.0/reference/reports.html

Thanks

Aswini iWesabe


Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

They did, thank you!

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 1 21
6246
1
thg 10 18
5289
1
thg 12 17
2473
1
thg 12 17
3945
1
thg 7 17
7517