diff --git a/addons/crm/crm_lead_data.xml b/addons/crm/crm_lead_data.xml
index 7fbdb7eec54..8fc91ea8ea5 100644
--- a/addons/crm/crm_lead_data.xml
+++ b/addons/crm/crm_lead_data.xml
@@ -173,5 +173,30 @@
Won
crm.lead
+
+
+ Leads Created
+ crm.case.section
+
+
+
+ Leads to Opportunity
+ crm.case.section
+
+
+
+ Leads Stage Changed
+ crm.case.section
+
+
+
+ Opportunity Lost
+ crm.case.section
+
+
+
+ Opportunity Won
+ crm.case.section
+
diff --git a/addons/crm/crm_view.xml b/addons/crm/crm_view.xml
index 99d3752529e..6fc40979fbb 100644
--- a/addons/crm/crm_view.xml
+++ b/addons/crm/crm_view.xml
@@ -131,7 +131,7 @@
-
+
diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py
index a24208d6ce0..679455e3864 100644
--- a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py
+++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py
@@ -107,13 +107,13 @@ class account_analytic_account(osv.osv):
def set_open(self, cr, uid, ids, context=None):
self.write(cr, uid, ids, {'state': 'open'}, context=context)
message = _("Contract has been opened.")
- self.message_post(cr, uid, ids, body=message, context=context)
+ self.message_post(cr, uid, ids, body=message, subtype="hr_timesheet_invoice.mt_account_renewed", context=context)
return True
def set_pending(self, cr, uid, ids, context=None):
self.write(cr, uid, ids, {'state': 'pending'}, context=context)
message = _("Contract has been set as pending.")
- self.message_post(cr, uid, ids, body=message, context=context)
+ self.message_post(cr, uid, ids, body=message, subtype="hr_timesheet_invoice.mt_account_renew", context=context)
return True
account_analytic_account()
diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice_data.xml b/addons/hr_timesheet_invoice/hr_timesheet_invoice_data.xml
index e82b6fd19e8..410f59c6172 100644
--- a/addons/hr_timesheet_invoice/hr_timesheet_invoice_data.xml
+++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice_data.xml
@@ -24,13 +24,33 @@
- finished
+ Contract Finished
+ account.analytic.account
+
+
+ Contract Renewed
+ account.analytic.account
+
+
+ Contract to Renew
account.analytic.account
canceled
account.analytic.account
+
+ Contract to Renew
+ crm.case.section
+
+
+ Contract Renewed
+ crm.case.section
+
+
+ Contract Finished
+ crm.case.section
+
diff --git a/addons/sale/sale_data.xml b/addons/sale/sale_data.xml
index 89e1e7ed56c..b5a1ab4cd81 100644
--- a/addons/sale/sale_data.xml
+++ b/addons/sale/sale_data.xml
@@ -54,5 +54,15 @@
Sale Order Confirmed
sale.order
+
+
+ Quotation sent
+ crm.case.section
+
+
+
+ Sale Order Confirmed
+ crm.case.section
+