How can I get the id of user with which he entered the system by python code.
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
3794
Views
try this In new api:
print self._uid
try this in old api:
users = self.pool.get('res.users')
current_user = users.browse(cr, uid, uid, context=context).id
print current_user
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
Did u mean current user id ?