2010-01-22 07:33:05 +00:00
<?xml version="1.0"?>
<openerp >
2012-06-28 06:40:05 +00:00
<data noupdate= "1" >
2013-11-23 11:36:27 +00:00
<record model= "res.request.link" id= "request_link_event" >
2012-06-28 06:40:05 +00:00
<field name= "name" > Event</field>
<field name= "object" > calendar.event</field>
</record>
2013-11-23 11:36:27 +00:00
<record model= "calendar.alarm" id= "alarm_notif_1" >
<field name= "name" > 15 min notif</field>
2012-06-28 06:40:05 +00:00
<field name= "active" eval= "1" />
2013-11-23 11:36:27 +00:00
<field name= "duration" eval= "15" />
<field name= "interval" > minutes</field>
<field name= "type" > notification</field>
</record>
<record model= "calendar.alarm" id= "alarm_notif_2" >
<field name= "name" > 30 min notif</field>
2012-06-28 06:40:05 +00:00
<field name= "active" eval= "1" />
2013-11-23 11:36:27 +00:00
<field name= "duration" eval= "30" />
<field name= "interval" > minutes</field>
<field name= "type" > notification</field>
</record>
<record model= "calendar.alarm" id= "alarm_notif_3" >
<field name= "name" > 1 hour notif</field>
2012-06-28 06:40:05 +00:00
<field name= "active" eval= "1" />
2013-11-23 11:36:27 +00:00
<field name= "duration" eval= "1" />
<field name= "interval" > hours</field>
<field name= "type" > notification</field>
</record>
<record model= "calendar.alarm" id= "alarm_notif_4" >
<field name= "name" > 2 hours notif</field>
2012-06-28 06:40:05 +00:00
<field name= "active" eval= "1" />
2013-11-23 11:36:27 +00:00
<field name= "duration" eval= "2" />
<field name= "interval" > hours</field>
<field name= "type" > notification</field>
</record>
<record model= "calendar.alarm" id= "alarm_notif_5" >
<field name= "name" > 1 day notif</field>
2012-06-28 06:40:05 +00:00
<field name= "active" eval= "1" />
2013-11-23 11:36:27 +00:00
<field name= "duration" eval= "1" />
<field name= "interval" > days</field>
<field name= "type" > notification</field>
2012-06-28 06:40:05 +00:00
</record>
2013-11-23 11:36:27 +00:00
<record model= "calendar.alarm" id= "alarm_mail_1" >
<field name= "name" > 15 min mail</field>
2012-06-28 06:40:05 +00:00
<field name= "active" eval= "1" />
2013-11-23 11:36:27 +00:00
<field name= "duration" eval= "15" />
<field name= "interval" > minutes</field>
<field name= "type" > email</field>
</record>
<record model= "calendar.alarm" id= "alarm_mail_2" >
<field name= "name" > 30 min mail</field>
2012-06-28 06:40:05 +00:00
<field name= "active" eval= "1" />
2013-11-23 11:36:27 +00:00
<field name= "duration" eval= "30" />
<field name= "interval" > minutes</field>
<field name= "type" > email</field>
</record>
<record model= "calendar.alarm" id= "alarm_mail_3" >
<field name= "name" > 1 hour mail</field>
2012-06-28 06:40:05 +00:00
<field name= "active" eval= "1" />
2013-11-23 11:36:27 +00:00
<field name= "duration" eval= "1" />
<field name= "interval" > hours</field>
<field name= "type" > email</field>
</record>
<record model= "calendar.alarm" id= "alarm_mail_4" >
<field name= "name" > 2 hours mail</field>
2012-06-28 06:40:05 +00:00
<field name= "active" eval= "1" />
2013-11-23 11:36:27 +00:00
<field name= "duration" eval= "2" />
<field name= "interval" > hours</field>
<field name= "type" > email</field>
</record>
<record model= "calendar.alarm" id= "alarm_mail_5" >
<field name= "name" > 1 day mail</field>
2012-06-28 06:40:05 +00:00
<field name= "active" eval= "1" />
2013-11-23 11:36:27 +00:00
<field name= "duration" eval= "1" />
<field name= "interval" > days</field>
<field name= "type" > email</field>
2012-06-28 06:40:05 +00:00
</record>
2013-11-23 11:36:27 +00:00
2012-06-28 06:40:05 +00:00
<!-- Scheduler for Event Alarm -->
2013-11-23 11:36:27 +00:00
<record forcecreate= "True" id= "ir_cron_scheduler_alarm" model= "ir.cron" >
2012-06-28 06:40:05 +00:00
<field name= "name" > Run Event Reminder</field>
<field eval= "True" name= "active" />
<field name= "user_id" ref= "base.user_root" />
2013-11-23 11:36:27 +00:00
<field name= "interval_number" > 1</field>
2012-06-28 06:40:05 +00:00
<field name= "interval_type" > minutes</field>
<field name= "numbercall" > -1</field>
<field eval= "False" name= "doall" />
2013-11-23 11:36:27 +00:00
<field eval= "'calendar.alarm_manager'" name= "model" />
<field eval= "'do_run_scheduler_mail'" name= "function" />
2012-06-28 06:40:05 +00:00
<field eval= "'(False,)'" name= "args" />
</record>
2013-11-23 11:36:27 +00:00
<record model= "crm.meeting.type" id= "categ_meet1" >
<field name= "name" > Customer Meeting</field>
</record>
<record model= "crm.meeting.type" id= "categ_meet2" >
<field name= "name" > Internal Meeting</field>
</record>
<record model= "crm.meeting.type" id= "categ_meet3" >
<field name= "name" > Off-site Meeting</field>
</record>
<record model= "crm.meeting.type" id= "categ_meet4" >
<field name= "name" > Open Discussion</field>
</record>
<record model= "crm.meeting.type" id= "categ_meet5" >
<field name= "name" > Feedback Meeting</field>
</record>
<record model= "res.request.link" id= "request_link_meeting" >
<field name= "name" > Meeting</field>
<field name= "object" > crm.meeting</field>
</record>
<record id= "crm_email_template_meeting_invitation" model= "email.template" >
<field name= "name" > Meeting Invitation</field>
<field name= "email_from" > ${object.user_id.email or ''}</field>
<field name= "subject" > ${object.name}</field>
<field name= "email_to" > ${ctx['att_obj'].email}</field>
<field name= "model_id" ref= "base_calendar.model_crm_meeting" />
<field name= "auto_delete" eval= "True" />
<field name= "body_html" > < ![CDATA[
<html >
<head >
<meta http-equiv= "Content-type" content= "text/html; charset=utf-8" />
<title > ${object.name}</title>
</head>
<body >
<div style= "border-radius: 2px; max-width: 1200px; height: auto;margin-left: auto;margin-right: auto;background-color:#f9f9f9;" >
<div style= "height:auto;text-align: center;font-size : 30px;color: #8A89BA;" >
<strong > ${object.name}</strong>
</div>
<div style= "height: 50px;text-align: left;font-size : 14px;border-collapse: separate;margin-top:10px" >
<strong style= "margin-left:12px" > Hello ${ctx['att_obj'].cn}</strong> ,<br /> <p style= "margin-left:12px" > ${object.organizer} invited you for the ${object.name} meeting of ${object.user_id.company_id.name}.</p>
</div>
<div style= "height: auto;margin-left:12px;margin-top:30px;" >
<table >
<tr >
<td >
<div style= "border-top-left-radius:3px;border-top-right-radius:3px;font-size:12px;border-collapse:separate;text-align:center;font-weight:bold;color:#ffffff;width:130px;min-height: 18px;border-color:#ffffff;background:#8a89ba;padding-top: 4px;" > ${object.get_interval(object.date, 'dayname')}</div>
<div style= "font-size:48px;min-height:auto;font-weight:bold;text-align:center;color: #5F5F5F;background-color: #E1E2F8;width: 130px;" >
${object.get_interval(object.date,'day')}
</div>
<div style= 'font-size:12px;text-align:center;font-weight:bold;color:#ffffff;background-color:#8a89ba' > ${object.get_interval(object.date, 'month')}</div>
<div style= "border-collapse:separate;color:#8a89ba;text-align:center;width: 128px;font-size:12px;border-bottom-right-radius:3px;font-weight:bold;border:1px solid;border-bottom-left-radius:3px;" > ${object.get_interval(object.date, 'time')}</div>
</td>
<td >
<table cellspacing= "0" cellpadding= "0" border= "0" style= "margin-top: 15px; margin-left: 10px;font-size: 16px;" >
% if object.location :
<tr style= " height: 30px;" >
<td style= "vertical-align:top;" >
<div style= "height: 25px; width: 120px; background : # CCCCCC; font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif;" >
Where
</div>
</td>
<td colspan= "1" style= "vertical-align:top;" >
<div style = "font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 14px" >
: ${object.location}
<span style= "color:#A9A9A9; " > (<a href= "http://maps.google.com/maps?oi=map&q=${object.location}" > View Map</a> )
</span>
</div>
</td>
</tr>
% endif
% if not object.location :
<tr style= " height: 30px;color:#909090" >
<td >
<div style= "height: 25px; width: 120px; background : # CCCCCC; font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif;" >
Where
</div>
</td>
<td colspan= "1" >
<div style = "font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 14px;" >
: -
</div>
</td>
</tr>
% endif
% if object.description :
<tr style= " height:auto;" >
<td style= "vertical-align:top;" >
<div style= "height:auto; width: 120px; background : # CCCCCC; font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif;" >
What
</div>
</td>
<td colspan= "3" style= "vertical-align:text-top;" >
<div style= "font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif;" >
: ${object.description or ''}
</div>
</td>
</tr>
% endif
% if not object.description :
<tr style= " height: 30px;color:#909090" >
<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" style= "vertical-align:text-top;" >
<div style= "font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif;" >
: -
</div>
</td>
</tr>
% endif
<tr style= " height: 30px;" >
<td style= "height: 25px;width: 120px; background : # CCCCCC; font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif;" >
<div >
Attendees
</div>
</td>
<td colspan= "3" >
: <div style= 'display:inline-block; border-radius: 50%; width:10px; height:10px;background:grey;' > </div>
<span style= "margin-left:5px" > You</span>
% for attendee in object.attendee_ids:
% if attendee.cn != ctx['att_obj'].cn:
<div style= 'display:inline-block; border-radius: 50%; width:10px; height:10px;background:${ctx[' c o l o r ' ] [ a t t e n d e e . s t a t e ] } ; ' > </div>
<span style= "margin-left:5px" > ${attendee.cn}</span>
% endif
% endfor
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div style= "height: auto;width:300px; margin:0 auto;padding-top:20px;" >
<a style= "padding: 8px 30px 8px 30px;border-radius: 6px;border: 1px solid #CCCCCC;background:#8A89BA;margin : 0 15px 0 0;text-decoration: none;color:#FFFFFF;" href= "${ctx['base_url']}/meeting_invitation/accept?db=${ctx['dbname']}&token=${ctx['att_obj'].access_token}&action=${ctx['action_id']}&id=${object.id}" > Accept</a>
<a style= "padding: 8px 30px 8px 30px;border-radius: 6px;border: 1px solid #CCCCCC;background:#808080;text-decoration: none;color:#FFFFFF;" href= "${ctx['base_url']}/meeting_invitation/decline?db=${ctx['dbname']}&token=${ctx['att_obj'].access_token}&action=${ctx['action_id']}&id=${object.id}" > Decline</a>
</div>
<div style= "padding-top:10px;" >
-- </br> Sent by ${object.user_id.name} from ${object.user_id.company_id.name}. View this meeting detail <a href= "${ctx['base_url']}/meeting_invitation/view?db=${ctx['dbname']}&token=${ctx['att_obj'].access_token}&action=${ctx['action_id']}&id=${object.id}" > directly in OpenERP.</a>
</div>
</div>
</body>
</html>
]]></field>
</record>
<record id= "crm_email_template_meeting_reminder" model= "email.template" >
<field name= "name" > Meeting Invitation</field>
<field name= "email_from" > ${object.user_id.email or ''}</field>
<field name= "subject" > ${object.name}</field>
<field name= "email_to" > ${ctx['att_obj'].email}</field>
<field name= "model_id" ref= "base_calendar.model_crm_meeting" />
<field name= "auto_delete" eval= "True" />
<field name= "body_html" > < ![CDATA[
<html >
<head >
<meta http-equiv= "Content-type" content= "text/html; charset=utf-8" />
<title > ${object.name}</title>
</head>
<body >
<div style= "border-radius: 2px; max-width: 1200px; height: auto;margin-left: auto;margin-right: auto;background-color:#f9f9f9;" >
<div style= "height:auto;text-align: center;font-size : 30px;color: #8A89BA;" >
<strong > REMINDER : ${object.name}</strong>
</div>
<div style= "height: 50px;text-align: left;font-size : 14px;border-collapse: separate;margin-top:10px" >
<strong style= "margin-left:12px" > Hello ${ctx['att_obj'].cn}</strong> ,<br /> <p style= "margin-left:12px" > ${object.organizer} invited you for the ${object.name} meeting of ${object.user_id.company_id.name}.</p>
</div>
<div style= "height: auto;margin-left:12px;margin-top:30px;" >
<table >
<tr >
<td >
<div style= "border-top-left-radius:3px;border-top-right-radius:3px;font-size:12px;border-collapse:separate;text-align:center;font-weight:bold;color:#ffffff;width:130px;min-height: 18px;border-color:#ffffff;background:#8a89ba;padding-top: 4px;" > ${object.get_interval(object.date, 'dayname')}</div>
<div style= "font-size:48px;min-height:auto;font-weight:bold;text-align:center;color: #5F5F5F;background-color: #E1E2F8;width: 130px;" >
${object.get_interval(object.date,'day')}
</div>
<div style= 'font-size:12px;text-align:center;font-weight:bold;color:#ffffff;background-color:#8a89ba' > ${object.get_interval(object.date, 'month')}</div>
<div style= "border-collapse:separate;color:#8a89ba;text-align:center;width: 128px;font-size:12px;border-bottom-right-radius:3px;font-weight:bold;border:1px solid;border-bottom-left-radius:3px;" > ${object.get_interval(object.date, 'time')}</div>
</td>
<td >
<table cellspacing= "0" cellpadding= "0" border= "0" style= "margin-top: 15px; margin-left: 10px;font-size: 16px;" >
% if object.location :
<tr style= " height: 30px;" >
<td style= "vertical-align:top;" >
<div style= "height: 25px; width: 120px; background : # CCCCCC; font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif;" >
Where
</div>
</td>
<td colspan= "1" style= "vertical-align:top;" >
<div style = "font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 14px" >
: ${object.location}
<span style= "color:#A9A9A9; " > (<a href= "http://maps.google.com/maps?oi=map&q=${object.location}" > View Map</a> )
</span>
</div>
</td>
</tr>
% endif
% if not object.location :
<tr style= " height: 30px;color:#909090" >
<td >
<div style= "height: 25px; width: 120px; background : # CCCCCC; font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif;" >
Where
</div>
</td>
<td colspan= "1" >
<div style = "font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 14px;" >
: -
</div>
</td>
</tr>
% endif
% if object.description :
<tr style= " height:auto;" >
<td style= "vertical-align:top;" >
<div style= "height:auto; width: 120px; background : # CCCCCC; font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif;" >
What
</div>
</td>
<td colspan= "3" style= "vertical-align:text-top;" >
<div style= "font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif;" >
: ${object.description or ''}
</div>
</td>
</tr>
% endif
% if not object.description :
<tr style= " height: 30px;color:#909090" >
<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" style= "vertical-align:text-top;" >
<div style= "font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif;" >
: -
</div>
</td>
</tr>
% endif
<tr style= " height: 30px;" >
<td style= "height: 25px;width: 120px; background : # CCCCCC; font-family: Lucica Grande', Ubuntu, Arial, Verdana, sans-serif;" >
<div >
Attendees
</div>
</td>
<td colspan= "3" >
: <div style= 'display:inline-block; border-radius: 50%; width:10px; height:10px;background:grey;' > </div>
<span style= "margin-left:5px" > You</span>
% for attendee in object.attendee_ids:
% if attendee.cn != ctx['att_obj'].cn:
<div style= 'display:inline-block; border-radius: 50%; width:10px; height:10px;background:${ctx[' c o l o r ' ] [ a t t e n d e e . s t a t e ] } ; ' > </div>
<span style= "margin-left:5px" > ${attendee.cn}</span>
% endif
% endfor
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
]]></field>
</record>
2012-06-28 06:40:05 +00:00
</data>
2010-01-22 07:33:05 +00:00
</openerp>