[CLEAN] ir_needaction: cleaned needaction_count.

bzr revid: tde@openerp.com-20120828085018-z6uywvk2oeqoog06
This commit is contained in:
Thibault Delavallée
2012-08-28 10:50:18 +02:00
parent ec85db8e83
commit de18f4a401
+2 -4
View File
@@ -58,8 +58,6 @@ class ir_needaction_mixin(osv.Model):
def _needaction_count(self, cr, uid, domain=[], context=None):
""" Get the number of actions uid has to perform. """
dom = self._needaction_domain_get(cr, uid, context=context)
if dom is False:
if not dom:
return 0
result = self.search(cr, uid, (domain or []) +dom, context=context, count=True)
return result
return self.search(cr, uid, (domain or []) +dom, context=context, count=True)