update 更新云面板

This commit is contained in:
Ivan Office
2024-11-08 20:22:59 +08:00
parent 260b181109
commit dd021071cf
16 changed files with 305 additions and 279 deletions

View File

@@ -2,7 +2,6 @@
from . import controllers
from . import models
from . import wizard
from .hooks import pre_init_hook
from .hooks import post_init_hook
from .hooks import uninstall_hook

View File

@@ -38,8 +38,8 @@
##############################################################################
{
'name': "odooAi Common Util and Tools,欧度智能基础核心优化",
'version': '16.24.10.09',
'name': "odooAi Common Util and Tools,欧度智能基础功能及面板",
'version': '16.24.11.08',
'author': 'odooai.cn',
'category': 'Extra tools',
'website': 'https://www.odooai.cn',
@@ -51,7 +51,7 @@
'images': ['static/description/banner.png'],
'summary': '''
Core for common use for odooai.cn apps.
基础核心必须没有要被依赖字段及视图等实现auto_install
基础核心及云面板必须没有要被依赖字段及视图等实现auto_install
''',
'description': '''
need to setup odoo.conf, add follow:
@@ -66,8 +66,8 @@
8. Boost for less no use mail
9. Customize .rng file
10. Misc like get distance between two points
11. Multi-language Support. Multi-Company Support
12. Support Odoo 17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition.
11. Multi-language Support. Multi-Company Support.
12. Support Odoo 18,17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition.
13. Full Open Source.
==========
1.
@@ -78,11 +78,12 @@
''',
'depends': [
'mail',
'base_setup',
'web',
],
'data': [
'views/res_config_settings_views.xml',
'views/ir_cron_views.xml',
'wizard/mail_compose_message_views.xml',
# 'report/.xml',
],
'qweb': [

View File

@@ -4,10 +4,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0-20231112\n"
"Project-Id-Version: Odoo Server 16.0+e-20231112\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-08 14:55+0000\n"
"PO-Revision-Date: 2024-08-08 14:55+0000\n"
"POT-Creation-Date: 2024-11-08 11:54+0000\n"
"PO-Revision-Date: 2024-11-08 11:54+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -28,16 +28,21 @@ msgstr "=================被忽略的邮箱: %s"
msgid "Base"
msgstr "基础"
#. 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:ir.model,name:app_common.model_mail_compose_message
msgid "Email composition wizard"
msgstr "EMail撰写向导"
#. module: app_common
#. odoo-python
#: code:addons/app_common/models/ir_mail_server.py:0
@@ -45,6 +50,11 @@ msgstr "EMail撰写向导"
msgid "Email to ignore: %s"
msgstr "忽略的邮箱: %s"
#. module: app_common
#: model:ir.model.fields,field_description:app_common.field_res_config_settings__app_saas_ok
msgid "Enable CN SaaS"
msgstr "启用Odoo中文云服务"
#. module: app_common
#: model:ir.model,name:app_common.model_ir_http
msgid "HTTP Routing"
@@ -55,11 +65,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"
@@ -75,16 +80,6 @@ msgstr "发出邮件"
msgid "Scheduled Actions"
msgstr "安排的动作"
#. module: app_common
#: model_terms:ir.ui.view,arch_db:app_common.app_mail_compose_message_form
msgid "Send Without Mail"
msgstr "仅改状态不发邮"
#. module: app_common
#: model:ir.model.fields,field_description:app_common.field_mail_compose_message__show_send_without_mail
msgid "Show Send Only"
msgstr "显示只改状态"
#. module: app_common
#. odoo-python
#: code:addons/app_common/wizard/mail_compose_message.py:0
@@ -92,21 +87,20 @@ msgstr "显示只改状态"
msgid "This only available in Sale Order or Purchase Order"
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:ir.model,name:app_common.model_res_users
msgid "User"
msgstr "用户"
#. module: app_common
#: model:ir.model,name:app_common.model_ir_ui_view
msgid "View"
msgstr "查看"
#. module: app_common
#: model_terms:ir.ui.view,arch_db:app_common.app_res_config_settings_view_form
msgid ""
"Visit our website for more apps and Support.\n"
"\t\t\t\t\t\t\t\t\t\t\t\t\thttps://www.odooai.cn"
msgstr ""
"欢迎访问欧度智能官方网站获取Odoo企业级运营支持。\n"
"\t\t\t\t\t\t\t\t\t\t\t\t\t https://www.odooai.cn"
#. module: app_common
#. odoo-python
#: code:addons/app_common/models/ir_ui_view.py:0
@@ -114,6 +108,10 @@ msgstr "查看"
msgid ""
"You can Ignore this. Failed to load RelaxNG XML schema for views validation,"
" file: %s"
msgstr ""
"此警告可忽略:载入文件失败 RelaxNG XML schema for views validation,"
" 文件名: %s"
msgstr "此警告可忽略:载入文件失败 RelaxNG XML schema for views validation, 文件名: %s"
#. 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
msgid "odooAi Cloud"
msgstr "欧度智能云"

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')

Binary file not shown.

Before

Width:  |  Height:  |  Size: 228 KiB

After

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@@ -4,7 +4,7 @@
<h2 class="oe_slogan">odooAi Common Util and Tools</h2>
<h3 class="oe_slogan"> Network and media and base tools </h3>
<div class="oe_row">
<h3>Latest update: v16.24.04.07</h3>
<h3>Lastest update: v17.24.04.29</h3>
<div class="row">
<img class="oe_demo oe_screenshot img img-fluid" style="max-height: 100%;" src="banner.png">
</div>
@@ -58,7 +58,7 @@
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
12. Support Odoo 17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition.
12. Support Odoo 18,17,16,15,14,13,12, Enterprise and Community and odoo.sh Edition.
</li>
<li>
<i class="fa fa-check-square-o text-primary"></i>
@@ -78,7 +78,7 @@
<section class="oe_container container">
<div class="oe_row oe_spaced">
<h2 class="bg-warning text-center pt8 pb8 mt16 mb16">Setup, please run the follow command to install the lib.</h2>
<h2 class="bg-warning text-center pt8 pb8">Setup, please run the follow command to install the lib.</h2>
<h4 class="oe_slogan"> pip install pyyaml ua-parser user-agents </h4>
<h4 class="oe_slogan"> After that, install the app_common </h4>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@@ -1,4 +1,3 @@
<?xml version="1.0"?>
<odoo>
<record id="app_ir_cron_view_tree" model="ir.ui.view">
<field name="name">app.ir.cron.tree</field>

View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="app_res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.app_common</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@data-key='general_settings']" position="before">
<div class="app_settings_block ml8" data-string="odoAi Cloud" string="odooAi Cloud" data-key="app_common"
logo="/app_common/static/description/odooai.png" groups="base.group_erp_manager">
<div class="row app_settings_header my-0 ms-0 mw-100 bg-warning bg-opacity-25" name="app_settings_header">
<div class="col-lg-12 col-md-12 ms-0 o_setting_box">
<div class="o_setting_right_pane border-start-0 ms-0 ps-0">
<div class="content-group">
<div class="row mt8">
<div name="app_odooai_link">
<a href="https://www.odooai.cn" target="_blank">Visit our website for more apps and Support.
https://www.odooai.cn
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
<record id="action_odooai_cloud_config" model="ir.actions.act_window">
<field name="name">odooAi Cloud</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.config.settings</field>
<field name="view_mode">form</field>
<field name="target">inline</field>
<field name="context">{'module' : 'app_common', 'bin_size': False}</field>
</record>
</data>
</odoo>

View File

@@ -23,7 +23,7 @@
{
'name': 'odoo Tweak,Ai Employee,Boost,Customize All in One. Customize,UI,Boost,Security,Data',
'version': '16.24.10.01',
'version': '16.24.11.08',
'author': 'odooai.cn',
'category': 'Extra Tools',
'website': 'https://www.odooai.cn',

View File

@@ -48,7 +48,7 @@
id="menu_app_theme_config"
parent="menu_app_group"
sequence="1"
action="action_app_theme_config"
action="app_common.action_odooai_cloud_config"
groups="base.group_system"/>
<menuitem
id="menu_ir_cron"

View File

@@ -7,25 +7,11 @@
<field name="priority">20</field>
<field name="inherit_id" ref="base.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@data-key='general_settings']" position="before">
<div class="app_settings_block ml8" data-string="app_odoo_customize" string="OEM &amp; Boost" data-key="app_odoo_customize">
<div class="row app_settings_header my-0 ms-0 mw-100 bg-warning bg-opacity-25" name="app_settings_header">
<div class="col-lg-12 col-md-12 ms-0 o_setting_box">
<div class="o_setting_right_pane border-start-0 ms-0 ps-0">
<div class="content-group">
<div class="row mt8">
<xpath expr="//div[@name='app_odooai_link']" position="before">
<label class="h2 bg-warning text-white" for="app_system_name"/>
<field name="app_system_name"/>
<div>
<a href="https://www.odooai.cn" target="_blank">Visit our website for more apps and Support.
https://www.odooai.cn
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</xpath>
<xpath expr="//div[@name='app_settings_header']" position="after">
<h2>Security and Boost</h2>
<div class="row mt16 o_settings_container" name="app_security_boost">
<group>
@@ -222,7 +208,6 @@
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
</div>
</div>
</div>
</xpath>
</field>
</record>
@@ -237,14 +222,5 @@
</div>
</field>
</record>
<record id="action_app_theme_config" model="ir.actions.act_window">
<field name="name">OEM and Boost</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.config.settings</field>
<field name="view_mode">form</field>
<field name="target">inline</field>
<field name="context">{'module' : 'app_odoo_customize', 'bin_size': False}</field>
</record>
</data>
</odoo>

View File

@@ -9,7 +9,7 @@
{
'name': '2023最新中国会计科目表.企业标准会计.Latest Chinese Accounting for odoo16',
'version': '16.24.11.04',
'version': '16.24.11.08',
'author': 'odooai.cn',
'category': 'Accounting/Localizations/Account Charts',
'website': 'https://www.odooai.cn',

View File

@@ -10,10 +10,8 @@
<xpath expr="//tree" position="attributes">
<attribute name="default_order">code</attribute>
</xpath>
<xpath expr="field[@name='account_type']" position="after">
<xpath expr="//field[@name='account_type']" position="after">
<field name="parent_id" optional="show"/>
<field name="group_id" optional="hide"/>
<field name="tag_ids" widget="many2many_tags" optional="show"/>
</xpath>
</field>
</record>
@@ -22,9 +20,8 @@
<field name="model">account.account</field>
<field name="inherit_id" ref="account.init_accounts_tree"/>
<field name="arch" type="xml">
<xpath expr="field[@name='account_type']" position="after">
<xpath expr="//field[@name='account_type']" position="after">
<field name="group_id"/>
<field name="tag_ids" widget="many2many_tags"/>
</xpath>
</field>
</record>