[FIX] web_kanban: reload the view at start

bzr revid: chs@openerp.com-20111116103446-vnf1z5cvzol9uf23
This commit is contained in:
Christophe Simonis 2011-11-16 11:34:46 +01:00
parent e07737f0ab
commit 1bfed1c811
1 changed files with 2 additions and 1 deletions

View File

@ -39,12 +39,13 @@ openerp.web_kanban.KanbanView = openerp.web.View.extend({
this.$element.find('button.oe_kanban_button_new').click(this.do_add_record);
this.$groups = this.$element.find('.oe_kanban_groups tr');
var context = new openerp.web.CompoundContext(this.dataset.get_context());
return this.rpc('/web/view/load', {
this.rpc('/web/view/load', {
'model': this.dataset.model,
'view_id': this.view_id,
'view_type': 'kanban',
context: context
}, this.on_loaded);
this.do_reload();
},
on_loaded: function(data) {
this.fields_view = data;