[FIX] mail: parent must have on_message_destroy function for set parent_thread
bzr revid: chm@openerp.com-20130201090239-1ekt20v6tiir8vbt
This commit is contained in:
parent
4e1f2c81ea
commit
622c4975ef
|
@ -236,7 +236,7 @@ openerp.mail = function (session) {
|
|||
this.options.rerender = true;
|
||||
this.options.toggle_read = true;
|
||||
}
|
||||
this.parent_thread = parent.messages != undefined ? parent : this.options.root_thread;
|
||||
this.parent_thread = typeof parent.on_message_detroy == 'function' ? parent : this.options.root_thread;
|
||||
this.thread = false;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue