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