53 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			XML
		
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			XML
		
	
	
| <?xml version="1.0" encoding="UTF-8"?>
 | |
| <templates id="template" xml:space="preserve">
 | |
| 
 | |
|     <!-- Chatter widget on left side with followers of thread: show partners in red that will not receive an email -->
 | |
|     <t t-extend="mail.followers.partner">
 | |
|         <t t-jquery="a" t-operation="replace">
 | |
|             <t t-if="record.notify_email == 'none'">
 | |
|                 <a class="oe_follower_red" t-attf-href="#model=res.partner&id=#{record.id}" t-att-title="record.name" t-att-data-partner="record.id"><t t-esc="record.name"/></a>
 | |
|             </t>
 | |
|             <t t-if="record.notify_email != 'none'">
 | |
|                 <a t-attf-href="#model=res.partner&id=#{record.id}" t-att-title="record.name" t-att-data-partner="record.id"><t t-esc="record.name"/></a>
 | |
|             </t>
 | |
|         </t>
 | |
|     </t>
 | |
| 
 | |
|     <!-- Add recipients.ids for the Mail sent to message - this is not a guarantee that the partner got an email!
 | |
|          HINT: This template is called by mail.js mail.ThreadMessage which extends mail.MessageCommon
 | |
|                All relevant fields of mail.message should be available - if needed can be extended in
 | |
|                mail_follower_control/static/src/js/mail_follower_control.js
 | |
|     -->
 | |
|     <t t-extend="mail.thread.message">
 | |
|         <t t-jquery=".oe_msg_footer" t-operation="append">
 | |
|             <div class="oe_msg_notify_mail">
 | |
|                 <span>By e-mail to:</span>
 | |
|                     <t t-if="widget.type == 'notification' or ( (widget.type == 'email' or widget.type == 'comment') and widget.subtype)">
 | |
| 
 | |
|                         <t t-foreach="widget.notified_by_email_ids" t-as="partner">
 | |
|                             <span t-attf-class="oe_partner_follower">
 | |
|                                 <a t-if="widget.options.show_link" t-attf-href="#model=res.partner&id=#{partner[0]}">
 | |
|                                     <t t-raw="partner[1]"/>
 | |
|                                 </a>
 | |
|                                 <t t-if="!widget.options.show_link" t-raw="partner[1]"/>
 | |
|                             </span>
 | |
|                             <t t-if="!partner_last">,</t>
 | |
|                         </t>
 | |
| 
 | |
|                     </t>
 | |
|             </div>
 | |
|         </t>
 | |
|     </t>
 | |
| 
 | |
|     <!-- Todo: Extend the Quick mail composer with recipients_ids -->
 | |
|     <!-- HINT: This template for the quick mail composer is called by mail.js mail.ThreadComposeMessage which
 | |
|                extends mail.MessageCommon -> all relevant fields from mail.message should be available!
 | |
|                if not add them in mail_follower_control/static/src/js/mail_follower_control.js
 | |
|     -->
 | |
|     <!--<t t-extend="mail.compose_message">-->
 | |
|         <!--<t t-jquery=".oe_full" t-operation="after">-->
 | |
|             <!--<div>Notified by eMail: <t t-esc="widget.partner_ids"/></div>-->
 | |
|         <!--</t>-->
 | |
|     <!--</t>-->
 | |
| </templates>
 |