[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:
parent
4998d09808
commit
3f2d24d1b7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue