From 3f2d24d1b717fcf6ab74d85c324dfca77830bbdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 9 Jan 2014 12:07:09 +0100 Subject: [PATCH] [FIX] mail: Chatter widget: the RecordThread widget, that is used to display the Chatter on documents, should use the domain defined on the field. Indeed this domain is used when computing the 'read more' expandable domains. Before this fix it was not taken into account, leading to messages being fetched without respecting the domain defined on the field. bzr revid: tde@openerp.com-20140109110709-iz2jxryg5xqjedo4 --- addons/mail/static/src/js/mail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 64164b022a2..1f65058d4af 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -1790,7 +1790,7 @@ openerp.mail = function (session) { this.node.params.readonly = this.node.attrs.readonly; } - this.domain = this.node.params && this.node.params.domain || []; + this.domain = (this.node.params && this.node.params.domain) || (this.field && this.field.domain) || []; if (!this.ParentViewManager.is_action_enabled('edit')) { this.node.params.show_link = false;