Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
7959 Näkymät

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
Hylkää
Paras vastaus
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
Hylkää
Tekijä

Thanks! That works fine.

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
tammik. 17
5005
1
heinäk. 24
2452
0
jouluk. 16
2907
2
elok. 25
4519
List view Ratkaistu
1
helmik. 25
1023