[Fix] : hr_holidays: fix report
bzr revid: sbh@tinyerp.com-20120530114607-utfx979m1hb85nff
This commit is contained in:
parent
1ba82b81a1
commit
668f7d850e
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue