2018-01-16 06:58:15 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-01-16 11:34:37 +01:00
|
|
|
<flectra>
|
2018-01-16 06:58:15 +01:00
|
|
|
<record id="res_config_settings_view_form" model="ir.ui.view">
|
|
|
|
<field name="name">res.config.settings.view.form.inherit.google.calendar</field>
|
|
|
|
<field name="model">res.config.settings</field>
|
|
|
|
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<div id="msg_module_google_calendar" position="replace">
|
|
|
|
<div class="content-group" attrs="{'invisible': [('module_google_calendar','=',False)]}">
|
|
|
|
<div class="mt16 row">
|
|
|
|
<label for="cal_client_id" string="Client ID" class="col-xs-3 col-md-3 o_light_label"/>
|
|
|
|
<field name="cal_client_id" nolabel="1"/>
|
|
|
|
<label for="cal_client_secret" string="Client Secret" class="col-xs-3 col-md-3 o_light_label"/>
|
|
|
|
<field name="cal_client_secret" password="True" nolabel="1"/>
|
|
|
|
</div>
|
2018-01-16 11:34:37 +01:00
|
|
|
<a href="https://www.flectra.com/documentation/user/online/crm/calendar/google_calendar_credentials.html" class="oe-link" target="_blank"><i class="fa fa-fw fa-arrow-right"/>Tutorial</a>
|
2018-01-16 06:58:15 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_config_settings_google_calendar" model="ir.actions.act_window">
|
|
|
|
<field name="name">Settings</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>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<menuitem id="menu_calendar_google_tech_config"
|
|
|
|
name="API Credentials"
|
|
|
|
parent="calendar.menu_calendar_configuration"
|
|
|
|
groups="base.group_no_one"
|
|
|
|
action="action_config_settings_google_calendar"/>
|
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
</flectra>
|