app_saas处理client sec,有push就设置值,因为有可能是clone库

This commit is contained in:
Ivan Office
2025-01-26 00:13:57 +08:00
parent 4d2c1c66d4
commit 646f7353a1
2 changed files with 2 additions and 2 deletions

View File

@@ -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',

View File

@@ -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