There are several ways to get this. One of the easiest solutions is to use compute field.
Example:
current_user_id = fields.Many2one('res.users', string='Current User', readonly=True, compute="_compute_current_user")
def _compute_current_user(self):
self.current_user_id = self.env.uid