[IMP]: code for invitation template
bzr revid: aja@tinyerp.com-20130715101608-qd94u2vfi1qrok6x
This commit is contained in:
@@ -431,7 +431,7 @@ property or property parameter."),
|
||||
res_obj = attendee.ref
|
||||
if res_obj:
|
||||
att = {}
|
||||
att_info = []
|
||||
att_info = [(image_cricle % color.get('needs-action')) + 'You', (image_cricle % color.get('accepted')) + res_obj.organizer+ '<span style= "color:#A9A9A9; ont-size: 9px">- Organizer </br></span>']
|
||||
sub = res_obj.name
|
||||
other_invitation_ids = self.search(cr, uid, [('ref', '=', res_obj._name + ',' + str(res_obj.id))])
|
||||
other_invitation_ids.remove(attendee.id)
|
||||
@@ -454,7 +454,6 @@ property or property parameter."),
|
||||
map_url = ''
|
||||
if res_obj.location:
|
||||
map_url = """<span style= "color:#A9A9A9; "> (<a href="http://maps.google.com/maps?oi=map&q=%s">View Map</a>)</span>""" % res_obj.location
|
||||
org = [(image_cricle % color.get('needs-action')) + 'You', (image_cricle % color.get('accepted')) + res_obj.organizer]
|
||||
body_vals = {'user':attendee.user_id and attendee.user_id.name,
|
||||
'name': res_obj.name,
|
||||
'responsible': res_obj.user_id and res_obj.user_id.name or 'OpenERP User',
|
||||
@@ -465,7 +464,7 @@ property or property parameter."),
|
||||
'tz': tz,
|
||||
'location': res_obj.location or '-',
|
||||
'map' : map_url or '',
|
||||
'organizer':',\n' .join(org),
|
||||
'organizer' : res_obj.organizer,
|
||||
'url' : footer}
|
||||
body_id = self.pool.get('email.template').search(cr, uid, [('subject', '=', 'Meeting Invitation')], context=context)
|
||||
body = self.pool.get('email.template').browse(cr, uid, body_id[0], context=context).body_html % body_vals
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
<td colspan="3"> <div style = " font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 14px" >%(description)s</div> </td> </tr>
|
||||
<tr valign="top">
|
||||
<td style = "height: 25px;width: 120px; background : # CCCCCC; font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 14px;"> <div><b>Attendees:<b></div> </td>
|
||||
<td colspan="3"><div style = " font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 10px" > %(organizer)s <span style= "color:#A9A9A9; ont-size: 9px">- Organizer </br></span>%(attendees)s</div> </td> </tr>
|
||||
<td colspan="3"><div style = " font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 10px" > %(attendees)s </div> </td> </tr>
|
||||
</table></td></tr>
|
||||
<tr >
|
||||
<td><div style = " font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 10px" ><span style= "margin-top: 50px; margin-left: 200px;" ><a href="%(url)s&view_type=form&status=accepted">Accept</a> | <a href="%(url)s&view_type=form&status=declined">Decline</a></span></div> </td>
|
||||
|
||||
Reference in New Issue
Block a user