[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)
This commit is contained in:
Géry Debongnie
2015-01-21 09:49:17 +01:00
parent acc74dcfa4
commit fe352d673f
+1
View File
@@ -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();
},