Server IP : 127.0.0.2 / Your IP : 18.221.172.197 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/odoo/addons/website_twitter/views/ |
Upload File : |
<?xml version="1.0" encoding="utf-8"?> <odoo> <record id="view_website_config_settings" model="ir.ui.view"> <field name="name">Twitter settings</field> <field name="model">website.config.settings</field> <field name="inherit_id" ref="website.view_website_config_settings"/> <field name="arch" type="xml"> <xpath expr="//div[@name='social_twitter']" position="after"> <label for="id" string="Twitter API"/> <div> <p>Set your Twitter API access below to be able to use the Twitter Scroller Website snippet.<br/> You can get your API credentials from <a href="https://apps.twitter.com/app/new" target="new">https://apps.twitter.com/app/new</a> </p> <div> <field name="twitter_tutorial" class="oe_inline"/><label for="twitter_tutorial"/> <blockquote class="small" attrs="{'invisible':[('twitter_tutorial','=',False)]}"> <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 Tweet Scroller</li> <li><strong>Description: </strong> Odoo Tweet Scroller </li> <li><strong>Website: </strong> <tt>https://www.odoo.com</tt></li> <li><strong>Callback URL: </strong> leave it blank</li> <li>Accept terms of use and click on the Create 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'/> </li> <li>Copy/Paste API Key and Secret below</li> <li>Enter the screen name from which you want to load favorite Tweets (does not need to be the same as the API keys)</li> </ol> </blockquote> </div> <div> <label for="twitter_api_key"/> <field name="twitter_api_key" class="oe_inline"/> </div> <div> <label for="twitter_api_secret"/> <field name="twitter_api_secret" class="oe_inline"/> </div> <div> <label for="twitter_screen_name"/> <field name="twitter_screen_name" class="oe_inline"/> </div> </div> </xpath> </field> </record> </odoo>