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,
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!
साइन अप करें| Related Posts | Replies | डेटा देखने का तरीका | ऐक्टिविटी | |
|---|---|---|---|---|
|
0
अप्रैल 26
|
20 | |||
|
1
दिस॰ 24
|
6087 | |||
|
1
फ़र॰ 16
|
5643 | |||
|
1
मार्च 15
|
7321 | |||
|
0
मार्च 15
|
4863 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.