[FIX] variable name: todos which are not open are closed, not open
bzr revid: xmo@openerp.com-20100809104121-om2ex4cw7x3cxeg5
This commit is contained in:
parent
18157c825f
commit
24bc556abb
|
@ -45,10 +45,10 @@ class res_config_configurable(osv.osv_memory):
|
||||||
def _progress(self, cr, uid, context=None):
|
def _progress(self, cr, uid, context=None):
|
||||||
total = self.pool.get('ir.actions.todo')\
|
total = self.pool.get('ir.actions.todo')\
|
||||||
.search_count(cr, uid, [], context)
|
.search_count(cr, uid, [], context)
|
||||||
open = self.pool.get('ir.actions.todo')\
|
closed = self.pool.get('ir.actions.todo')\
|
||||||
.search_count(cr, uid, [('state','<>','open')], context)
|
.search_count(cr, uid, [('state','<>','open')], context)
|
||||||
if total:
|
if total:
|
||||||
return round(open*100./total)
|
return round(closed*100./total)
|
||||||
return 100.
|
return 100.
|
||||||
|
|
||||||
def _get_image(self, cr, uid, context=None):
|
def _get_image(self, cr, uid, context=None):
|
||||||
|
|
Loading…
Reference in New Issue