Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
7970 Переглядів

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

Аватар
Відмінити
Найкраща відповідь
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



Аватар
Відмінити
Автор

Thanks! That works fine.

Related Posts Відповіді Переглядів Дія
1
січ. 17
5018
1
лип. 24
2457
0
груд. 16
2915
2
серп. 25
4535
List view Вирішено
1
лют. 25
1025