Files
odoo_source/addons/website_twitter/views/res_config_settings_views.xml
T
Yannick Tivisse 73483c8e5a [IMP] website: Revamp website settings
Simplify settings of website & website_sale;
- understandable
- relevant
- correctly ordered

Part-of: odoo/odoo#82999
2022-02-08 14:53:39 +00:00

61 lines
3.9 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="website_email_marketing" position="inside">
<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>
<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>