Skip to Content
Menu
This question has been flagged
3 Replies
1922 Views

Hi, I would like to change string in the following report, is it possible?


        <report

            string="Delivery Slip"

            id="action_report_delivery"

            model="stock.picking"

            report_type="qweb-pdf"

            name="stock.report_deliveryslip"

            file="stock.report_deliveryslip"

        />


Avatar
Discard
Best Answer

Hello Jakub
You can change the report string with help of following code.

<record id="stock.action_report_delivery" model="ir.actions.report">
    <field name="name">Delivery Slip Changed</field>
</record>
Avatar
Discard
Best Answer

Hi,

Please try the code to change your string,

<report string="Delivery Slip"
id="stock.action_report_delivery"
model="stock.picking"
report_type="qweb-pdf"
name="stock.report_deliveryslip"
file="stock.report_deliveryslip"/>    

Thanks

Muhammed Ali M - iWesabe

Avatar
Discard
Best Answer

Hello Jakub Patch,

Yes it's possible to change string please try this code,
<report
            string="New String"
            id="stock.action_report_delivery"
            model="stock.picking"
            report_type="qweb-pdf"
            name="stock.report_deliveryslip"
            file="stock.report_deliveryslip"
            print_report_name="'Delivery Slip - %s - %s' % (object.partner_id.name or '', object.name)"
        />
Thanks
Avatar
Discard
Related Posts Replies Views Activity
2
Sep 20
2056
1
Feb 20
2136
1
Oct 19
1719
0
Mar 22
1528
2
Oct 20
26819