[FIX] `this` is hard, let's go shopping

bzr revid: xmo@openerp.com-20120410083321-ahi5blkr25mdlgjx
This commit is contained in:
Xavier Morel 2012-04-10 10:33:21 +02:00
parent 7637e78fce
commit 71d17ace28
1 changed files with 2 additions and 2 deletions

View File

@ -647,8 +647,8 @@ openerp.web.FormView = openerp.web.View.extend({
reload: function() {
var self = this;
return this.reload_mutex.exec(function() {
if (this.dataset.index == null) {
this.do_prev_view();
if (self.dataset.index == null) {
self.do_prev_view();
return $.Deferred().reject().promise();
}
if (self.dataset.index == null || self.dataset.index < 0) {