2012-08-18 13:04:11 +00:00
|
|
|
<?xml version="1.0"?>
|
2012-08-17 13:28:35 +00:00
|
|
|
<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>
|
|
|
|
<field name="inherit_id" ref="base_setup.view_general_configuration"/>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//field[@name='module_auth_oauth']/.." position="after">
|
|
|
|
<div attrs="{'invisible':[('module_auth_oauth','=',False)]}">
|
|
|
|
<div name="google">
|
|
|
|
<div>
|
|
|
|
<field name="auth_oauth_google_enabled" class="oe_inline"/>
|
2012-08-18 13:04:11 +00:00
|
|
|
<label for="auth_oauth_google_enabled"/>
|
2012-08-17 13:28:35 +00:00
|
|
|
</div>
|
|
|
|
<div attrs="{'invisible':[('auth_oauth_google_enabled','=',False)]}">
|
2012-08-18 13:04:11 +00:00
|
|
|
<blockquote>
|
|
|
|
To setup the signin process with Google, first you have to perform the following steps:<br/>
|
2012-08-17 13:28:35 +00:00
|
|
|
<br/>
|
2012-08-18 13:04:11 +00:00
|
|
|
- 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/>
|
2012-08-17 13:28:35 +00:00
|
|
|
<br/>
|
2012-08-18 13:04:11 +00:00
|
|
|
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>
|
2012-08-17 13:28:35 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div name="facebook">
|
|
|
|
<div>
|
|
|
|
<field name="auth_oauth_facebook_enabled" class="oe_inline"/>
|
2012-08-18 13:04:11 +00:00
|
|
|
<label for="auth_oauth_facebook_enabled"/>
|
2012-08-17 13:28:35 +00:00
|
|
|
</div>
|
2012-08-18 13:04:11 +00:00
|
|
|
<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>
|
|
|
|
|
2012-08-17 13:28:35 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
</data>
|
2012-08-18 13:04:11 +00:00
|
|
|
</openerp>
|