Skip to content

Commit

Permalink
fixup! [ADD] pingen_env
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaniszewska-dev committed Oct 9, 2023
1 parent 5f19f2f commit fc34681
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion pingen_env/models/res_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions pingen_env/views/base_config_views.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record model="ir.ui.view" id="base_config_settings_inherit">
<field name="model">base.config.settings</field>
<field name="inherit_id" ref="pingen.base_config_settings_inherit" />
<record model="ir.ui.view" id="res_config_settings_view_form">
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="pingen.res_config_settings_view_form" />
<field name="arch" type="xml">
<field name="pingen_clientid" position="attributes">
<attribute name="attrs" eval="False" />
Expand Down

0 comments on commit fc34681

Please sign in to comment.