From fc346816e370b7ea5d90b0eed3a8ecd215cd002f Mon Sep 17 00:00:00 2001 From: Anna Janiszewska Date: Sun, 30 Apr 2023 12:38:28 +0200 Subject: [PATCH] fixup! [ADD] pingen_env --- pingen_env/models/res_company.py | 8 +++++++- pingen_env/views/base_config_views.xml | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pingen_env/models/res_company.py b/pingen_env/models/res_company.py index 64c238545d7..a991604480f 100644 --- a/pingen_env/models/res_company.py +++ b/pingen_env/models/res_company.py @@ -30,7 +30,13 @@ def _compute_pingen_env(self): global_section_name = "pingen" for company in self: # default vals - config_vals = {} + config_vals = { + "pingen_clientid": "", + "pingen_client_secretid": "", + "pingen_organization": "", + "pingen_staging":False, + "pingen_webhook_secret": "", + } if serv_config.has_section(global_section_name): config_vals.update(serv_config.items(global_section_name)) custom_section_name = global_section_name + "." + company.name diff --git a/pingen_env/views/base_config_views.xml b/pingen_env/views/base_config_views.xml index 42762d2296b..22909877522 100644 --- a/pingen_env/views/base_config_views.xml +++ b/pingen_env/views/base_config_views.xml @@ -1,8 +1,8 @@ - - base.config.settings - + + res.config.settings +