diff options
| author | Christophe Matthieu <chm@openerp.com> | 2012-11-09 09:34:51 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2012-11-09 09:34:51 +0100 |
| commit | 4ea0e6ea0e70ba043f0645b7866e8de1086b54c8 (patch) | |
| tree | a68ef74e0b8b661f24d9fe2a2c1da82d0852d92c /addons/mail/static/src | |
| parent | 911d530e09d292392ad029d61b431b53915c0ff5 (diff) | |
[FIX] mail: display the message after post
bzr revid: chm@openerp.com-20121109083451-83lnbqokig7jp5ob
Diffstat (limited to 'addons/mail/static/src')
| -rw-r--r-- | addons/mail/static/src/js/mail.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index ecae61b2eb4..bae4f151a5e 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -567,7 +567,7 @@ openerp.mail = function (session) { thread = thread.parent_message.parent_thread; } // create object and attach to the thread object - thread.message_fetch(false, false, [record], function (arg, data) { + thread.message_fetch([['id', 'child_of', [self.id]]], false, [record], function (arg, data) { data[0].no_sorted = true; var message = thread.create_message_object( data[0] ); // insert the message on dom @@ -1194,6 +1194,7 @@ openerp.mail = function (session) { * @param {Array} ids read (if the are some ids, the method don't use the domain) */ message_fetch: function (replace_domain, replace_context, ids, callback) { + console.log(arguments); return this.ds_message.call('message_read', [ // ids force to read ids == false ? undefined : ids, |
