Skip to Content
Menu
This question has been flagged
1 Atsakyti
7991 Rodiniai

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

Portretas
Atmesti
Best Answer
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



Portretas
Atmesti
Autorius

Thanks! That works fine.

Related Posts Replies Rodiniai Veikla
1
saus. 17
5029
1
liep. 24
2464
0
gruod. 16
2922
2
rugp. 25
4563
1
vas. 25
1029