Skip to content
Snippets Groups Projects
Commit 24bc556a authored by Xavier Morel's avatar Xavier Morel
Browse files

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

bzr revid: xmo@openerp.com-20100809104121-om2ex4cw7x3cxeg5
parent 18157c82
Branches
Tags
No related merge requests found
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment