[FIX] `this` is hard, let's go shopping
bzr revid: xmo@openerp.com-20120410083321-ahi5blkr25mdlgjx
This commit is contained in:
parent
7637e78fce
commit
71d17ace28
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue