diff --git a/addons/event/__openerp__.py b/addons/event/__openerp__.py
index 1e548f68991..e6e7755d03a 100644
--- a/addons/event/__openerp__.py
+++ b/addons/event/__openerp__.py
@@ -48,6 +48,7 @@ Note that:
'security/ir.model.access.csv',
'wizard/event_confirm_view.xml',
'event_view.xml',
+ 'event_data.xml',
'report/report_event_registration_view.xml',
'board_association_view.xml',
'res_partner_view.xml',
diff --git a/addons/event/event.py b/addons/event/event.py
index 763aa423378..845d9bdeb95 100644
--- a/addons/event/event.py
+++ b/addons/event/event.py
@@ -264,27 +264,27 @@ class event_event(osv.osv):
def create_send_note(self, cr, uid, ids, context=None):
message = _("Event has been created.")
- self.message_post(cr, uid, ids, body=message, context=context)
+ self.message_post(cr, uid, ids, body=message, subtype="new", context=context)
return True
def button_cancel_send_note(self, cr, uid, ids, context=None):
message = _("Event has been cancelled.")
- self.message_post(cr, uid, ids, body=message, context=context)
+ self.message_post(cr, uid, ids, body=message, subtype="cancelled", context=context)
return True
def button_draft_send_note(self, cr, uid, ids, context=None):
message = _("Event has been set to draft.")
- self.message_post(cr, uid, ids, body=message, context=context)
+ self.message_post(cr, uid, ids, body=message, subtype="new", context=context)
return True
def button_done_send_note(self, cr, uid, ids, context=None):
message = _("Event has been done.")
- self.message_post(cr, uid, ids, body=message, context=context)
+ self.message_post(cr, uid, ids, body=message, subtype="closed", context=context)
return True
def button_confirm_send_note(self, cr, uid, ids, context=None):
message = _("Event has been confirmed.")
- self.message_post(cr, uid, ids, body=message, context=context)
+ self.message_post(cr, uid, ids, body=message, subtype="confirmed", context=context)
return True
event_event()
@@ -331,7 +331,7 @@ class event_registration(osv.osv):
def confirm_registration(self, cr, uid, ids, context=None):
self.message_post(cr, uid, ids, body=_('State set to open'), context=context)
- return self.write(cr, uid, ids, {'state': 'open'}, context=context)
+ return self.write(cr, uid, ids, {'state': 'open'},context=context)
def create(self, cr, uid, vals, context=None):
obj_id = super(event_registration, self).create(cr, uid, vals, context)
@@ -360,13 +360,13 @@ class event_registration(osv.osv):
if today >= registration.event_id.date_begin:
values = {'state': 'done', 'date_closed': today}
self.write(cr, uid, ids, values)
- self.message_post(cr, uid, ids, body=_('State set to Done'), context=context)
+ self.message_post(cr, uid, ids, body=_('State set to Done'), subtype="closed", context=context)
else:
raise osv.except_osv(_('Error!'),_("You must wait for the starting day of the event to do this action.") )
return True
def button_reg_cancel(self, cr, uid, ids, context=None, *args):
- self.message_post(cr, uid, ids, body=_('State set to Cancel'), context=context)
+ self.message_post(cr, uid, ids, body=_('State set to Cancel'), subtype="cancelled", context=context)
return self.write(cr, uid, ids, {'state': 'cancel'})
def mail_user(self, cr, uid, ids, context=None):
@@ -436,12 +436,12 @@ class event_registration(osv.osv):
def create_send_note(self, cr, uid, ids, context=None):
message = _("Registration has been created.")
- self.message_post(cr, uid, ids, body=message, context=context)
+ self.message_post(cr, uid, ids, body=message, subtype="new", context=context)
return True
def do_draft_send_note(self, cr, uid, ids, context=None):
message = _("Registration has been set as draft.")
- self.message_post(cr, uid, ids, body=message, context=context)
+ self.message_post(cr, uid, ids, body=message, subtype="new", context=context)
return True
event_registration()
diff --git a/addons/event/event_data.xml b/addons/event/event_data.xml
index 2c19fdc574f..608dcdb4e8f 100644
--- a/addons/event/event_data.xml
+++ b/addons/event/event_data.xml
@@ -12,15 +12,41 @@
automatic
100
-
-
-
- mail.group
-
- notification
- Events Organisation application installed!
- From the top Events menu, you can organize events, manage registrations, automate communication around your event and sell events through your quotations.
+
+ new
+
+
+
+
+ closed
+
+
+
+ cancelled
+
+
+
+
+ confirmed
+
+
+
+
+
+
+
+
+
+
+
+
+
+ From the top menu Events, you can organize events, manage registrations, automate communication around your event and sell events through your quotations.
+ Module Events Organisation has been installed
+
diff --git a/addons/event/event_view.xml b/addons/event/event_view.xml
index b06ae9f0b6f..b131d9c9c52 100644
--- a/addons/event/event_view.xml
+++ b/addons/event/event_view.xml
@@ -101,7 +101,7 @@