[IMP]: Fix trace back and improve emil template view
authorajay javiya (OpenERP) <aja@tinyerp.com>
Thu, 17 Oct 2013 12:05:30 +0000 (17:35 +0530)
committerajay javiya (OpenERP) <aja@tinyerp.com>
Thu, 17 Oct 2013 12:05:30 +0000 (17:35 +0530)
bzr revid: aja@tinyerp.com-20131017120530-g5fvr1qt53r9m2xp

addons/base_calendar/base_calendar.py
addons/base_calendar/crm_meeting_data.xml

index b4f7959..1d30db4 100644 (file)
@@ -1022,14 +1022,11 @@ rule or repeating pattern of time to exclude from the recurring rule."),
                     'attendee_ids': [(4, att_id)]
                 }, context=context)
                 new_attendees.append(att_id)
-
             if mail_to and current_user.email:
                 is_sent_mail = att_obj._send_mail(cr, uid, new_attendees, mail_to,
                     email_from = current_user.email, context=context)
                 if is_sent_mail:
-                    meeting_obj =  self.pool.get('crm.meeting')
-                    meeting_id = meeting_obj.search(cr, uid, [('attendee_ids','in',new_attendees)],context = context)
-                    meeting_obj.message_post(cr, uid, meeting_id, body=_("An invitation email has been sent to attendee(s)"), context=context)
+                    self.message_post(cr, uid, event.id, body=_("An invitation email has been sent to attendee(s)"), context=context)
         return True
 
     def default_organizer(self, cr, uid, context=None):
index d34ddd7..b0365d3 100644 (file)
                                                 % endif
                                                 % if object.description :
                                                     <tr style=" height: 30px;">
-                                                        <td>
+                                                        <td style="vertical-align:top;">
                                                             <div style="height: 25px; width: 120px; background : # CCCCCC; font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif;">
                                                                 What
                                                             </div>
                                                         </td>
-                                                        <td colspan="3">
+                                                        <td colspan="3" style="vertical-align:text-top;">
                                                             <div style="font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif;">
                                                                 : ${object.description or ''}
                                                             </div>
                                                 % endif
                                                 % if not object.description :
                                                     <tr style=" height: 30px;color:#909090">
-                                                        <td>
+                                                        <td style="vertical-align:top;">
                                                             <div style="height: 25px; width: 120px; background : # CCCCCC; font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif;">
                                                                 What
                                                             </div>
                                                         </td>
-                                                        <td colspan="3">
+                                                        <td colspan="3" style="vertical-align:text-top;">
                                                             <div style="font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif;">
                                                                 : -
                                                             </div>