Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1553 Lượt xem

Hi All,


i'm using odoo online (enterprise) and odoo studio (saas 17.2).

for Quotation number while print to pdf report is only show S0001.pdf.


i check in internet and for the change that field name report is in :

Settings > Technical > Reporting > Reports 


How i can add customer name in PDF report filename : e.g : S0001 Company.pdf


I try using (object.x_name) - (Object.x_customer_name)

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,
Inside the report, you can give the value of Printed Report Name as '%s - %s' % (object.partner_id.name, object.name)

object.partner_id.name will bring the name of the customer.


Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thanks for your Answer.

it's works. 

i'm sorry i can't like your answer and make it Best Answer because my profile KARMA is still not enough.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
PDF reports Đã xử lý
5
thg 7 25
2247
Wrong PDF Format Đã xử lý
2
thg 3 24
2757
0
thg 11 22
2982
0
thg 9 17
5287
1
thg 3 15
8385