[FIX] Bug in action manager. AFAIK, the parent of a ViewManager should be it's Action...
authorFabien Meghazi <fme@openerp.com>
Thu, 12 Jul 2012 16:31:43 +0000 (18:31 +0200)
committerFabien Meghazi <fme@openerp.com>
Thu, 12 Jul 2012 16:31:43 +0000 (18:31 +0200)
The bug could be experienced with action target new (Eg: debug Edit this Form)

bzr revid: fme@openerp.com-20120712163143-s1nbf88lqz011uhi

addons/web/static/src/js/views.js

index ffa78f3..423bf3f 100644 (file)
@@ -227,7 +227,7 @@ instance.web.ActionManager = instance.web.Widget.extend({
                 this.dialog_widget.destroy();
             }
             this.dialog.dialog_title = action.name;
-            this.dialog_widget = new instance.web.ViewManagerAction(this.dialog, action);
+            this.dialog_widget = new instance.web.ViewManagerAction(this, action);
             this.dialog_widget.appendTo(this.dialog.$element);
             this.dialog.open();
         } else  {