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

I am working on custom email template where i want to set default email template for particular customer. Depending on the customer email address i want to get default template for related customer.

For Example: if odoo is in customer email address the by default odoo Template selected otherwise Others Template. (i.e email address: pratik@odoo.com then odoo email template selected by default.)

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

pls add one new m2o to res.partner that field have relation with template object select the template while creating the partner and you have to create template from xml . you can find reference for how to create email template odoo/addons/sale/edi folder it have sale_order_action_data.xml file.

if you have still quesion then free to ask.

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

Already i know the flow of the email template, but i want to use this in my custom module with js.

okay, how can you come to know that one partner/customer has assigned that particular email template? you have to define the template in partner.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 16
3435
1
thg 11 15
8551
0
thg 3 25
1284
0
thg 1 25
3374
0
thg 10 24
1115