Skip to content
Snippets Groups Projects
Commit 50180134 authored by Antony Lesuisse's avatar Antony Lesuisse
Browse files

[FIX] controller alias parent and children for backward compatibility

bzr revid: al@openerp.com-20110722121542-9qgldsrz9b2t050a
parent 519b0350
Branches
Tags
No related merge requests found
......@@ -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) {
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment