콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
4675 화면

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
5617
1
10월 18
4675
1
12월 17
2179
1
12월 17
3506
1
7월 17
7091