Server IP : 127.0.0.2 / Your IP : 13.59.172.7 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/hr_holidays/views/ |
Upload File : |
<?xml version='1.0' encoding='UTF-8'?> <odoo> <!--Hr Department Inherit Kanban view--> <record id="hr_department_view_kanban" model="ir.ui.view"> <field name="name">hr.department.kanban.inherit</field> <field name="model">hr.department</field> <field name="inherit_id" ref="hr.hr_department_view_kanban"/> <field name="groups_id" eval="[(4,ref('hr_holidays.group_hr_holidays_user'))]"/> <field name="arch" type="xml"> <data> <xpath expr="//templates" position="before"> <field name="leave_to_approve_count"/> <field name="allocation_to_approve_count"/> <field name="total_employee"/> <field name="absence_of_today"/> </xpath> <xpath expr="//div[contains(@class, 'o_kanban_primary_right')]" position="inside"> <div t-if="record.leave_to_approve_count.raw_value > 0" class="row"> <div class="col-xs-9"> <a name="%(hr_holidays_action_request_from_department)d" type="action"> Leave Requests </a> </div> <div class="col-xs-3"> <field name="leave_to_approve_count"/> </div> </div> <div t-if="record.allocation_to_approve_count.raw_value > 0" class="row"> <div class="col-xs-9"> <a name="%(hr_holidays_action_allocation_from_department)d" type="action"> Allocation Requests </a> </div> <div class="col-xs-3"> <field name="allocation_to_approve_count"/> </div> </div> </xpath> <xpath expr="//div[contains(@class, 'o_kanban_primary_right')]" position="after"> <div class="col-xs-12 o_kanban_primary_bottom"> <div class="row"> <div class="col-xs-3"> <a name="%(hr_employee_action_from_department)d" type="action" title="Absent Employee(s), Whose leaves request are either confirmed or validated on today">Absence</a> </div> <div class="col-xs-9"> <field name="absence_of_today" widget="progress" options="{'current_value': 'absence_of_today', 'max_value': 'total_employee', 'editable': false}"/> </div> </div> </div> </xpath> <xpath expr="//div[contains(@class, 'o_kanban_manage_to_approve')]" position="inside"> <div class="row"> <div class="col-xs-12 text-left"> <a name="%(hr_holidays_action_request_from_department)d" type="action"> <t t-esc="record.leave_to_approve_count.raw_value or 0"/> Leave Requests </a> </div> </div> <div class="row"> <div class="col-xs-12 text-left"> <a name="%(hr_holidays_action_allocation_from_department)d" type="action"> <t t-esc="record.allocation_to_approve_count.raw_value or 0"/> Allocation Requests </a> </div> </div> </xpath> <xpath expr="//div[contains(@class, 'o_kanban_manage_reports')]" position="inside"> <div class="row"> <div class="col-xs-12 text-left"> <a name="%(action_hr_holidays_leaves_analysis_filtered)d" type="action"> Leaves </a> </div> </div> </xpath> </data> </field> </record> <!--Hr Employee inherit search view--> <record id="hr_employee_view_search" model="ir.ui.view"> <field name="name">hr.employee.search.view.inherit</field> <field name="model">hr.employee</field> <field name="inherit_id" ref="hr.view_employee_filter"/> <field name="arch" type="xml"> <xpath expr="//field[@name='department_id']" position="after"> <filter name="is_absent_totay" string="Absent Today" domain="[('is_absent_totay', '=', True)]"/> </xpath> </field> </record> <record id="hr_kanban_view_employees_kanban" model="ir.ui.view"> <field name="name">hr.employee.kanban.leaves.status</field> <field name="model">hr.employee</field> <field name="inherit_id" ref="hr.hr_kanban_view_employees"/> <field name="arch" type="xml"> <xpath expr="//templates" position="before"> <field name="current_leave_id"/> <field name="current_leave_state"/> <field name="leave_date_from"/> <field name="leave_date_to"/> </xpath> <xpath expr="//li[@id='last_login']" position="inside"> <span t-if="record.current_leave_id.raw_value" style="font-size: 100%%" t-att-class="record.current_leave_state.raw_value=='validate'?'oe_kanban_button oe_kanban_color_3':'oe_kanban_button oe_kanban_color_2'" t-att-title="moment(record.leave_date_from.raw_value).format('ddd Do MMM') + ' - ' + moment(record.leave_date_to.raw_value).format('ddd Do MMM')"> <field name="current_leave_id"/> </span> </xpath> </field> </record> <!-- Hr employee inherit Legal Leaves --> <record id="view_employee_form_leave_inherit" model="ir.ui.view"> <field name="name">hr.employee.leave.form.inherit</field> <field name="model">hr.employee</field> <field name="inherit_id" ref="hr.view_employee_form"/> <field name="arch" type="xml"> <xpath expr="//group[@name='active_group']" position="after"> <group string="Leaves" groups="base.group_no_one"> <label for="remaining_leaves"/> <div> <field name="remaining_leaves" class="oe_inline"/> days </div> </group> </xpath> <div name="button_box" position="inside"> <field name="show_leaves" invisible="1"/> <button name="%(act_hr_employee_holiday_request)d" type="action" class="oe_stat_button" icon="fa-calendar" attrs="{'invisible': [('show_leaves','=', False)]}" groups="base.group_user" help="Remaining leaves"> <field string="Leaves Left" name="leaves_count" widget="statinfo"/> </button> </div> </field> </record> </odoo>