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

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

形象
丢弃
最佳答案

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


形象
丢弃
编写者 最佳答案

They did, thank you!

形象
丢弃
相关帖文 回复 查看 活动
2
1月 21
5620
1
10月 18
4697
1
12月 17
2183
1
12月 17
3526
1
7月 17
7114