Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
8056 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất
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



Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks! That works fine.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 17
5123
1
thg 7 24
2582
0
thg 12 16
3018
2
thg 8 25
4699
List view Đã xử lý
1
thg 2 25
1180