Files
odoo_source/addons/website_version/views/res_config.xml
T
Goffin Simon 9850080eb0 [ADD] Versioning Module.
This module allow to make versioning and A/B testing of the website.
2015-01-16 23:13:58 +01:00

111 lines
7.5 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="view_website_config_settings_extend" model="ir.ui.view">
<field name="name">Website settings</field>
<field name="model">website.config.settings</field>
<field name="inherit_id" ref="website.view_website_config_settings"/>
<field name="arch" type="xml">
<field name="website_id" position="replace">
<field name="website_id" invisible="False" on_change="on_change_website_id(website_id)"/>
</field>
</field>
</record>
<record id="view_analytics_config_settings" model="ir.ui.view">
<field name="name">Analytics_settings</field>
<field name="model">base.config.settings</field>
<field name="inherit_id" ref="base_setup.view_general_configuration"/>
<field name="arch" type="xml">
<group name="google_analytics" position="before">
<group>
<label for="id" string="Google Analytics"/>
<div>
<div>
<label for="ga_sync"/>
<field name="ga_sync" class="oe_inline"/>
<div>
<div attrs="{'invisible':[('ga_sync','=',False)]}">
<br/><h2>To setup the signin process with Google, first you have to perform the following steps</h2>
<ul>
<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>
<li>
Click on <b>"Create Project"</b> and enter a project name.
<br/><br/><img src='/website_version/static/src/img/GC/GC_create_project.png'
class='analytics_img_tuto'/>
<br/><br/><img src='/website_version/static/src/img/GC/GC_new_project.png'
class='analytics_img_tuto'/>
</li>
<li> In the menu on left side, select the sub menu APIs (from menu APIs and auth) and activate <b>"Analytics API"</b> by clicking on button "OFF".
<br/> When it's done, check that the button of <b>"Calendar API"</b> is well in green and with text "ON"
<br/><br/><img src='/website_version/static/src/img/GC/GC_API.png'
class='analytics_img_tuto'/>
<br/><br/><img src='/website_version/static/src/img/GC/GC_off_api.png'
class='analytics_img_tuto'/>
<br/><br/><img src='/website_version/static/src/img/GC/GC_on_api.png'
class='analytics_img_tuto'/>
</li>
<li>
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>
<br/><br/><img src='/website_version/static/src/img/GC/GC_credentials.png'
class='analytics_img_tuto'/>
<br/><br/><img src='/website_version/static/src/img/GC/GC_create_new_client_id.png'
class='analytics_img_tuto'/>
</li>
<li> Fill in the Name of application and check that the platform is well on <b>'Web Application'</b>.<br/>
<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>
and set as value (your own domain followed by <i>"/google_account/authentication"</i>) :
<br/> You can now click on <b>'Create Client ID'</b>
<br/><br/><img src='/website_version/static/src/img/GC/GC_client_id.png'
class='analytics_img_tuto'/>
</li>
<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 !
<br/><br/><img src='/website_version/static/src/img/GC/GC_copy.png'
class='analytics_img_tuto'/>
</li>
<li>Click on <b>Apply</b>
<br/><br/><img src='/website_version/static/src/img/GC/GC_Apply.png'
class='analytics_img_tuto'/>
</li>
<a href="#" class="oe_link">Return at Top</a>
</ul>
</div>
</div>
</div>
<group>
<div class="analytics_settings">
<group>
<div>
<label for="ga_client_id" string="Google Client ID" />
<field name="ga_client_id" class="oe_inline"/>
</div>
</group>
<group>
<div>
<label for="ga_client_secret" string="Google Client Secret"/>
<field name="ga_client_secret" class="oe_inline"/>
</div>
</group>
<group>
<div>
<field name="google_management_authorization" widget="rtoken"/>
</div>
</group>
</div>
</group>
</div>
</group>
</group>
</field>
</record>
<record id="action_config_settings_google_management" model="ir.actions.act_window">
<field name="name">API Management Configuration</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">base.config.settings</field>
<field name="view_mode">form</field>
<field name="target">inline</field>
</record>
</data>
</openerp>