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)
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
0
Apr 26
|
20 | |||
|
1
Des 24
|
5782 | |||
|
1
Feb 16
|
5338 | |||
|
Menu Item not Appering and No Result of Code..
Diselesaikan
|
1
Mar 15
|
6914 | ||
|
0
Mar 15
|
4582 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.