From 390f0786361ee5977020b574136d712fac4d608c Mon Sep 17 00:00:00 2001 From: Peter Hahn Date: Wed, 27 Jan 2016 16:08:06 +0100 Subject: [PATCH] Update the chatter widget after closing the composition wizard --- .../static/src/js/web_widget_mail_send_odoo.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/web_widget_mail_send_odoo/static/src/js/web_widget_mail_send_odoo.js b/web_widget_mail_send_odoo/static/src/js/web_widget_mail_send_odoo.js index 8dba09cb..dc7b0911 100644 --- a/web_widget_mail_send_odoo/static/src/js/web_widget_mail_send_odoo.js +++ b/web_widget_mail_send_odoo/static/src/js/web_widget_mail_send_odoo.js @@ -51,8 +51,14 @@ instance.web.form.FieldEmailIntern = instance.web.form.FieldChar.extend({ default_res_id: fm.datarecord.id, }, on_close: function(){ - /* Todo: refresh the chatter widget here - */ + // refresh the chatter widget here + $.each(self.view.getChildren(), + function(index, value){ + if(value.widget=='mail_thread'){ + value.root.thread.message_fetch() + } + } + ); }, } );