From bdc602a68659976c2406875904323394ee1dd016 Mon Sep 17 00:00:00 2001 From: Alaguraj0361 Date: Sat, 11 Apr 2026 16:04:47 +0530 Subject: [PATCH] add user role debugging script and update docker-compose container names and backup documentation --- check_users.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 check_users.py 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]}")