Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
7992 มุมมอง

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
5031
1
ก.ค. 24
2465
0
ธ.ค. 16
2922
Include a picture in a PDF report แก้ไขแล้ว
2
ส.ค. 25
4567
List view แก้ไขแล้ว
1
ก.พ. 25
1030