mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
prepare #IBCH86【以16当前的为基准】app_module_value优化提交至云端ai_chat并处理为odoo10版本
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user