跳至內容
選單
此問題已被標幟
2 回覆
5153 瀏覽次數

Hello, I created an Openerp 7 eMail Server Action for an opportunity. The action gets executed when the Opportunity Next Action Date is past due for followup. I add info from the Opportunity's object into the email using fields like

object.partner_id.name Oject.name object.title_action

My question is, I want to send this email to the Salesperson assigned to this opportunity by placing the salespersons object email address into the "To:" field of the eMail Server Action. We have the Salesperson name assigned to the Opportunity. I can not figure out how the object field for the Salespersons email address. Is this not possible?

something like object.salesperson.email ???

頭像
捨棄

It is object.user_id.email

最佳答案

Hi;

Try with: object.res_users.email

頭像
捨棄
作者

This does not work. When I place object.res_users.email in the "Email Address" field under the "Email Configuration" tab the following garbage is inserted by server action:

作者

"\"[[ object res users email ]]\"" <"[[ object.res_users.email ]]"@mail.xxxxxx.com&gt;

最佳答案

It is object.user_id.email

頭像
捨棄
作者

Does not work. The following garbage is inserted by the server action: "\"[[ object user id email ]]\"" <"[[ object.user_id.email ]]"@mail.xxxxxx.com&gt;

相關帖文 回覆 瀏覽次數 活動
1
3月 15
6050
1
5月 24
1436
3
6月 23
11887
2
11月 23
2748
1
6月 23
2369