flectra/addons/google_calendar/views/res_config_settings_views.xml

38 lines
2.0 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-01-16 11:34:37 +01:00
<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://userdoc.flectrahq.com/crm/optimize/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>
2018-07-13 11:21:38 +02:00
<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"/>
2018-01-16 11:34:37 +01:00
</flectra>