From 4a2e7b70169e42d57d9728ef847b8fd530551485 Mon Sep 17 00:00:00 2001 From: metatroncubeswdev Date: Fri, 11 Sep 2026 11:25:37 -0400 Subject: [PATCH] fix: admin group membership on install, and db_name breaking the db list - group_school_administrator now includes base.user_admin, matching core Odoo's own convention (see hr.group_hr_manager) - otherwise every fresh install requires a manual trip to Settings > Users just to see this module's own menus. - odoo.conf: drop db_name. Found by hand while testing: when db_name is set and dbfilter is not, Odoo's list_dbs() returns db_name's value verbatim instead of querying postgres, so the database selector shows only that one database no matter how many actually exist. Silently breaks O9's "swap to the second demo school in under five minutes" requirement, which depends on switching between multiple real databases. Co-Authored-By: Claude Sonnet 5 --- addons/mc_education_base/security/mc_education_security.xml | 5 +++++ odoo.conf | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/addons/mc_education_base/security/mc_education_security.xml b/addons/mc_education_base/security/mc_education_security.xml index a91f7eb..2a6a5b8 100644 --- a/addons/mc_education_base/security/mc_education_security.xml +++ b/addons/mc_education_base/security/mc_education_security.xml @@ -39,6 +39,11 @@ Full read/write on the academic structure: years, terms, programs, batches. + + diff --git a/odoo.conf b/odoo.conf index f828c1b..3442cd8 100644 --- a/odoo.conf +++ b/odoo.conf @@ -5,6 +5,10 @@ db_host = db db_port = 5432 db_user = odoo db_password = changeme_db_2026 -db_name = school proxy_mode = False list_db = True +# Deliberately no db_name here: when db_name is set and dbfilter is not, +# Odoo's list_dbs() returns db_name's value verbatim instead of querying +# postgres - the database selector then shows only that one name no +# matter how many databases actually exist. O9's "swap to the second +# demo school in under five minutes" needs the real list.