I have set up a server action as an email event and linked it into the workflow. The problem is that the HTML code i am using is getting sent as text i.e is not being processed? Am I missing something or doing something wrong? Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
The method that processes the message to be sent out is ir.mail_server.build_email
. It can be found in addons/base/ir/ir_mail_server.py
. The code comments mention the messages are created to RFC2822 which is specific to text emails. So to answer your question, HTML isn't supported for these automatic emails.
That being said, for Python applications, including HTML support in email messages is trivial. (see here. You (or someone) would just have to write a module for it.
Or OpenERP SA improves Server Actions to be able to use email_template
s.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
3
thg 1 25
|
6339 | ||
|
4
thg 1 24
|
18063 | ||
|
3
thg 10 19
|
3209 | ||
|
2
thg 8 18
|
6074 | ||
|
0
thg 3 15
|
3035 |
any ideas?
In addition to that, When we fetch incoming emails, OpenERP generates plain text from the bottom of the email which is customer signature.