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

Dear All,

We are using Odoo 8.0. We have about 10 users in sales team and each user have their individual mail ids. Whenever a quotation  or invoice is sent, the mail need to go from individual mail ids. We have configured admin@ourdomain.com in outgoing mail server and the connection test is successful. Currently, when the mail is sent by any user, it uses admin@ourdomain.com as the email id and the same email id appears for the recipient of the emails.

I would appreciate any help in resolving the issue.

Regards,

Sudheendra

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

Hi,

use : ${user.partner_id.email | safe}

bye

Ảnh đại diện
Huỷ bỏ

@Cyril, what does "safe" signify?

Hi, user.partner_id.email | safe == user.partner_id.email or false, this will return false if there is no value for the first variable. bye

Câu trả lời hay nhất

hai you can set the out going mail id easily via email templates

settings->technical->email->templates

there search for your template and edit it

edit the template, on email configuration page you can see the outgoing mail option give the query there like

${(object.user_id.email or object.company_id.email or 'noreply@localhost')|safe}

this will send mail from usermail or company mail or localhost

enjoy odoo

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 25
4374
0
thg 4 15
3482
0
thg 2 17
3914
2
thg 3 16
9678
1
thg 2 16
5901