Hello Community,
I want to send survey email with partner name for this i have override survey email template but its module is survey_survey. So how can i send email to partner with his name
Thanks in advance.
Survey - Send by Email
Hello ${name of partner},
We are conducting a survey, and your response would be appreciated.
Please, click here to start survey
Thanks for your participation!
]]>
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ờ
problem solved.
{'body_html': wizard.body.replace("__URL__", url).replace("partner_name", partner_name.name)}
Thanks
Hi,
In higher versions like odoo14, it seems available by default. In odoo11, you can the get the partner name as follows:
Dear ${object.partner_id.name or 'participant'}
Thanks
Hi Niyas, Thanks for your reply. i am already tried this and getting "UndefinedError: 'odoo.api.survey.survey object' has no attribute 'partner_id'" due to unavailability partner in survey model.
if so, can you check how it is implemented in the latest versions
problem solved.
{'body_html': wizard.body.replace("__URL__", url).replace("partner_name", partner_name.name)}
Thanks
Hi Pawan,
Instead of overriding create a new email template with model _id as "model_survey_user_input".
In the new template add these in the body
Hello ${object.partner_id.name or 'participant'},
We are conducting a survey, and your response would be appreciated.
Please, click here to start survey( add this in the href "${(object.action_survey_resend()) | safe}"
Thanks for your participation!
Hope this helps
Regards
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 | |
---|---|---|---|---|
|
0
thg 9 21
|
2042 | ||
|
0
thg 12 21
|
2643 | ||
|
1
thg 11 22
|
3325 | ||
Live tracking in odoo.
Đã xử lý
|
|
2
thg 8 22
|
7666 | |
|
1
thg 1 25
|
9352 |