[FIX] needaction: returns a count-like result.

bzr revid: tde@openerp.com-20121205143238-xbna8akgqduap2t5
This commit is contained in:
Thibault Delavallée
2012-12-05 15:32:38 +01:00
parent ae6f7b3a08
commit 37051bbe91
+2 -1
View File
@@ -61,4 +61,5 @@ class ir_needaction_mixin(osv.AbstractModel):
dom = self._needaction_domain_get(cr, uid, context=context)
if not dom:
return 0
return self.search(cr, uid, (domain or []) + dom, limit=100, order='id DESC', context=context)
res = self.search(cr, uid, (domain or []) + dom, limit=100, order='id DESC', context=context)
return len(res)