跳至內容
選單
此問題已被標幟
1 回覆
7994 瀏覽次數

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.

相關帖文 回覆 瀏覽次數 活動
1
1月 17
5034
1
7月 24
2466
0
12月 16
2923
2
8月 25
4571
List view 已解決
1
2月 25
1031