增加云客户端

This commit is contained in:
Ivan Office
2024-11-08 18:41:02 +08:00
parent be545f3db7
commit 9041a4d74a
38 changed files with 679 additions and 26 deletions

View File

@@ -39,7 +39,7 @@
{
'name': "odooAi Common Util and Tools,欧度智能基础功能及面板",
'version': '24.10.31',
'version': '24.11.08',
'author': 'odooai.cn',
'category': 'Base',
'website': 'https://www.odooai.cn',

View File

@@ -4,10 +4,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0-20241031\n"
"Project-Id-Version: Odoo Server 18.0+e-20241031\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-31 11:14+0000\n"
"PO-Revision-Date: 2024-10-31 11:14+0000\n"
"POT-Creation-Date: 2024-11-08 10:17+0000\n"
"PO-Revision-Date: 2024-11-08 10:17+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -27,23 +27,54 @@ msgstr "================= 忽略不发送的Email: %s"
msgid "Base"
msgstr "基础"
#. module: app_common
#: model_terms:ir.ui.view,arch_db:app_common.app_res_config_settings_view_form
msgid "Checked and Save to Enable odoo China cloud service."
msgstr "勾选并保存即可启用Odoo中文应用商店云服务"
#. module: app_common
#: model:ir.model.fields,help:app_common.field_res_config_settings__app_saas_ok
msgid "Checked to Enable www.odooapp.cn cloud service."
msgstr "勾选后启用Odoo中文应用商店云服务"
#. module: app_common
#: model:ir.model,name:app_common.model_res_config_settings
msgid "Config Settings"
msgstr "设置"
#. module: app_common
#: model:ir.model,name:app_common.model_res_partner
msgid "Contact"
msgstr "联系人"
#. module: app_common
#: model_terms:ir.ui.view,arch_db:app_common.app_res_config_settings_view_form
msgid ""
"Easy Get Odoo Chinese App, Theme, and industry solution. You can get the "
"SaaS client from<br/>"
msgstr ""
"您可快速获取Odoo中文应用模块主题行业应用方案等。"
"SaaS云客户端在此免费下载<br/>"
#. module: app_common
#. odoo-python
#: code:addons/app_common/models/ir_mail_server.py:0
msgid "Email to ignore: %s"
msgstr "忽略的Email: %s"
#. module: app_common
#: model:ir.model.fields,field_description:app_common.field_res_config_settings__app_saas_ok
#: model_terms:ir.ui.view,arch_db:app_common.app_res_config_settings_view_form
msgid "Enable CN SaaS"
msgstr "启用Odoo中文云服务"
#. module: app_common
#: model_terms:ir.ui.view,arch_db:app_common.app_res_config_settings_view_form
msgid ""
"Get the Industry Apps, Themes and Support from China odooapp store.\n"
" https://www.odooapp.cn"
msgstr "获取Odoo行业应用模块主题。请访问Odoo中国应用商店\n"
msgstr ""
"获取Odoo行业应用模块主题。请访问Odoo中国应用商店\n"
" https://www.odooapp.cn"
#. module: app_common
@@ -56,11 +87,6 @@ msgstr "HTTP 路由"
msgid "Last Trigger User"
msgstr "手动运行用户"
#. module: app_common
#: model:ir.model.fields,field_description:app_common.field_res_users__login
msgid "Login"
msgstr "登录"
#. module: app_common
#: model:ir.model,name:app_common.model_ir_mail_server
msgid "Mail Server"
@@ -81,6 +107,11 @@ msgstr "安排的动作"
msgid "Setup the communication to odooAi Cloud"
msgstr "设置云面板"
#. module: app_common
#: model:ir.model.fields,help:app_common.field_res_users__login
msgid "Used to log into the system"
msgstr "用于用户登录系统"
#. module: app_common
#: model_terms:ir.ui.view,arch_db:app_common.app_res_config_settings_view_form
msgid ""
@@ -90,6 +121,11 @@ msgstr ""
"欢迎访问欧度智能官方网站获取Odoo企业级运营支持。\n"
"\t\t\t\t\t\t\t\t\t\t\t\t\t https://www.odooai.cn"
#. module: app_common
#: model_terms:ir.ui.view,arch_db:app_common.app_res_config_settings_view_form
msgid "https://www.odooapp.cn/apps/modules/app_saas"
msgstr "https://www.odooapp.cn/apps/modules/app_saas"
#. module: app_common
#: model:ir.actions.act_window,name:app_common.action_odooai_cloud_config
#: model_terms:ir.ui.view,arch_db:app_common.app_res_config_settings_view_form

View File

@@ -25,12 +25,12 @@
from . import base
from . import ir_ui_view
from . import ir_cron
from . import res_users
from . import ir_mail_server
from . import mail_mail
from . import ir_http
from . import app_import
from . import res_partner
from . import res_config_settings

View File

@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
import logging
from odoo import api, fields, models, _
from odoo.exceptions import UserError, ValidationError
_logger = logging.getLogger(__name__)
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')

View File

@@ -1,10 +0,0 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models, tools, _
class ResUsers(models.Model):
_inherit = 'res.users'
login = fields.Char(index=True)

View File

@@ -26,16 +26,30 @@
</div>
</div>
<block title="odooAi Cloud" class="mt16" name="odooai_cloud_block">
<setting title="Setup the communication to odooAi Cloud" string="Setup the communication to odooAi Cloud">
<setting id="odooai_cloud_block_title" title="Setup the communication to odooAi Cloud" string="Setup the communication to odooAi Cloud">
<div name="app_odooapp_link">
<a href="https://www.odooapp.cn" target="_blank">Get the Industry Apps, Themes and Support from China odooapp store.
https://www.odooapp.cn
</a>
</div>
</setting>
<setting id="odooai_cloud_saas_ok" string="Enable CN SaaS" documentation="https://www.odooapp.cn/faq">
<field name="app_saas_ok"/>
<div class="content-group">
<div>
<p class="text-warning">Checked and Save to Enable odoo China cloud service.</p>
<p class="ml4">
Easy Get Odoo Chinese App, Theme, and industry solution. You can get the SaaS client from<br/>
<a href="https://www.odooapp.cn/apps/modules/app_saas" class="o_doc_link ml8"
target="_blank">https://www.odooapp.cn/apps/modules/app_saas
</a>
</p>
</div>
</div>
</setting>
</block>
<div id="app_slot2" class="o_hidden"></div>
</app>
</app>
</xpath>
</field>
</record>