Server IP : 127.0.0.2 / Your IP : 52.15.143.11 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_drive/views/ |
Upload File : |
<?xml version="1.0" encoding="utf-8"?> <odoo> <!-- add google drive config field in user form --> <record id="view_google_drive_config_tree" model="ir.ui.view"> <field name="name">google_drive.config.tree</field> <field name="model">google.drive.config</field> <field name="arch" type="xml"> <tree string="Google Drive Configuration"> <field name="name" /> <field name="model_id" /> </tree> </field> </record> <record id="view_google_drive_config_form" model="ir.ui.view"> <field name="name">google_drive.config.form</field> <field name="model">google.drive.config</field> <field name="arch" type="xml"> <form string="Google Drive Configuration"> <field name="model" invisible="1" /> <group> <field name="name" /> <field name="active" /> <field name="model_id"/> <label for='filter_id' /> <div> <field name='filter_id' /> <p class="oe_grey"> <b>To create a new filter:</b><br/> - Go to the Odoo document you want to filter. For instance, go to Opportunities and search on Sales Department.<br/> - In this "Search" view, select the option "Save Current Filter", enter the name (Ex: Sales Department)<br/> - If you select "Share with all users", link of google document in "More" options will appear for all users in opportunities of Sales Department.<br/> - If you don't select "Share with all users", link of google document in "More" options will not appear for other users in opportunities of Sales Department.<br/> - If filter is not specified, link of google document will appear in "More" option for all users for all opportunities. </p> </div> <field name='google_drive_template_url' placeholder="https://docs.google.com/document/d/1vOtpJK9scIQz6taD9tJRIETWbEw3fSiaQHArsJYcua4/edit" required="1" /> <field name='google_drive_resource_id' invisible="1" /> <label for='name_template' /> <div> <field name='name_template' /> <p class="oe_grey"> The name of the attached document can use fixed or variable data. To distinguish between documents in Google Drive, use fixed words and fields. For instance, in the example above, if you wrote Agrolait_%%(name)s_Sales in the Google Drive name field, the document in your Google Drive and in Odoo attachment will be named 'Agrolait_SO0001_Sales'. </p> </div> </group> </form> </field> </record> <record id='action_google_drive_users_config' model='ir.actions.act_window'> <field name='name'>Templates</field> <field name='res_model'>google.drive.config</field> <field name='type'>ir.actions.act_window</field> <field name='view_type'>form</field> <field name='view_id' ref='view_google_drive_config_tree' /> <field name="help" type="html"> <p class="oe_view_nocontent_create"> Click to add a new template. </p> <p> Link your own google drive templates to any record of Odoo. If you have really specific documents you want your collaborator fill in, e.g. Use a spreadsheet to control the quality of your product or review the delivery checklist for each order in a foreign country, ... Its very easy to manage them, link them to Odoo and use them to collaborate with your employees. </p> </field> </record> <menuitem id='menu_google_drive_config' name='Google Drive' parent='base.menu_administration' /> <menuitem id='menu_google_drive_model_config' parent='menu_google_drive_config' action='action_google_drive_users_config' /> </odoo>