[FIX] controller alias parent and children for backward compatibility
authorAntony Lesuisse <al@openerp.com>
Fri, 22 Jul 2011 12:15:42 +0000 (14:15 +0200)
committerAntony Lesuisse <al@openerp.com>
Fri, 22 Jul 2011 12:15:42 +0000 (14:15 +0200)
bzr revid: al@openerp.com-20110722121542-9qgldsrz9b2t050a

addons/base/static/src/js/controller.js
addons/base/static/src/js/views.js

index fc124e9..1a100b6 100644 (file)
@@ -167,6 +167,9 @@ instance.base.Controller = instance.base.Class.extend( /** @lends instance.base.
         if(parent && parent.controller_children) {
             parent.controller_children.push(this);
         }
+        // backward compatibility
+        this.parent = this.controller_parent;
+        this.children = this.controller_children;
 
         // Transform on_* method into openerp.base.callbacks
         for (var name in this) {
index d14fdcb..49049a1 100644 (file)
@@ -18,6 +18,18 @@ openerp.base.ActionManager = openerp.base.Controller.extend({
      * Process an action
      * Supported actions: act_window
      */
+    action_window: function() {
+    },
+    action_window_close: function() {
+    },
+    action_server: function() {
+    },
+    action_url: function() {
+    },
+    action_report: function() {
+    },
+    action_client: function() {
+    },
     do_action: function(action, on_closed) {
         var self = this;
         action.flags = _.extend({
@@ -264,6 +276,7 @@ openerp.base.NullViewManager = openerp.base.generate_null_object_class(openerp.b
     }
 });
 
+// TODO Will move to action Manager
 openerp.base.ViewManagerAction = openerp.base.ViewManager.extend({
     init: function(parent, element_id, action) {
         this.session = parent.session;