I have looked at examples of checking if a user belongs to a certain group:
def check_group(self):
if self.user_has_groups('group_here'):
self.flag = True
else:
self.flag = False
However, when I tested this, it checks the groups of the current logged in user and not the user i am viewing as administrator. How do you get the user being looked at? Sorry I am very new to python and odoo so need all the help.