~openerp-dev/openerp-web/7.0-bug-1092846-nwi

« back to all changes in this revision

Viewing changes to addons/web_gantt/static/src/js/gantt.js

  • Committer: niv-openerp
  • Date: 2013-02-27 11:31:32 UTC
  • Revision ID: nicolas.vanhoren@openerp.com-20130227113132-m2kr9slpxp1pogaz
[FIX] lot of potential bugs, mainly due to quickly clicking on menu items

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
        var self = this;
25
25
        this.fields_view = fields_view_get;
26
26
        this.$el.addClass(this.fields_view.arch.attrs['class']);
27
 
        return new instance.web.Model(this.dataset.model)
28
 
            .call('fields_get').then(function (fields) {
 
27
        return self.alive(new instance.web.Model(this.dataset.model)
 
28
            .call('fields_get')).then(function (fields) {
29
29
                self.fields = fields;
30
30
                self.has_been_loaded.resolve();
31
31
            });