1 <?xml version="1.0" encoding="utf-8"?>
5 <record id="view_calendar_config_settings" model="ir.ui.view">
6 <field name="name">Calendar_settings_grgrgrgt</field>
7 <field name="model">base.config.settings</field>
8 <field name="inherit_id" ref="base_setup.view_general_configuration"/>
9 <field name="arch" type="xml">
10 <div name="google_calendar" position="replace">
13 <label for="google_cal_sync"/>
14 <field name="google_cal_sync" class="oe_inline"/>
16 <div attrs="{'invisible':[('google_cal_sync','=',False)]}">
17 <br/><h2>To setup the signin process with Google, first you have to perform the following steps</h2>
19 <li> Connect on your google account and go to <a href='https://cloud.google.com/console' target='_blank'>https://cloud.google.com/console</a> </li>
21 Click on <b>"Create Project"</b> and enter a project name and change your id if you want. Don't forget to accept the Terms of Services
22 <br/><br/><img src='/google_calendar/static/src/img/setup_01.png' class='calendar_img_tuto'/>
23 <br/><img src='/google_calendar/static/src/img/setup_02.png' class='calendar_img_tuto'/>
25 <li> In the menu on left side, select the sub menu APIs (from menu APIs and auth) and activate <b>"Calendar API"</b> by clicking on button "OFF".
26 <br/> You will need to accept again the "Google APIs Terms of services" and "Calendar API Terms of service"
27 <br/> When it's done, check that the button of <b>"Calendar API"</b> is well in green and with text "ON"
28 <br/><br/> <img src='/google_calendar/static/src/img/setup_03.png' class='calendar_img_tuto'/>
29 <br/> <img src='/google_calendar/static/src/img/setup_04.png' class='calendar_img_tuto'/>
30 <br/> <img src='/google_calendar/static/src/img/setup_05.png' class='calendar_img_tuto'/>
33 In the menu on left side, select the sub menu <b>'Credentials'</b> (from menu APIs and auth) and click on button <b>'Create New Client ID'</b>
34 <br/><br/> <img src='/google_calendar/static/src/img/setup_06.png' class='calendar_img_tuto'/>
36 <li> Fill in the Name of application and check that the platform is well on <b>'Web Application'</b>.<br/>
37 <br/> You should now configure the allowed pages on which you will be redirected. To do it, you need to complete the field <b>"Redirect RI"</b>
38 and set as value (your own domain followed by <i>"/google_account/authentication"</i>) :
39 <br/>==> <b><field name="server_uri" readonly="1" style='display:inline'/></b>
40 <br/> You can now click on <b>'Create Client ID'</b>
41 <br/><br/> <img src='/google_calendar/static/src/img/setup_07.png' class='calendar_img_tuto'/>
43 <li>Once done, you will have the both informations (<b>Client ID</b> and <b>Client Secret</b>) that you need to insert in the 2 fields below !
44 <br/><br/> <img src='/google_calendar/static/src/img/setup_08.png' class='calendar_img_tuto'/>
47 Remark : You can, if you want, personalize the consent screen that your users will see by clicking on <b>"Consent Screen"</b> in the left menu.
48 <br/><br/> <img src='/google_calendar/static/src/img/setup_09.png' class='calendar_img_tuto'/>
50 <a href="#" class="oe_link">Return at Top</a>
58 <div class="calendar_settings">
59 <label for="cal_client_id" string="Google Client ID" />
60 <field name="cal_client_id" class="oe_inline" />
65 <label for="cal_client_secret" string="Google Client Secret"/>
66 <field name="cal_client_secret" class="oe_inline" password="True"/>
76 <record id="action_config_settings_google_calendar" model="ir.actions.act_window">
77 <field name="name">API Configuration</field>
78 <field name="type">ir.actions.act_window</field>
79 <field name="res_model">base.config.settings</field>
80 <field name="view_mode">form</field>
81 <field name="target">inline</field>
84 <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"/>