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.
97 lines
5.1 KiB
97 lines
5.1 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Inherited the view of the res config settings to add the configuration needed for freshdesk connection-->
|
|
<record id="res_config_settings_view_form" model="ir.ui.view">
|
|
<field name="name">
|
|
res.config.settings.view.form.inherit.odoo.freshdesk.connector
|
|
</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[hasclass('settings')]" position="inside">
|
|
<div class="app_settings_block" data-string="Freshdesk"
|
|
string="Freshdesk" data-key="odoo_freshdesk">
|
|
<h2>Authentication</h2>
|
|
<div class="row mt16 o_settings_container">
|
|
<div class="col-12 col-lg-6 o_setting_box">
|
|
<div class="o_setting_left_pane"/>
|
|
<div class="o_setting_right_pane">
|
|
<span class="o_form_label">Domain</span>
|
|
<div class="text-muted content-group mt16">
|
|
<field name="domain"
|
|
class="text-center oe_inline"/>
|
|
</div>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<span class="o_form_label">API Key</span>
|
|
<div class="text-muted content-group mt16">
|
|
<field name="api_key"
|
|
class="text-center oe_inline"/>
|
|
</div>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<button class="btn btn-primary" type="object"
|
|
name="action_test_freshdesk_connection"
|
|
string="Test"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<h2>Configuration</h2>
|
|
<div class="row mt16 o_settings_container">
|
|
<div class="col-lg-6 o_setting_box">
|
|
<div class="o_setting_left_pane">
|
|
<field name="import_contacts"
|
|
widget="boolean_toggle"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="import_contacts"
|
|
string="Import Contacts"/>
|
|
<div class="text-muted">Make true if you want to
|
|
import contacts while executing the
|
|
operation.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-6 o_setting_box">
|
|
<div class="o_setting_left_pane">
|
|
<field name="import_tickets"
|
|
widget="boolean_toggle"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="import_tickets"
|
|
string="Import Tickets"/>
|
|
<div class="text-muted">Make true if you want to
|
|
import tickets while executing the
|
|
operation.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row mt16 o_settings_container">
|
|
<div class="col-lg-6 o_setting_box">
|
|
<div class="o_setting_left_pane">
|
|
<field name="export_tickets"
|
|
widget="boolean_toggle"/>
|
|
</div>
|
|
<div class="o_setting_right_pane">
|
|
<label for="export_tickets"
|
|
string="Export Tickets"/>
|
|
<div class="text-muted">Make true if you want to
|
|
export tickets while executing the
|
|
operation.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row mt16 o_settings_container">
|
|
<div class="col-lg-6 o_setting_box">
|
|
<button type="object" string="Execute Operation(s)"
|
|
name="action_execute_freshdesk_operation"
|
|
class="btn btn-primary"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|