[FIX]: FIXed "Meeting Invitation" search view Problem.

bzr revid: atp@tinyerp.co.in-20101231121835-bsg1qoumwtwntbnb
This commit is contained in:
atp (Open ERP) 2010-12-31 17:48:35 +05:30
parent dc04fb6fa1
commit ed1f081a9e
2 changed files with 3 additions and 1 deletions

View File

@ -410,6 +410,8 @@ property or property parameter."),
return res
cal = vobject.iCalendar()
event = cal.add('vevent')
if not event_obj.date_deadline or not event_obj.date:
raise osv.except_osv(_('Warning !'),_("You must enter Date"))
event.add('created').value = ics_datetime(time.strftime('%Y-%m-%d %H:%M:%S'))
event.add('dtstart').value = ics_datetime(event_obj.date)
event.add('dtend').value = ics_datetime(event_obj.date_deadline)
@ -461,7 +463,6 @@ property or property parameter."),
attendee_add.params['ROLE'] = [str(attendee.role)]
attendee_add.params['RSVP'] = [str(attendee.rsvp)]
attendee_add.value = 'MAILTO:' + (attendee.email or '')
res = cal.serialize()
return res

View File

@ -77,6 +77,7 @@
<tree string="Invitation details">
<field name="sent_by_uid" string="Invitation From" />
<field name="role" string="My Role"/>
<field name="user_id" invisible="1"/>
<field name="cutype" string="Invitation type"/>
<field name="state" />
<field name="rsvp" string="Required to Join"/>