Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
7877 Tampilan

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')?

Avatar
Buang
Jawaban Terbai
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



Avatar
Buang
Penulis

Thanks! That works fine.

Post Terkait Replies Tampilan Aktivitas
1
Jan 17
4889
1
Jul 24
2326
0
Des 16
2790
List view Diselesaikan
1
Feb 25
903
3
Nov 24
3006