Server IP : 127.0.0.2 / Your IP : 18.226.181.36 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/lunch/security/ |
Upload File : |
<?xml version="1.0" ?> <odoo> <record model="ir.module.category" id="module_lunch_category"> <field name="name">Lunch</field> <field name="description">Helps you handle your lunch needs, if you are a manager you will be able to create new products, cashmoves and to confirm or cancel orders.</field> <field name="sequence">16</field> </record> <record id="group_lunch_user" model="res.groups"> <field name="name">User</field> <field name="category_id" ref="module_lunch_category"/> </record> <record id="group_lunch_manager" model="res.groups"> <field name="name">Manager</field> <field name="implied_ids" eval="[(4, ref('group_lunch_user'))]"/> <field name="category_id" ref="module_lunch_category"/> <field name="users" eval="[(4, ref('base.user_root'))]"/> </record> <record id="lunch_mind_your_own_food_money" model="ir.rule"> <field name="name">lunch.cashmove: do not see other people's cashmove</field> <field name="model_id" ref="model_lunch_cashmove"/> <field name="groups" eval="[(4, ref('group_lunch_user'))]"/> <field name="domain_force">[('user_id', '=', user.id)]</field> </record> <record id="lunch_mind_other_food_money" model="ir.rule"> <field name="name">lunch.cashmove: do see other people's cashmove</field> <field name="model_id" ref="model_lunch_cashmove"/> <field name="groups" eval="[(4, ref('group_lunch_manager'))]"/> <field name="domain_force">[(1, '=', 1)]</field> </record> <record id="lunch_order_line_rule_delete" model="ir.rule"> <field name="name">lunch.order.line: Only new and cancelled order lines deleted.</field> <field name="model_id" ref="lunch.model_lunch_order_line"/> <field name="domain_force">[('state', 'in', ('new', 'cancelled'))]</field> <field name="perm_read" eval="0"/> <field name="perm_write" eval="0"/> <field name="perm_create" eval="0"/> <field name="perm_unlink" eval="1" /> <field name="groups" eval="[(4,ref('lunch.group_lunch_user'))]"/> </record> <data noupdate="1"> <record id="base.default_user" model="res.users"> <field name="groups_id" eval="[(4,ref('lunch.group_lunch_manager'))]"/> </record> </data> </odoo>