[IMP] don't display any todo in state cancel (soon to be 'hidden')

bzr revid: xmo@openerp.com-20110718084042-zydot2290ay115zx
This commit is contained in:
Xavier Morel
2011-07-18 10:40:42 +02:00
parent 24ec9ec616
commit e913fe264d
@@ -284,7 +284,8 @@ openerp.base_dashboard.ConfigOverview = openerp.base.View.extend({
this._super(parent_or_session, element_id);
this.dataset = new openerp.base.DataSetSearch(
this.session, 'ir.actions.todo');
this.dataset.domain = ['|', ['type', '=', 'recurring'],
this.dataset.domain = ['|', '&', ['type', '=', 'recurring'],
['state', '!=', 'cancel'],
'&', ['type', '!=', 'special'],
['state', '=', 'open']];
},