Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
50180134
Commit
50180134
authored
13 years ago
by
Antony Lesuisse
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] controller alias parent and children for backward compatibility
bzr revid: al@openerp.com-20110722121542-9qgldsrz9b2t050a
parent
519b0350
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
addons/base/static/src/js/controller.js
+3
-0
3 additions, 0 deletions
addons/base/static/src/js/controller.js
addons/base/static/src/js/views.js
+13
-0
13 additions, 0 deletions
addons/base/static/src/js/views.js
with
16 additions
and
0 deletions
addons/base/static/src/js/controller.js
+
3
−
0
View file @
50180134
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
addons/base/static/src/js/views.js
+
13
−
0
View file @
50180134
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment