[FIX] mail_compose_message: hide recipients data if False to avoid blank lines

bzr revid: tde@openerp.com-20140317132243-7cy089m8thd29y3l
This commit is contained in:
Thibault Delavallée 2014-03-17 14:22:43 +01:00
parent 43cc054048
commit 86934c1167
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@
<br />
<span>The following contacts will be mailed: </span>
</span>
<field name="recipients_data" class="oe_inline oe_compose_recipients" readonly="1"/>
<field name="recipients_data" class="oe_inline oe_compose_recipients" readonly="1" attrs="{'invisible':[('recipients_data', '=', False)]}"/>
<span attrs="{'invisible':['|', ('composition_mode', '!=', 'comment'), ('recipients_data', '=', False)]}">and</span>
<field name="partner_ids" widget="many2many_tags_email" placeholder="Add contacts to notify..."
context="{'force_email':True, 'show_email':True}"