Skip to content
Snippets Groups Projects
Commit 050e9c77 authored by maximilien(malb)'s avatar maximilien(malb)
Browse files

[FIX] sms: invisible description when empty


Before this change, when the recipient_single_description field was empty (the field is then false), the field box was still displayed before the number. Since the field is not editable there is just a blank space.

This PR hides the field when it is empty to avoid having the empty space.

closes odoo/odoo#105436

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 7bba9c99
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@
class="font-weight-bold"
attrs="{'invisible': [('comment_single_recipient', '=', False)]}"/>
<div attrs="{'invisible': [('comment_single_recipient', '=', False)]}">
<field name="recipient_single_description" class="oe_inline"/>
<field name="recipient_single_description" class="oe_inline" attrs="{'invisible': [('recipient_single_description', '=', False)]}"/>
<field name="recipient_single_number_itf" class="oe_inline" nolabel="1" options="{'onchange_on_keydown': True}" placeholder="e.g. +1 415 555 0100"/>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment