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

Hi!


I need to use different templates of invoices depending of the service or goods I’m selling.


Is there a way to do it in Odoo 16 (SaaS)?


Example:


I‘m an Interior designer and I propose coaching to my clients. So I want my logo « Interior Designer » on top of the invoices.


But I also have sell sofas, tables and other furnitures in a store. Then I want to give invoices with the logo « Home Paradise »


How can I do it in Odoo?


Thanks in advance.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello Mehdi,

I think the best way to implement it by creating a different template. Since there are only two scenarios, it is good to make different invoice template like this example :

Since you are using SaaS, In order to create something like the picture above you have to go to create a paper format first into settings > technical > report and create a new record. After that, create the QWEB report which will later contain the template by going to Settings > technical > views. You can later create a ir.action.report to make a print button inside invoice appear by going to settings > technical > actions and create a new record.


Another workaround without creating new template like step above is you can also directly editing the current invoice template and add a condition to print what you need, first you need to go to Settings > technical > views and in the search bar type in report_invoice_document. Here you will need to define some lines of code since you are need to edit the QWEB template. You can use conditional t t-if  declaration in the template.


Hope this helpful. Best regards,

Altela (altelasoftware.com)

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.ย. 25
420
3
มี.ค. 25
1284
Help - issue with format invoice แก้ไขแล้ว
2
พ.ค. 24
1534
1
ก.พ. 24
1677
1
เม.ย. 25
137