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

How to generate the report file name of an invoice in Odoo 10? 


The desired result should be that a concept invoice is called: "concept_invoice" and that the accepted invoice is named something like: "INV_(invoice_name/numer)_MyCompany.


somehting like: (object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/','')+'.pdf')?

الصورة الرمزية
إهمال
أفضل إجابة
Hi,
You  can do like this, activate the developer mode, then go to Settings -> Technical ->reports ->reports, select the report of the invoice , ie , report named Invoices.
Then open the report and add "(object.state in ('open','paid')) and ((object.number or '').replace('/','')+'.pdf'))" , this to field Printed Report Name.
Then go to invoices and print the report



الصورة الرمزية
إهمال
الكاتب

Thanks! That works fine.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يناير 17
5028
1
يوليو 24
2464
0
ديسمبر 16
2921
2
أغسطس 25
4562
List view تم الحل
1
فبراير 25
1029