More robust search for chatter

pull/279/head
Peter Hahn 2016-01-27 20:56:03 +01:00
parent 08bb9053ef
commit dbded7695f
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ openerp.web_widget_mail_send_odoo = function(instance) {
// refresh the chatter widget here // refresh the chatter widget here
$.each(self.view.getChildren(), $.each(self.view.getChildren(),
function(index, value){ function(index, value){
if(value.widget=='mail_thread'){ if(value.root && value.root.thread && value.root.thread.message_fetch){
value.root.thread.message_fetch() value.root.thread.message_fetch()
} }
} }