Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
7966 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns
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



Imagine profil
Abandonează
Autor

Thanks! That works fine.

Related Posts Răspunsuri Vizualizări Activitate
1
ian. 17
5014
1
iul. 24
2453
0
dec. 16
2913
2
aug. 25
4526
List view Rezolvat
1
feb. 25
1025