From fe352d673f9fef8841b42d1bc0d479a392c468db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Wed, 21 Jan 2015 09:48:51 +0100 Subject: [PATCH] [FIX] web: properly hide list view in pop up dialogs a many2many field can open a pop up dialog with different views, such as form view and list view. when the user click on the create button, it should hide the list view and display the form view. apparently, this behavior was hardcoded in the pop up dialog, and broken at some point between v8 and master. A proper fix would be to abstract the view manager behavior as a mixin and use it for the selectcreatepopup widget, for the one2many view manager and for the viewmanager. But this will take too much time for now, so a quick fix will do it. (however a task has been created) --- addons/web/static/src/js/view_form.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index abbc1330804..2783b85780c 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -5479,6 +5479,7 @@ instance.web.form.SelectCreatePopup = instance.web.form.AbstractFormPopup.extend } if (this.view_list) { this.view_list.do_hide(); + this.view_list.$el.parent().hide(); } this.setup_form_view(); },