You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
3.0 KiB
60 lines
3.0 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- SetupToken view on settings -->
|
|
<record id="res_config_settings_view_form" model="ir.ui.view">
|
|
<field name="name">
|
|
res.config.settings.view.form.inherit.onedrive.integration.odoo
|
|
</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[@name='integration']" position="inside">
|
|
<div class="col-12 col-lg-6 o_setting_box" id="onedrive">
|
|
<div class="o_setting_left_pane">
|
|
<!-- Microsoft One Drive button -->
|
|
<field name="is_onedrive_integration"
|
|
string="Microsoft One Drive"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="is_onedrive_integration"/>
|
|
<div class="text-muted">
|
|
<!-- Synchronize with OneDrive -->
|
|
Synchronize with OneDrive
|
|
</div>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<span attrs="{'invisible': [('is_onedrive_integration', '=', False)]}">
|
|
<!-- Client ID -->
|
|
Client ID:
|
|
<field name="onedrive_client"
|
|
attrs="{'invisible': [('is_onedrive_integration', '=', False)]}"/>
|
|
</span>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<span attrs="{'invisible': [('is_onedrive_integration', '=', False)]}">
|
|
<!-- Client Secret -->
|
|
Client Secret:
|
|
<field name="onedrive_client_secret"
|
|
password="True"
|
|
attrs="{'invisible': [('is_onedrive_integration', '=', False)]}"/>
|
|
</span>
|
|
</div>
|
|
<button class="o_setting_right_pane btn btn-link"
|
|
name="action_get_onedrive_auth_code" type="object"
|
|
attrs="{'invisible': [('is_onedrive_integration', '=', False)]}">
|
|
<!-- Setup Token button -->
|
|
<i class="fa fa-arrow-right"/>Setup Token
|
|
</button>
|
|
<div class="o_setting_right_pane">
|
|
<span attrs="{'invisible': [('is_onedrive_integration', '=', False)]}">
|
|
<!-- Folder ID -->
|
|
Folder ID:
|
|
<field name="onedrive_folder"
|
|
attrs="{'invisible': [('is_onedrive_integration', '=', False)]}"/>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|