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:
@@ -47,7 +47,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