[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
This commit is contained in:
Thibault Delavallée 2014-01-09 12:07:09 +01:00
parent 4998d09808
commit 3f2d24d1b7
1 changed files with 1 additions and 1 deletions

View File

@ -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;