Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


CRM Opportunity :: Actions / Server Actions / Email Opportunity

Powrrr Play
on 3/24/14, 8:05 PM 1,130 views

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

Prime Minds Consultancy Services, Sudheendra Walvekar
on 3/25/14, 7:10 AM
Sudheendra Walvekar
On 3/25/14, 7:11 AM

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;

Powrrr Play
on 4/2/14, 10:29 AM

Med Said BARA

--Med Said BARA--
| 5 5 7
--Med Said BARA--
Med Said BARA
On 3/25/14, 4:50 AM


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:

Powrrr Play
on 4/1/14, 5:18 PM

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

Powrrr Play
on 4/1/14, 5:21 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 3/24/14, 8:05 PM
Seen: 1130 times
Last updated: 3/16/15, 8:10 AM