[FIX] rename state 'cancel' to 'hidden'

bzr revid: xmo@openerp.com-20110718092714-s5q27nja5vyq8gqx
This commit is contained in:
Xavier Morel
2011-07-18 11:27:14 +02:00
parent e913fe264d
commit b983ade13a
@@ -285,7 +285,7 @@ openerp.base_dashboard.ConfigOverview = openerp.base.View.extend({
this.dataset = new openerp.base.DataSetSearch(
this.session, 'ir.actions.todo');
this.dataset.domain = ['|', '&', ['type', '=', 'recurring'],
['state', '!=', 'cancel'],
['state', '!=', 'hidden'],
'&', ['type', '!=', 'special'],
['state', '=', 'open']];
},
@@ -323,7 +323,7 @@ openerp.base_dashboard.ConfigOverview = openerp.base.View.extend({
// cancel todo
e.stopImmediatePropagation();
var todo_id = $(this).parent().data('id');
self.dataset.write(todo_id, {state: 'cancel'}, function () {
self.dataset.write(todo_id, {state: 'hidden'}, function () {
self.start();
});
})