Files
odoo_source/addons/website_twitter/views/res_config_settings_views.xml
T
Kevin Baptiste 6cbe824871 [REV] web: reverts update to fontawesome 5.11.2
This reverts commit ff1c35513a.

closes odoo/odoo#41480

X-original-commit: 116057b26e71db4692280463669f3e80d813ddcc
Related: odoo/enterprise#7110
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-12-09 10:33:36 +00:00

62 lines
4.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.website.twitter</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="website.res_config_settings_view_form"/>
<field name="arch" type="xml">
<div id="google_maps_setting" position="after">
<div class="col-12 col-lg-6 o_setting_box" id="twitter_roller_install_setting">
<div class="o_setting_right_pane">
<span class="o_form_label">Twitter Roller</span>
<span class="fa fa-lg fa-globe" title="Values set here are website-specific." groups="website.group_multi_website"/>
<div class="text-muted">
Twitter API Credentials
</div>
<div class="content-group">
<div class="row mt16">
<label class="col-lg-3 o_light_label" string="API Key" for="twitter_api_key"/>
<field name="twitter_api_key" class="oe_inline"/>
</div>
<div class="row">
<label class="col-lg-3 o_light_label" string="API secret" for="twitter_api_secret"/>
<field name="twitter_api_secret" class="oe_inline"/>
</div>
<a data-toggle="collapse" href="#" data-target="#twitter_tutorial" aria-label="Twitter tutorial">
<i class="fa fa-arrow-right"/>
Show me how to obtain the Twitter API key and Twitter API secret
</a>
<div class="row mt16 collapse" id="twitter_tutorial">
<blockquote class="small">
<h2>How to configure the Twitter API access</h2>
<ol>
<li>Create a new Twitter application on <a href="https://apps.twitter.com/app/new" target="new">https://apps.twitter.com/app/new</a>
with the following values:
<ul>
<li><strong>Name: </strong> Odoo Twitter Integration</li>
<li><strong>Description: </strong> Odoo Twitter Integration </li>
<li><strong>Website: </strong>
<b><field name="twitter_server_uri" /></b></li>
<li><strong>Callback URL: </strong>Leave blank</li>
<li>Accept terms of use and click on the Create your Twitter application button at the bottom</li>
</ul>
</li>
<li>Switch to the API Keys tab: <br/>
<img src='/website_twitter/static/src/img/api_key.png' alt="API Key"/>
</li><br/>
<li>Copy/Paste Consumer Key (API Key) and Consumer Secret (API Secret) keys below.</li>
</ol>
</blockquote>
</div>
<div class="row">
<label class="col-lg-3 o_light_label" string="Favorites From" for="twitter_screen_name"/>
<field name="twitter_screen_name" class="oe_inline"/>
</div>
</div>
</div>
</div>
</div>
</field>
</record>
</odoo>