diff --git a/addons/hr_expense/hr_expense.py b/addons/hr_expense/hr_expense.py
index a4745cc6806..c32717cee5c 100644
--- a/addons/hr_expense/hr_expense.py
+++ b/addons/hr_expense/hr_expense.py
@@ -128,7 +128,7 @@ class hr_expense_expense(osv.osv):
if expense.employee_id and expense.employee_id.parent_id.user_id:
self.message_subscribe_users(cr, uid, [expense.id], user_ids=[expense.employee_id.parent_id.user_id.id])
self.message_post(cr, uid, ids, body=_("The request is waiting for Approval"),
- subtype="hr_expense.mt_expense_approve", context=context)
+ subtype="hr_expense.mt_expense_approve")
self.write(cr, uid, ids, {
'state':'confirm',
'date_confirm': time.strftime('%Y-%m-%d')
@@ -137,7 +137,7 @@ class hr_expense_expense(osv.osv):
def expense_accept(self, cr, uid, ids, *args):
self.message_post(cr, uid, ids, body=_("The request has been approved"),
- subtype="hr_expense.mt_expense_approved", context=context)
+ subtype="hr_expense.mt_expense_approved")
self.write(cr, uid, ids, {
'state':'accepted',
'date_valid':time.strftime('%Y-%m-%d'),
@@ -147,7 +147,7 @@ class hr_expense_expense(osv.osv):
def expense_canceled(self, cr, uid, ids, *args):
self.message_post(cr, uid, ids, body=_("Request refused"),
- subtype="hr_expense.mt_expense_refused", context=context)
+ subtype="hr_expense.mt_expense_refused")
self.write(cr, uid, ids, {'state':'cancelled'})
return True