From 211e143c6368e7cbf02bd70ee577b6c825b09336 Mon Sep 17 00:00:00 2001 From: "ARA (OpenERP)" Date: Thu, 29 Sep 2011 10:51:03 +0530 Subject: [PATCH] [FIX] hr-expense : incmplete handling of canceld and reopened invoices bzr revid: ara@tinyerp.com-20110929052103-r2sli46n67ahv4ej --- addons/hr_expense/hr_expense.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/hr_expense/hr_expense.py b/addons/hr_expense/hr_expense.py index b671705d769..b37cab45a94 100644 --- a/addons/hr_expense/hr_expense.py +++ b/addons/hr_expense/hr_expense.py @@ -226,8 +226,7 @@ class hr_expense_expense(osv.osv): return res def action_invoice_cancel(self, cr, uid, ids, context=None): - self.write(cr, uid, ids, {'state': 'invoice_except'}, context=context) - return True + return self.write(cr, uid, ids, {'state': 'invoice_except'}, context=context) hr_expense_expense()