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

for example, When I clicked the send mail button in sale order, there is opened the wizard.

there, loaded default sale order report as an attachment.
My goal is to change the default report and add my custom report there.
What are the steps I followed to achieve the goal?


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

It depends a little bit which route you want to take to create the report. It can be created through the Odoo GUI or through a custom module with XML (more advanced).


To create via the GUI, you must enable Developer Settings, then navigate to Settings > Reports. It may be easiest to copy the existing Sales Order report and make the modifications as needed.


To create via XML, you can find details on the \Odoo Reports Documentation.

อวตาร
ละทิ้ง
ผู้เขียน

I check the xml file that is noupdate="1".So we can't direct change the code.

I think programmatically create pdf attachment for this.

do you have any idea about this?

just delete that xml data form UI, after you custom one will get updated instead of original

ผู้เขียน

Thanks Hilar

คำตอบที่ดีที่สุด

To add custom report in E-Mail you can try below solution :

 -> Create Custom Module in which you need to override specific "mail template"

 and set your custom report template in "report_template".

 -> If you will not get result, then manually delete this report template and update your new custom module again.(sometimes in odoo records are not updated)


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ย. 19
4069
PDF reports แก้ไขแล้ว
5
ก.ค. 25
2869
Wrong PDF Format แก้ไขแล้ว
2
มี.ค. 24
3431
11
เม.ย. 23
29794
0
พ.ย. 22
3475