We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 828c8f6 + 08a9302 commit 3a889afCopy full SHA for 3a889af
1 file changed
glodo_client/controllers/main.py
@@ -124,6 +124,11 @@ def _get_database_info(self, db_name: str) -> dict:
124
]
125
)
126
127
+ # Enterprise subscription metadata, when present.
128
+ ICP = env["ir.config_parameter"].sudo()
129
+ expiration_date = ICP.get_param("database.expiration_date")
130
+ expiration_reason = ICP.get_param("database.expiration_reason")
131
+
132
# Get installed modules
133
modules = env["ir.module.module"].search([("state", "=", "installed")])
134
module_list = [
@@ -137,6 +142,8 @@ def _get_database_info(self, db_name: str) -> dict:
137
142
db_info = {
138
143
"name": db_name,
139
144
"user_count": user_count,
145
+ "expiration_date": expiration_date or None,
146
+ "expiration_reason": expiration_reason or None,
140
147
"installed_modules": module_list,
141
148
"cloc": {},
149
}
0 commit comments