[FIX] hr-expense : incmplete handling of canceld and reopened invoices
authorARA (OpenERP) <ara@tinyerp.com>
Thu, 29 Sep 2011 05:21:03 +0000 (10:51 +0530)
committerARA (OpenERP) <ara@tinyerp.com>
Thu, 29 Sep 2011 05:21:03 +0000 (10:51 +0530)
bzr revid: ara@tinyerp.com-20110929052103-r2sli46n67ahv4ej

addons/hr_expense/hr_expense.py

index b671705..b37cab4 100644 (file)
@@ -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()