[FIX] needaction: returns a count-like result.
bzr revid: tde@openerp.com-20121205143238-xbna8akgqduap2t5
This commit is contained in:
parent
ae6f7b3a08
commit
37051bbe91
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue