[FIX] mail: display message after save document

bzr revid: chm@openerp.com-20121030153523-ebg68dd2yxuv5r3d
This commit is contained in:
Christophe Matthieu 2012-10-30 16:35:23 +01:00
parent a7d64a13e8
commit 9b9231dc4f
2 changed files with 3 additions and 2 deletions

View File

@ -360,7 +360,7 @@ openerp.mail = function (session) {
]).then(function (record) {
var thread = self.parent_thread;
if (self.options.display_indented_thread < self.thread_level) {
if (self.options.display_indented_thread < self.thread_level && thread.parent_message) {
thread = thread.parent_message.parent_thread;
}
// create object and attach to the thread object
@ -1481,6 +1481,7 @@ openerp.mail = function (session) {
}
if (this.root) {
$('<span class="oe_mail-placeholder"/>').insertAfter(this.root.$el);
this.root.destroy();
}
// create and render Thread widget

View File

@ -120,7 +120,7 @@
<field name="memo" widget="html" class="oe_memo" editor_height="450px" />
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field class="oe_chatter" name="message_ids" widget="mail_thread"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</form>
</field>