[FIX] display popup if action is undefined

pull/149/head
David Beal 2015-07-22 19:34:08 +02:00
parent 4872219c34
commit 03d5ad5406
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,9 @@ openerp.help_popup = function(instance, local) {
return true;
}
$elem.data('click-init', true);
if (self.action.custom_help == '' && self.action.owner_help == '') {
//alert('ee' + self.action)
console.log(self.action.id)
if (self.action.id == undefined || (self.action.custom_help == '' && self.action.owner_help == '')) {
self.$el.find('span.view_help').hide()
}
$elem.on('click', function(e) {