From c7e392f18e59f88b0e510f67b8b0189338251bbf Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Wed, 18 Apr 2012 17:58:31 +0200 Subject: [PATCH] [fix] problem sometimes when we delete a record lp bug: https://launchpad.net/bugs/973627 fixed bzr revid: nicolas.vanhoren@openerp.com-20120418155831-ps8erb3fqxgf0cix --- addons/web/static/src/js/views.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index 8e8d3d43ce9..36e3c2b802b 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -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') {