hunk.code_window:     def do_accept(self):
           """ Marks event invitation as Accepted. """
           result = self.write({'state': 'accepted'})
           for attendee in self:
               attendee.event_id.message_post(body=_("%s has accepted invitation") % (attendee.cn), subtype="calendar.subtype_invitation")
           return result
       @api.multi
       def do_decline(self):
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit:             attendee.event_id.message_post(body=_("%s has accepted invitation") % (attendee.common_name), subtype="calendar.subtype_invitation")
  
hunk.file_path: addons/calendar/models/calendar.py
hunk.type: replace
file: <?xml version="1.0" encoding="utf-8"?>
  <odoo>
      <template id="assets_backend" name="calendar assets" inherit_id="web.assets_backend">
          <xpath expr="." position="inside">
              <link rel="stylesheet" href="/calendar/static/src/less/calendar.less"/>
              <script type="text/javascript" src="/calendar/static/src/js/base_calendar.js"></script>
          </xpath>
      </template>
  
      <!-- Template rendered in route auth=None, for anonymous user. This allow them to see meeting details -->
      <template id="invitation_page_anonymous" name="Calendar InvitationPAge for anonymous users">
          <t t-call="web.layout">
  
              <t t-set="head">
                  <t t-call-assets="web.assets_common" t-js="false"/>
                  <t t-call-assets="web.assets_frontend" t-js="false"/>
              </t>
  
              <div class="row">
                  <div class="col-md-12">
                      <div class="o_logo">
                          <img class="img img-responsive center-block" src="/web/binary/company_logo"/>
                      </div>
                  </div>
              </div>
  
              <div class="row">
                  <div class="col-md-6 col-md-offset-3">
                      <div class="panel panel-default">
                          <div class="panel-heading">
                              <h2>Calendar Invitation <small><t t-esc="event.name"/></small></h2>
                          </div>
                          <div class="panel-body">
  
                              <div class="pull-right mb16" t-if="attendee.state != 'needsAction'">
                                  <span class="label label-info">
                                      <t t-if="attendee.state == 'accepted'">Yes I'm going.</t>
                                      <t t-if="attendee.state == 'declined'">No I'm not going.</t>
                                  </span>
                              </div>
  
                              <table class="o_event_table table table-striped">
                                  <tr>
                                      <th>Invitation for</th>
                                      <td><t t-esc="attendee.cn"/> (<t t-esc="attendee.email"/>)</td>
                                  </tr>
                                  <tr>
                                      <th>Date</th>
                                      <td><t t-esc="event.display_time"/></td>
                                  </tr>
                                  <tr>
                                      <th>Location</th>
                                      <td><t t-esc="event.location or '-'"/></td>
                                  </tr>
                                  <tr>
                                      <th>Attendees</th>
                                      <td>
                                          <ul>
                                              <li t-foreach="event.attendee_ids" t-as="attendee" t-attf-class="o_#{attendee.state}">
                                                  <t t-esc="attendee.cn"/>
                                              </li>
                                          </ul>
                                      </td>
                                  </tr>
                              </table>
                          </div>
                      </div>
                  </div>
  
              </div>
          </t>
      </template>
  </odoo>
  