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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
2
Replies
3230
Views
You can got it as below:
self.env.user.email
or
self.env.user.email_formatted
It worked thank you
You can upvote for the answer.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Apr 15
|
2947 | ||
|
1
Mar 15
|
6467 | ||
|
0
Jun 20
|
2088 | ||
|
1
Mar 24
|
583 | ||
|
2
Jul 23
|
4979 |