Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
1121 มุมมอง

I just create my custom purchase order document. When I open by link to pdf new tab. Title is purchase order id but I want to change to purchase order name.Can you help me.

อวตาร
ละทิ้ง
ผู้เขียน

But It not change when I open by link. not print or download. When open by link It show PO id

คำตอบที่ดีที่สุด

Hello Nitikorn,


Activate Developer Mode:

  • Go to Settings > Activate Developer Mode.

Locate the Report:

  • Go to Settings > Technical > Reports > Actions.
  • Search for the report you want to rename (e.g., Purchase Order report). Find the report name.



Update the report name using below line.

(object.state in ('draft', 'sent') and 'Request for Quotation - %s' % (object.name) or                'Purchase Order - %s' % (object.name))


Thanks & Regards,

Name : Yahoo Baba

Email:  yahoobaba077@gmail.com

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

It just change name when click print.When I open document by link on browser tab title is PO id. I want to change that to PO name.

อวตาร
ละทิ้ง
ผู้เขียน

But It not change when I open by link. not print or download. When open by link It show PO id

คำตอบที่ดีที่สุด

You can use the print_report_name property in your custom report declaration. 

<field name="print_report_name">(object.name)</field>

This will change the name of the pdf to the Purchase Orders name.

For Example: PO9283.pdf

Put this when you create your custom report in the ir_actions_report.xml file

Hope this helps.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
importing Purchase Order shown as a RFQ แก้ไขแล้ว
2
พ.ค. 25
2181
3
ธ.ค. 24
6262
1
ก.ค. 24
3048
Purchase Product Description Incorrect แก้ไขแล้ว
1
มิ.ย. 24
2121
2
มิ.ย. 24
3001