تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
1258 أدوات العرض

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)

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
4
يونيو 24
1650
Wrong PDF Format تم الحل
2
مارس 24
2128
0
نوفمبر 22
2460
0
سبتمبر 17
4840
1
مارس 15
7992