Server IP : 127.0.0.2 / Your IP : 3.128.78.43 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/report/ |
Upload File : |
<?xml version="1.0" encoding="utf-8"?> <odoo> <template id="report_holidayssummary"> <t t-call="report.html_container"> <t t-call="report.internal_layout"> <div class="page"> <h3 class="mb32">Leaves Summary</h3> <t t-set="info" t-value="get_header_info"/> <h3 class="text-center mb32"> Analyze from <u><t t-esc="info['start_date']"/></u> to <u><t t-esc="info['end_date']"/></u> of the <u><t t-esc="info['holiday_type']"/></u> Leaves. </h3> <table class="table table-bordered mb32" style="table-layout:auto"> <thead> <tr> <th>Month</th> <t t-foreach="get_months" t-as="month"> <th class="text-center" colspan=<t t-esc="month['days']"/>><t t-esc="month['month_name']"/></th> </t> <th/> </tr> <tr> <td rowspan="2"> <strong>Departments and Employees</strong> </td> <t t-foreach="get_day" t-as="day"> <td class="text-center oe_leftfit oe_rightfit" style="background-color:<t t-esc="day['color']"/>!important; font-size: 8px; min-width: 18px"> <t t-esc="day['day_str']"/></td> </t> <td/> </tr> <tr> <t t-foreach="get_day" t-as="day"> <td class="text-center oe_leftfit oe_rightfit" style="background-color:<t t-esc="day['color']"/>!important; font-size: 10px" > <t t-esc="day['day']"/></td> </t> <td class="text-center">Sum</td> </tr> </thead> <tbody> <t t-foreach="get_data_from_report" t-as="obj"> <tr t-if="'dept' in obj"> <td style="background-color:#ababab"> <strong><t t-esc="obj['dept']"/></strong> </td> <t t-foreach="obj['color']" t-as="c"> <td style=background-color:<t t-esc="c['color']"/> !important/> </t> <td/> </tr> <tr t-foreach="obj['data']" t-as="emp"> <td><t t-esc="emp['emp']"/></td> <t t-foreach="emp['display']" t-as="details"> <td style=background-color:<t t-esc="details['color']"/> !important /> </t> <td class="text-center"><strong><t t-esc="emp['sum']"/></strong></td> </tr> </t> </tbody> </table> <div class="col-xs-3 col-xs-offset-5 mt32"> <table class="table table-bordered"> <thead> <tr> <th class="col-xs-1">Color</th> <th class="text-center">Leave Type</th> </tr> </thead> <tbody> <tr t-foreach="get_holidays_status" t-as="status"> <td style=background-color:<t t-esc="status['color']"/>!important ></td> <td><t t-esc="status['name']"/></td> </tr> </tbody> </table> </div> </div> </t> </t> </template> </odoo>