mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
opt app saas
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
{
|
||||
'name': 'odooapp.cn SaaS Client-Ai Passport.Odoo中文应用商店SaaS云服务客户端',
|
||||
'version': '18.0.25.01.26',
|
||||
'version': '18.0.25.02.11',
|
||||
'author': 'odooai.cn',
|
||||
'category': 'Base',
|
||||
'website': 'https://www.odooai.cn',
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 18.0+e-20241031\n"
|
||||
"Project-Id-Version: Odoo Server 16.0+e-20241226\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2024-11-08 10:21+0000\n"
|
||||
"PO-Revision-Date: 2024-11-08 10:21+0000\n"
|
||||
"POT-Creation-Date: 2025-01-06 10:11+0000\n"
|
||||
"PO-Revision-Date: 2025-01-06 10:11+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
||||
@@ -10,7 +10,7 @@ class IrConfigParameter(models.Model):
|
||||
def init(self, force=False):
|
||||
super(IrConfigParameter, self).init(force=force)
|
||||
if force:
|
||||
oauth_app_saas = self.env.ref('app_saas.ir_config_parameter.py')
|
||||
oauth_app_saas = self.env.ref('app_saas.provider_app_saas')
|
||||
if not oauth_app_saas:
|
||||
return
|
||||
dbuuid = self.sudo().get_param('database.uuid')
|
||||
|
||||
@@ -14,4 +14,3 @@ class ResConfigSettings(models.TransientModel):
|
||||
module_app_cn_po = fields.Boolean('SaaS Chinese PO', help="Checked to Sync Odoo Chinese from www.odooapp.cn")
|
||||
app_saas_db_token = fields.Char('Cloud DB Token', default=None, config_parameter='app_saas_db_token',
|
||||
help="The odooapp SaaS Token for this Odoo Database. You can reset in https://www.odooapp.cn")
|
||||
|
||||
@@ -9,18 +9,19 @@ try:
|
||||
except:
|
||||
from urllib import request as urllib2
|
||||
|
||||
|
||||
|
||||
from odoo import api, fields, models, _
|
||||
import requests
|
||||
|
||||
import logging
|
||||
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class OauthBindError(Exception):
|
||||
# 增加一种错误类型
|
||||
pass
|
||||
|
||||
|
||||
class ResUsers(models.Model):
|
||||
_inherit = 'res.users'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user