Skip to Content
Menu
This question has been flagged

I'm creating a module that needs to send an email to confirm some data, but I'm having problems trying to get the email of the user who is logged in, does anyone have any suggestions?

Avatar
Discard
Best Answer

You can got it as below:

self.env.user.email

or 

self.env.user.email_formatted


Avatar
Discard
Author Best Answer

It worked thank you

Avatar
Discard

You can upvote for the answer.

Related Posts Replies Views Activity
1
Apr 15
2947
1
Mar 15
6467
0
Jun 20
2088
1
Mar 24
583
2
Jul 23
4979