diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-02-21 17:45:36 +0100 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-02-21 17:45:36 +0100 |
| commit | 2ecdb960d0d6b03fb9c3dcce7798458958a8cf49 (patch) | |
| tree | 751a1cf548796bc8cafc938c2d4f4fba7bd1fb8b /addons/share/static/src/js | |
| parent | fdf7f935946f85ca53e7a159530d4351aa72735e (diff) | |
[imp] refactoring of ParentedMixin
bzr revid: nicolas.vanhoren@openerp.com-20120221164536-zajw6gixwu4n4xgh
Diffstat (limited to 'addons/share/static/src/js')
| -rw-r--r-- | addons/share/static/src/js/share.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/share/static/src/js/share.js b/addons/share/static/src/js/share.js index 05f45aaef42..a4dfba12e28 100644 --- a/addons/share/static/src/js/share.js +++ b/addons/share/static/src/js/share.js @@ -2,7 +2,7 @@ openerp.share = function(session) { function launch_wizard(self, view, user_type) { - var action = view.widget_parent.action; + var action = view.getParent().action; var Share = new session.web.DataSet(self, 'share.wizard', view.dataset.get_context()); var domain = new session.web.CompoundDomain(view.dataset.domain); if (view.fields_view.type == 'form') { @@ -57,7 +57,7 @@ session.web.Sidebar = session.web.Sidebar.extend({ }); }, on_sidebar_click_share: function(item) { - var view = this.widget_parent + var view = this.getParent() launch_wizard(this, view); }, }); |
