Hi,
I'm trying to get the mail address from the object "user_id" in Odoo V12 inside the HelpDesk section - unfortunately without success.
My object:
field: user_id
object: helpdesk.ticket
type: many2one
domain: [["groups_id,"in",<int>]]
by changes 1
relation: res.users
I need the mail address from the user which you can see as highlighted in this screenshot:
https://imgur.com/g1aSDQu
(sorry don't know how or if its possible anyway to embed images)
I have tried to get the mail address with this kind of parameter:
${object.user_id.email}
Can anybody please help me?
Thanks.
EDIT:
I have found that ${object.user_id.email} is "working" as it should, but I'm facing the issue, that it's not happening within the context by which actual ticket the automated task is triggered.
So in detail it's not defined which ticket should be used and therefore just always the first ticket which suits the requirements is used.
Can may someone explain me how to pass this kind of context data to the automated task which is triggering the mail?