[FIX] variable name: todos which are not open are closed, not open

bzr revid: xmo@openerp.com-20100809104121-om2ex4cw7x3cxeg5
This commit is contained in:
Xavier Morel 2010-08-09 12:41:21 +02:00
parent 18157c825f
commit 24bc556abb
1 changed files with 2 additions and 2 deletions

View File

@ -45,10 +45,10 @@ class res_config_configurable(osv.osv_memory):
def _progress(self, cr, uid, context=None):
total = self.pool.get('ir.actions.todo')\
.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)
if total:
return round(open*100./total)
return round(closed*100./total)
return 100.
def _get_image(self, cr, uid, context=None):