[fix] problem sometimes when we delete a record
lp bug: https://launchpad.net/bugs/973627 fixed bzr revid: nicolas.vanhoren@openerp.com-20120418155831-ps8erb3fqxgf0cix
This commit is contained in:
@@ -353,6 +353,7 @@ instance.web.ViewManager = instance.web.Widget.extend({
|
||||
* @returns {$.Deferred} switching end signal
|
||||
*/
|
||||
on_prev_view: function (options) {
|
||||
options = options || {};
|
||||
var current_view = this.views_history.pop();
|
||||
var previous_view = this.views_history[this.views_history.length - 1] || options['default'];
|
||||
if (options.created && current_view === 'form' && previous_view === 'list') {
|
||||
|
||||
Reference in New Issue
Block a user