38 lines
2.0 KiB
XML
38 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<flectra>
|
|
<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>
|
|
<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>
|
|
</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="context">{'module' : 'general_settings'}</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"/>
|
|
|
|
</flectra>
|