Forward-port of latest saas-3, up to revision 9455 (rev-id mat@openerp.com-2014051408...
[odoo/odoo.git] / addons / auth_oauth / res_config.xml
1 <?xml version="1.0"?>
2 <openerp>
3     <data>
4         <record model="ir.ui.view" id="view_general_configuration">
5             <field name="name">base.config.settings.oauth</field>
6             <field name="model">base.config.settings</field>
7             <field name="inherit_id" ref="base_setup.view_general_configuration"/>
8             <field name="arch" type="xml">
9                 <xpath expr="//field[@name='module_auth_oauth']/.." position="after">
10                     <div attrs="{'invisible':[('module_auth_oauth','=',False)]}">
11                         <div name="google">
12                             <div>
13                                 <field name="auth_oauth_google_enabled" class="oe_inline"/>
14                                 <label for="auth_oauth_google_enabled"/>
15                             </div>
16                             <div attrs="{'invisible':[('auth_oauth_google_enabled','=',False)]}">
17                                 <blockquote>
18                                     To setup the signin process with Google, first you have to perform the following steps:<br/>
19                                     <br/>
20                                     - Go to the <a href="https://code.google.com/apis/console/">Google APIs console</a><br/>
21                                     - Ceate a new project<br/>
22                                     - Go to Api Access<br/>
23                                     - Create an oauth client_id<br/>
24                                     - Edit settings and set both Authorized Redirect URIs and Authorized JavaScript Origins to your hostname.<br/>
25                                     <br/>
26                                     Now copy paste the client_id here: <field name="auth_oauth_google_client_id" class="oe_inline" placeholder="e.g. 1234-xyz.apps.googleusercontent.com"/>
27                                 </blockquote>
28                             </div>
29                         </div>
30                         <div name="facebook">
31                             <div>
32                                 <field name="auth_oauth_facebook_enabled" class="oe_inline"/>
33                                 <label for="auth_oauth_facebook_enabled"/>
34                             </div>
35                             <div attrs="{'invisible':[('auth_oauth_facebook_enabled','=',False)]}">
36                                 <blockquote>
37                                     To setup the signin process with Google, first you have to perform the following steps:<br/>
38                                     <br/>
39                                     Now copy paste the client_id here: <field name="auth_oauth_facebook_client_id" class="oe_inline" placeholder="e.g. 1234-xyz.apps.googleusercontent.com"/>
40                                 </blockquote>
41
42                             </div>
43                         </div>
44                     </div>
45                 </xpath>
46             </field>
47         </record>
48
49     </data>
50 </openerp>