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

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"

        />


아바타
취소
베스트 답변

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>
아바타
취소
베스트 답변

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

아바타
취소
베스트 답변

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
아바타
취소
관련 게시물 답글 화면 활동
2
9월 20
3487
1
2월 20
3256
1
10월 19
2611
3
8월 25
25466
0
3월 22
2635