openerp.help_popup=function(instance,local){var_t=instance.web._t;instance.web.ViewManager.include({do_create_view:function(view_type){varself=this;varres=self._super(view_type);self.$el.find('span.view_help').each(function(){var$elem=$(this);if($elem.data('click-init')){returntrue;}$elem.data('click-init',true);//alert('ee' + self.action)console.log(self.action.id)if(self.action.id==undefined||(self.action.advanced_help==''&&self.action.enduser_help=='')){self.$el.find('span.view_help').hide()}$elem.on('click',function(e){varparams='height=650, width=800, location=no, ';params+='resizable=yes, menubar=yes';path=self.action.id;my_window=window.open('/report/html/help_popup.tpl_help/'+path,'Help',params);// allows to back to the window if opened previoulsysetTimeout('my_window.focus()',1);});returntrue;});returnres;},});}