How can I set a default user as the current user in new API,
in the V7 :
'user_id': lambda obj, cr, uid, context: uid,
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
How can I set a default user as the current user in new API,
in the V7 :
'user_id': lambda obj, cr, uid, context: uid,
Hello,
You can try this one
user_id = fields.Many2one('res.users', string='My User',default=lambda self: self.env.user) 
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|  | 1 दिस॰ 24  | 4763 | ||
|  | 1 फ़र॰ 16  | 4369 | ||
|  | 1 मार्च 15  | 5831 | ||
|  | 0 मार्च 15  | 3761 | ||
|  | 1 मार्च 15  | 6284 |