Skip to Content
Menu
This question has been flagged
1 Reply
2910 Views

Any idea how to inherit the report below in order to include paperformat atribute?


        <report 

            id="action_report_saleorder"

            string="Quotation / Order"

            model="sale.order" 

            report_type="qweb-pdf"

            file="sale.report_saleorder" 

            name="sale.report_saleorder"

            print_report_name="(object.state in ('draft', 'sent') and 'Quotation - %s' % (object.name)) or 'Order - %s' % (object.name)"

        />

Avatar
Discard
Best Answer

Hi Jakub, please check the inheritance code below:        

<report 
        id="sale.action_report_saleorder"
        string="Quotation / Order"
        model="sale.order" 
        report_type="qweb-pdf"
        file="sale.report_saleorder" 
        name="sale.report_saleorder"
        print_report_name="(object.state in ('draft', 'sent') and 'Quotation - %s' % (object.name)) or 'Order - %s' %(object.name)"
        paperformat="report.paperformat_euro"
/>

Regards,
Ivan

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 21
7715
1
Jun 20
8967
0
Jan 22
464
4
Nov 24
5238
1
Mar 24
398