Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
7951 Ansichten

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
Verwerfen
Beste Antwort
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
Verwerfen
Autor

Thanks! That works fine.

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Jan. 17
5001
1
Juli 24
2450
0
Dez. 16
2903
2
Aug. 25
4516
List view Gelöst
1
Feb. 25
1015