-<?xml version="1.0"?>
+<?xml version="1.0"?>
<openerp>
<data>
-
<record model="ir.ui.view" id="view_general_configuration">
<field name="name">base.config.settings.oauth</field>
<field name="model">base.config.settings</field>
<div name="google">
<div>
<field name="auth_oauth_google_enabled" class="oe_inline"/>
- <label for="auth_oauth_google_enabled"/>
+ <label for="auth_oauth_google_enabled"/>
</div>
<div attrs="{'invisible':[('auth_oauth_google_enabled','=',False)]}">
- <div>
- <p>To setup the signin process with Google, first you have to perform the following steps:</p>
+ <blockquote>
+ To setup the signin process with Google, first you have to perform the following steps:<br/>
<br/>
- 1. Register your application through the Google's APIs console. The result of this registration is a set of values that are known to both Google and you application: 'client_id' and 'redirect_uri'.
+ - Go to the <a href="https://code.google.com/apis/console/">Google APIs console</a><br/>
+ - Ceate a new project<br/>
+ - Go to Api Access<br/>
+ - Create an oauth client_id<br/>
+ - Edit settings and set both Authorized Redirect URIs and Authorized JavaScript Origins to your hostname.<br/>
<br/>
- 2. Fill the following field with the values assigned by Google.
- </div>
- <div>
- <label for="auth_oauth_google_client_id" placeholder="Your CLIENT_ID"/>
- <field name="auth_oauth_google_client_id" class="oe_inline"/>
- </div>
+ 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"/>
+ </blockquote>
</div>
</div>
<div name="facebook">
<div>
<field name="auth_oauth_facebook_enabled" class="oe_inline"/>
- <label for="auth_oauth_facebook_enabled"/>
+ <label for="auth_oauth_facebook_enabled"/>
</div>
- <div attrs="{'invisible':[('auth_oauth_facebook_enabled','=',False)]}">
- <div>
- <label string="Here goes the explanation"/>
- </div>
- <div>
- <label for="auth_oauth_facebook_client_id" placeholder="Your CLIENT_ID"/>
- <field name="auth_oauth_facebook_client_id" class="oe_inline"/>
- </div>
+ <div attrs="{'invisible':[('auth_oauth_facebook_enabled','=',False)]}">
+ <blockquote>
+ To setup the signin process with Google, first you have to perform the following steps:<br/>
+ <br/>
+ 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"/>
+ </blockquote>
+
</div>
</div>
</div>
</record>
</data>
-</openerp>
\ No newline at end of file
+</openerp>