[FIX] on completion error, tell user there are no results

not sure whether and how an error could/should be reported to the
user. For now, it's automatically logged into the console.

bzr revid: xmo@openerp.com-20131125101819-u2akhr16bd5kcsmf
This commit is contained in:
Xavier Morel
2013-11-25 11:18:19 +01:00
parent 3542a27f9c
commit 52b8226a83
@@ -912,6 +912,8 @@
more: false,
results: rs
});
}, function () {
q.callback({more: false, results: []});
});
},
});
@@ -995,8 +997,8 @@
limit: 9,
context: website.get_context()
},
}).done(function () {
// request completed successfully -> unstore it
}).always(function () {
// request completed -> unstore it
self.req = null;
});
},