2013-12-11 16:38:49 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
<data >
2013-12-17 20:42:38 +00:00
<record id= "view_calendar_config_settings" model= "ir.ui.view" >
<field name= "name" > Calendar_settings_grgrgrgt</field>
<field name= "model" > base.config.settings</field>
<field name= "inherit_id" ref= "base_setup.view_general_configuration" />
2013-12-11 16:38:49 +00:00
<field name= "arch" type= "xml" >
2013-12-17 20:42:38 +00:00
<div name= "google_calendar" position= "replace" >
<div >
2013-12-12 11:05:50 +00:00
<div >
<label for= "google_cal_sync" />
<field name= "google_cal_sync" class= "oe_inline" />
<div >
<div attrs= "{'invisible':[('google_cal_sync','=',False)]}" >
<br /> <h2 > To setup the signin process with Google, first you have to perform the following steps</h2>
<ul >
2015-04-01 14:41:15 +00:00
<li > Connect on your google account and go to <a href= 'https://console.developers.google.com/' target= '_blank' > https://console.developers.google.com/</a> </li>
2013-12-12 11:05:50 +00:00
<li >
2015-04-01 14:41:15 +00:00
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
2013-12-17 20:42:38 +00:00
<br /> <br /> <img src= '/google_calendar/static/src/img/setup_01.png' class= 'calendar_img_tuto' />
2013-12-12 11:05:50 +00:00
<br /> <img src= '/google_calendar/static/src/img/setup_02.png' class= 'calendar_img_tuto' />
</li>
2015-04-01 14:41:15 +00:00
<li > In the menu on left side, select the sub menu APIs (from menu APIs and auth) and click on <b > 'Calendar API'</b> .
<br /> Activate the Calendar API by clicking on the blue button <b > 'Enable API'</b> .
<br /> When it's done, the Calendar API overview will be available
2013-12-17 20:42:38 +00:00
<br /> <br /> <img src= '/google_calendar/static/src/img/setup_03.png' class= 'calendar_img_tuto' />
2013-12-12 11:05:50 +00:00
<br /> <img src= '/google_calendar/static/src/img/setup_04.png' class= 'calendar_img_tuto' />
<br /> <img src= '/google_calendar/static/src/img/setup_05.png' class= 'calendar_img_tuto' />
</li>
<li >
2015-04-01 14:41:15 +00:00
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>
2013-12-17 20:42:38 +00:00
<br /> <br /> <img src= '/google_calendar/static/src/img/setup_06.png' class= 'calendar_img_tuto' />
2013-12-19 17:45:36 +00:00
</li>
2015-04-01 14:41:15 +00:00
<li > Check that the Application type is set on <b > 'Web Application'</b> , then click on <b > 'Configure consent screen'</b> .
<br /> Specify an email address and a product name, then save.
<br /> <br /> <img src= '/google_calendar/static/src/img/setup_07.png' class= 'calendar_img_tuto' />
<br /> <img src= '/google_calendar/static/src/img/setup_09.png' class= 'calendar_img_tuto' />
<br /> You should now configure the allowed pages on which you will be redirected. To do it, you need to complete the field <b > "Authorized redirect URI"</b>
and set as value (your own domain followed by <i > '/google_account/authentication'</i> ):
2013-12-17 20:42:38 +00:00
<br /> ==> <b > <field name= "server_uri" readonly= "1" style= 'display:inline' /> </b>
2013-12-19 17:45:36 +00:00
<br /> You can now click on <b > 'Create Client ID'</b>
2015-04-01 14:41:15 +00:00
<br /> <br /> <img src= '/google_calendar/static/src/img/setup_10.png' class= 'calendar_img_tuto' />
2014-11-21 15:23:00 +00:00
</li>
2015-04-01 14:41:15 +00:00
<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!
2013-12-17 20:42:38 +00:00
<br /> <br /> <img src= '/google_calendar/static/src/img/setup_08.png' class= 'calendar_img_tuto' />
2013-12-12 11:05:50 +00:00
</li>
2013-12-17 20:42:38 +00:00
<a href= "#" class= "oe_link" > Return at Top</a>
2013-12-12 11:05:50 +00:00
</ul>
2013-12-11 16:38:49 +00:00
</div>
</div>
2013-12-12 11:05:50 +00:00
</div>
2013-12-11 16:38:49 +00:00
<group >
2013-12-12 11:05:50 +00:00
<div class= "calendar_settings" >
2013-12-11 16:38:49 +00:00
<label for= "cal_client_id" string= "Google Client ID" />
2013-12-12 11:05:50 +00:00
<field name= "cal_client_id" class= "oe_inline" />
2013-12-11 16:38:49 +00:00
</div>
</group>
<group >
<div >
<label for= "cal_client_secret" string= "Google Client Secret" />
2013-12-12 11:05:50 +00:00
<field name= "cal_client_secret" class= "oe_inline" password= "True" />
2013-12-11 16:38:49 +00:00
</div>
</group>
2013-12-17 20:42:38 +00:00
</div>
</div>
2013-12-11 16:38:49 +00:00
</field>
</record>
2013-12-17 20:42:38 +00:00
2013-12-11 16:38:49 +00:00
2013-12-16 16:21:47 +00:00
<record id= "action_config_settings_google_calendar" model= "ir.actions.act_window" >
2013-12-17 13:42:07 +00:00
<field name= "name" > API Configuration</field>
2013-12-11 16:38:49 +00:00
<field name= "type" > ir.actions.act_window</field>
2013-12-17 20:42:38 +00:00
<field name= "res_model" > base.config.settings</field>
2013-12-11 16:38:49 +00:00
<field name= "view_mode" > form</field>
<field name= "target" > inline</field>
</record>
2014-01-13 17:41:57 +00:00
2013-12-19 14:47:39 +00:00
<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" />
2013-12-11 16:38:49 +00:00
</data>
</openerp>