From c5fe07802e29304165a45bdcb7fc1b8d61cfc5ee Mon Sep 17 00:00:00 2001 From: "Sanjay Gohel (Open ERP)" Date: Wed, 28 Nov 2012 10:44:14 +0530 Subject: [PATCH] [IMP]improve code bzr revid: sgo@tinyerp.com-20121128051414-el91llx1d1i4i565 --- addons/hr_expense/hr_expense.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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