[FIX] kanban :- if no record found then display as a blank page.

bzr revid: ysa@tinyerp.com-20110922072001-u3rcsst3g0y9vwiz
This commit is contained in:
Yogesh (OpenERP) 2011-09-22 12:50:01 +05:30
parent 5ba40e5639
commit b20f60ba61
1 changed files with 7 additions and 1 deletions

View File

@ -432,7 +432,13 @@ openerp.web_kanban.KanbanView = openerp.web.View.extend({
self.datagroup.list([],
function (groups) {
self.groups = groups;
self.do_render_group(groups);
if (groups.length) {
self.do_render_group(groups);
}
else {
self.all_display_data = [];
self.on_show_data();
}
},
function (dataset) {
self.groups = [];