prepare #IBCH86【以16当前的为基准】app_module_value优化提交至云端ai_chat并处理为odoo10版本

This commit is contained in:
Chill
2025-01-03 18:54:23 +08:00
parent a944611164
commit b61ac04149
7 changed files with 30 additions and 6 deletions

View File

@@ -12,4 +12,9 @@ class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
app_saas_ok = fields.Boolean('Enable CN SaaS', help="Checked to Enable www.odooapp.cn cloud service.", default=True, config_parameter='app_saas_ok')
app_saas_common_token = fields.Char('SaaS Common Token', config_parameter='app_saas_common_token')
def set_values(self):
res = super().set_values()
self.env['ir.config_parameter'].set_param('app_saas_common_token', self.app_saas_common_token)
return res