odoo get logged in user id code example
Example 1: odoo wizard current user login
current_user = fields.Many2one('res.users','Current User', default=lambda self: self.env.user)
Example 2: odoo wizard current user login
_defaults={'current_uid':lambda self, cr, uid, ctx=None: uid}