mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
opt app_common 及app_saas 相关,但没检查
This commit is contained in:
75
app_common/views/res_config_settings_views.xml
Normal file
75
app_common/views/res_config_settings_views.xml
Normal file
@@ -0,0 +1,75 @@
|
||||
<?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">
|
||||
<!-- 以下有些设置主要是为了兼容18-->
|
||||
<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 id="app_slot1" class="o_hidden"></div>
|
||||
<div id="app_odooai_banner" 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>
|
||||
<h2>Setup the communication to odooAi Cloud</h2>
|
||||
<div class="row mt16 o_settings_container" name="odooai_cloud_block">
|
||||
<setting id="odooai_cloud_block_title" class="mt16 o_settings_container"
|
||||
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>
|
||||
<div class="col-lg-6 col-12 o_setting_box" id="odooai_cloud_saas_ok">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="app_saas_ok"/>
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="app_slot2" class="o_hidden"></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>
|
||||
Reference in New Issue
Block a user