[Fix] : hr_holidays: fix report

bzr revid: sbh@tinyerp.com-20120530114607-utfx979m1hb85nff
This commit is contained in:
Sbh (Openerp) 2012-05-30 17:16:07 +05:30
parent 1ba82b81a1
commit 668f7d850e
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class report_custom(report_rml):
day_diff=eom-som
name = ''
if len(data['form']['emp']) == 1:
if data['form'].has_key('emp') and len(data['form']['emp']) == 1:
name = 'of'+' '+obj_emp.read(cr, uid, data['form']['emp'][0], ['name'])['name']
if data['form']['holiday_type']!='both':