opt app_saas

This commit is contained in:
Ivan Office
2025-01-06 18:39:35 +08:00
parent a7c092a7db
commit a8a1f1602c
8 changed files with 121 additions and 62 deletions

View File

@@ -1,28 +1,48 @@
<?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="//setting[@id='odooai_cloud_saas_ok']" position="after">-->
<!-- <setting string="SaaS Chinese PO" help="Checked to Sync Odoo Chinese from www.odooapp.cn" id="module_app_cn_po">-->
<!-- <field name="module_app_cn_po"/>-->
<!-- <div class="content-group mt16" invisible="not module_app_cn_po" id="msg_module_app_cn_po">-->
<!-- <div class="mt16 text-warning">-->
<!-- <strong>Save</strong> to Install Chinese PO App if downloaded.-->
<!-- </div>-->
<!-- <div class="text-warning">-->
<!-- Or get the app from-->
<!-- <a href="https://www.odooapp.cn/apps/modules/app_cn_po" class="o_doc_link ml8"-->
<!-- target="_blank">https://www.odooapp.cn/apps/modules/app_cn_po-->
<!-- </a>-->
<!-- </div>-->
<!-- </div>-->
<!-- </setting>-->
<!-- </xpath>-->
<!-- </field>-->
<!-- </record>-->
<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[@id='odooai_cloud_saas_ok']" position="after">
<div class="col-lg-6 col-12 o_setting_box">
<div class="o_setting_left_pane">
<field name="module_app_cn_po"/>
</div>
<div class="o_setting_right_pane">
<label for="module_app_cn_po"/>
<div class="content-group" id="msg_module_app_cn_po">
<div class="mt16 text-warning">
<strong>Save</strong> to Install Chinese PO App if downloaded.
</div>
<div class="text-warning">
Or get the app from
<a href="https://www.odooapp.cn/apps/modules/app_cn_po" class="o_doc_link ml8"
target="_blank">https://www.odooapp.cn/apps/modules/app_cn_po
</a>
</div>
</div>
</div>
</div>
<div class="col-lg-6 col-12 o_setting_box" id="set_app_saas_db_token">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<label for="app_saas_db_token"/>
<field name="app_saas_db_token" style="width:100%!important"/>
<div class="content-group">
<div class="text-warning">
The odooapp SaaS Token. You can get it after first time Login via Ai Passport of odooapp.cn. Also you can set from
<a href="https://www.odooapp.cn/my/" class="o_doc_link ml8"
target="_blank">https://www.odooapp.cn/my/
</a>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</data>
</odoo>