[FIX] mail: To: Followers of 'Undefined' became To: Followers of this document

bzr revid: chm@openerp.com-20121112083936-i87pc2fecce7ektg
This commit is contained in:
Christophe Matthieu
2012-11-12 09:39:36 +01:00
parent d8bc98b989
commit 6bf37ebb14
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -397,6 +397,7 @@ openerp.mail = function (session) {
this._super(parent, datasets, options);
this.show_compact_message = false;
this.show_delete_attachment = true;
console.log(this);
},
start: function () {
@@ -1536,6 +1537,8 @@ openerp.mail = function (session) {
}, this.node.params);
this.domain = this.node.params && this.node.params.domain || [];
console.log(this);
},
start: function () {
+1 -1
View File
@@ -109,7 +109,7 @@
<t t-name="mail.thread.list_recipients">
<div class="oe_mail_list_recipients">
To:
<span t-if="!widget.is_private" class="oe_all_follower">Followers <t t-raw="' of &quot;' + widget.parent_thread.parent_message.record_name + '&quot;' "/></span>
<span t-if="!widget.is_private" class="oe_all_follower">Followers <t t-raw="' of ' + (widget.parent_thread.parent_message.record_name ? '&quot;' + widget.parent_thread.parent_message.record_name + '&quot;' : 'this document')"/></span>
<t t-if="!widget.is_private and widget.partner_ids.length"> and </t>
<t t-set="inc" t-value="0"/>
<t t-if="widget.partner_ids.length" t-foreach="widget.partner_ids" t-as="partner"><span t-attf-class="oe_partner_follower #{inc>=3?'oe_hidden':''}"><t t-if="inc" t-raw="', '"/><a t-attf-href="#model=res.partner&amp;id=#{partner[0]}"><t t-raw="partner[1]"/></a></span><t t-set="inc" t-value="inc+1"/>