mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
app_saas处理client sec,有push就设置值,因为有可能是clone库
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
{
|
||||
'name': 'odooapp.cn SaaS Client-Ai Passport.Odoo中文应用商店SaaS云服务客户端',
|
||||
'version': '16.0.25.01.23',
|
||||
'version': '16.0.25.01.26',
|
||||
'author': 'odooai.cn',
|
||||
'category': 'Base',
|
||||
'website': 'https://www.odooai.cn',
|
||||
|
||||
@@ -48,7 +48,7 @@ class ResUsers(models.Model):
|
||||
if push_client_secret:
|
||||
ICP = self.env['ir.config_parameter'].sudo()
|
||||
ICP.set_param('app_saas_db_token', push_client_secret)
|
||||
if hasattr(oauth_provider, 'client_secret') and not oauth_provider.client_secret:
|
||||
if hasattr(oauth_provider, 'client_secret'):
|
||||
oauth_provider.write({'client_secret': push_client_secret})
|
||||
self._cr.commit()
|
||||
return ret
|
||||
|
||||
Reference in New Issue
Block a user