res_config_settings_views.xml 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="res_config_settings_view_form" model="ir.ui.view">
  4. <field name="name">res.config.settings.view.form.inherit.website.twitter</field>
  5. <field name="model">res.config.settings</field>
  6. <field name="inherit_id" ref="website.res_config_settings_view_form"/>
  7. <field name="arch" type="xml">
  8. <div id="website_email_marketing" position="inside">
  9. <div class="col-12 col-lg-6 o_setting_box" id="twitter_roller_install_setting">
  10. <div class="o_setting_right_pane">
  11. <span class="o_form_label">Twitter Roller</span>
  12. <div class="text-muted">
  13. Twitter API Credentials
  14. </div>
  15. <div class="content-group">
  16. <div class="row mt16">
  17. <label class="col-lg-3 o_light_label" string="API Key" for="twitter_api_key"/>
  18. <field name="twitter_api_key" class="oe_inline"/>
  19. </div>
  20. <div class="row">
  21. <label class="col-lg-3 o_light_label" string="API secret" for="twitter_api_secret"/>
  22. <field name="twitter_api_secret" password="True" class="oe_inline"/>
  23. </div>
  24. <a data-bs-toggle="collapse" href="#" data-bs-target="#twitter_tutorial" aria-label="Twitter tutorial">
  25. <i class="fa fa-arrow-right"/>
  26. Show me how to obtain the Twitter API key and Twitter API secret
  27. </a>
  28. <div class="row mt16 collapse" id="twitter_tutorial">
  29. <blockquote class="small">
  30. <h2>How to configure the Twitter API access</h2>
  31. <ol>
  32. <li>Log in or create an account on <a href="https://developer.twitter.com/" target="new"> https://developer.twitter.com/</a></li>
  33. <li>Once connected, and if not already done, complete the Twitter portal access process on <a href="https://developer.twitter.com/portal/" target="new">https://developer.twitter.com/portal/</a></li>
  34. <li>On the <a href="https://developer.twitter.com/portal/" target="new">Twitter Portal</a>, <strong>create a project</strong> with the following information:
  35. <ul>
  36. <li><strong>Name: </strong> Odoo Twitter Integration</li>
  37. <li><strong>Use Case: </strong> Embedding Tweets in a website</li>
  38. <li><strong>Description: </strong> Odoo Twitter Integration</li>
  39. <li><strong>App Name: </strong> choose a unique name</li>
  40. </ul>
  41. </li>
  42. <li>Copy/Paste the API Key and API Key Secret values into the above fields</li>
  43. <li>Get Elevated access by going to <a href="https://developer.twitter.com/en/portal/products" target="new">https://developer.twitter.com/en/portal/products</a>, click on <strong>Elevated</strong> then on <strong>Apply</strong> and finally complete the form.</li>
  44. </ol>
  45. </blockquote>
  46. </div>
  47. <div class="row">
  48. <label class="col-lg-3 o_light_label" string="Favorites From" for="twitter_screen_name"/>
  49. <field name="twitter_screen_name" class="oe_inline"/>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. </field>
  56. </record>
  57. </odoo>