diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 07ca67081e0..65e675675e7 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -1675,8 +1675,8 @@ openerp.web.form.dialog = function(content, options) { }, options || {}); options.autoOpen = true; var dialog = new openerp.web.Dialog(null, options); - dialog.$dialog = $(content).dialog(dialog.dialog_options); - return dialog.$dialog; + dialog.$element = $(content).dialog(dialog.dialog_options); + return dialog.$element; }; openerp.web.form.FieldMany2One = openerp.web.form.Field.extend({