[IMP]: provided static string for crm.meeting if desc is not provided on Leave Req

bzr revid: mtr@tinyerp.com-20120814054425-eqej763roe0qf60i
This commit is contained in:
Meera Trambadia 2012-08-14 11:14:25 +05:30
parent 5349f0ec20
commit 81a44cef8e
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ class hr_holidays(osv.osv):
if record.holiday_type == 'employee' and record.type == 'remove':
meeting_obj = self.pool.get('crm.meeting')
meeting_vals = {
'name': record.name,
'name': record.name or _('Leave Request'),
'categ_ids': record.holiday_status_id.categ_id and [(6,0,[record.holiday_status_id.categ_id.id])] or [],
'duration': record.number_of_days_temp * 8,
'description': record.notes,