Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 3.145.82.96
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/google_calendar/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /opt/odoo/addons/google_calendar/views/res_config_views.xml
<?xml version="1.0" encoding="utf-8"?>
<odoo>
        <record id="view_calendar_config_settings" model="ir.ui.view">
            <field name="name">Calendar_settings_grgrgrgt</field>
            <field name="model">base.config.settings</field>
            <field name="inherit_id" ref="base_setup.view_general_configuration"/>
            <field name="arch" type="xml">
                <div name="google_calendar" position="replace">
                    <div name="google_calendar">
                        <label for="google_cal_sync"/>
                        <field name="google_cal_sync"/>
                        <div attrs="{'invisible':[('google_cal_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 a project...'</b> and enter a project name and change your id if you want. Don't forget to accept the Terms of Services
                                    <br/><br/><img src='/google_calendar/static/src/img/setup_01.png' class='calendar_img_tuto'/>
                                </li>
                                <li> In the menu on left side, select the sub menu APIs (from menu APIs and auth) and click on <b>'Calendar API'</b>.
                                    <br/> Activate the Calendar API by clicking on the blue button <b>'Enable API'</b>.
                                    <br/> When it's done, the Calendar API overview will be available
                                    <br/><br/> <img src='/google_calendar/static/src/img/setup_03.png' class='calendar_img_tuto'/>
                                    <br/> <img src='/google_calendar/static/src/img/setup_04.png' class='calendar_img_tuto'/>
                                    <br/> <img src='/google_calendar/static/src/img/setup_05.png' class='calendar_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='/google_calendar/static/src/img/setup_06.png' class='calendar_img_tuto'/>
                                </li>
                                <li> Check that the Application type is set on <b>'Web Application'</b>, then click on <b>'Configure consent screen'</b>.
                                    <br/> Specify an email address and a product name, then save.
                                    <br/><br/> <img src='/google_calendar/static/src/img/setup_07.png' class='calendar_img_tuto'/>
                                    <br/><img src='/google_calendar/static/src/img/setup_09.png' class='calendar_img_tuto'/>
                                    <br/> You should now configure the allowed pages on which you will be redirected. To do it, you need to complete the field <b>"Authorized redirect URI"</b>
                                    and set as value  (your own domain followed by <i>'/google_account/authentication'</i>):
                                    <br/>==> <b><field name="server_uri" readonly="1" style='display:inline'/></b>
                                    <br/> You can now click on <b>'Create Client ID'</b>
                                    <br/><br/> <img src='/google_calendar/static/src/img/setup_10.png' class='calendar_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='/google_calendar/static/src/img/setup_08.png' class='calendar_img_tuto'/>
                                </li>
                                <a href="#" class="oe_link">Return at Top</a>
                            </ul>
                        </div>

                        <div>
                            <label for="cal_client_id" string="Google Client ID"/>
                            <field name="cal_client_id" nolabel="1" class="oe_inline"/>
                        </div>
                        <div>
                            <label for="cal_client_secret" string="Google Client Secret"/>
                            <field name="cal_client_secret" password="True" nolabel="1" class="oe_inline"/>
                        </div>
                    </div>
                </div>
            </field>
        </record>

        <record id="action_config_settings_google_calendar" model="ir.actions.act_window">
            <field name="name">API 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>

        <menuitem id="menu_calendar_google_tech_config"
            name="API Credentials"
            parent="calendar.menu_calendar_configuration"
            groups="base.group_no_one"
            action="action_config_settings_google_calendar"/>

</odoo>

Anon7 - 2022
AnonSec Team