Server IP : 127.0.0.2 / Your IP : 3.137.152.81 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/doc/howtos/backend/ |
Upload File : |
# HG changeset patch # Parent 69d1f2d359eb8ef304a9d99f17790c78b35eda1a Index: addons/openacademy/models.py =================================================================== --- addons.orig/openacademy/models.py 2014-08-26 17:26:02.903783329 +0200 +++ addons/openacademy/models.py 2014-08-26 17:26:02.895783329 +0200 @@ -23,7 +23,8 @@ seats = fields.Integer(string="Number of seats") instructor_id = fields.Many2one('res.partner', string="Instructor", - domain=[('instructor', '=', True)]) + domain=['|', ('instructor', '=', True), + ('category_id.name', 'ilike', "Teacher")]) course_id = fields.Many2one('openacademy.course', ondelete='cascade', string="Course", required=True) attendee_ids = fields.Many2many('res.partner', string="Attendees") Index: addons/openacademy/views/partner.xml =================================================================== --- addons.orig/openacademy/views/partner.xml 2014-08-26 17:26:02.903783329 +0200 +++ addons/openacademy/views/partner.xml 2014-08-26 17:26:02.895783329 +0200 @@ -28,5 +28,21 @@ <menuitem id="contact_menu" name="Contacts" parent="configuration_menu" action="contact_list_action"/> + + <record model="ir.actions.act_window" id="contact_cat_list_action"> + <field name="name">Contact Tags</field> + <field name="res_model">res.partner.category</field> + <field name="view_mode">tree,form</field> + </record> + <menuitem id="contact_cat_menu" name="Contact Tags" + parent="configuration_menu" + action="contact_cat_list_action"/> + + <record model="res.partner.category" id="teacher1"> + <field name="name">Teacher / Level 1</field> + </record> + <record model="res.partner.category" id="teacher2"> + <field name="name">Teacher / Level 2</field> + </record> </data> </odoo>