Odoo : get only internal users

Jeevachaithanyan Sivanandan - Jan 5 - - Dev Community

If you need to get a list of users who are only internal users then use the below code

  internal_users= fields.Many2one(
        'res.users',
        string='Internal Users',
        domain="[('share','=',False)]",   
    )
Enter fullscreen mode Exit fullscreen mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .