diff options
Diffstat (limited to 'addons/web/static/src/js/embed.js')
| -rw-r--r-- | addons/web/static/src/js/embed.js | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/addons/web/static/src/js/embed.js b/addons/web/static/src/js/embed.js deleted file mode 100644 index 1c261060da8..00000000000 --- a/addons/web/static/src/js/embed.js +++ /dev/null @@ -1,50 +0,0 @@ -openerp.web.embed = function(session) { - - session.util = session.util || {} - session.util.currentScript = function() { - var currentScript = document.currentScript; - if (!currentScript) { - var sc = document.getElementsByTagName('script'); - currentScript = sc[sc.length-1]; - } - return currentScript; - }; - - - /* - session.connection.on_session_invalid.add_last(function() { - console.error("invalid session", arguments); - }); - // */ - - - session.web.EmbedClient = session.web.Widget.extend({ - template: 'EmptyComponent', - init: function(action_id, options) { - this._super(); - this.action_id = action_id; - this.options = options || {}; - this.am = new session.web.ActionManager(); - }, - - start: function() { - var self = this; - - this.am.appendTo(this.$element.addClass('openerp')); - - return this.rpc("/web/action/load", { action_id: this.action_id }, function(result) { - var action = result.result; - action.flags = _.extend({ - //views_switcher : false, - search_view : false, - action_buttons : false, - sidebar : false - //pager : false - }, self.options, action.flags || {}); - - self.am.do_action(action); - }); - }, - - }); -}; |
