diff --git a/check_users.py b/check_users.py new file mode 100644 index 0000000..1b0e33e --- /dev/null +++ b/check_users.py @@ -0,0 +1,4 @@ +users = env["res.users"].search([("restaurant_role", "!=", False)]) +for u in users: + print(f"DEBUG: User={u.name}, Role={u.restaurant_role}") + print(f"DEBUG: Groups={[g.full_name for g in u.groups_id if 'User types' in g.full_name or 'Restaurant' in g.full_name]}")