[FIX] project: ensure email alias field is visible event if empty
This commit show alias_name field span in read only, whether it is emtpy or not. The field is displayed in bold if not empty. task-2722863 closes odoo/odoo#82649 Closes: https://github.com/odoo/odoo/pull/82065 X-original-commit: bbc4ff1059d161414ef4338981eb015871ac46c5 Related: odoo/enterprise#23445 Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com>
This commit is contained in:
committed by
Mitali Patel
parent
a942000c2a
commit
5b751d36db
@@ -401,7 +401,8 @@
|
||||
<div name="alias_def" colspan="2" attrs="{'invisible': [('alias_domain', '=', False)]}">
|
||||
<!-- Always display the whole alias in edit mode. It depends in read only -->
|
||||
<field name="alias_enabled" invisible="1"/>
|
||||
<span class="font-weight-bold oe_read_only" attrs="{'invisible': [('alias_name', '=', False)]}">Create tasks by sending an email to </span>
|
||||
<span class="oe_read_only" attrs="{'invisible': [('alias_name', '!=', False)]}">Create tasks by sending an email to </span>
|
||||
<span class="font-weight-bold oe_read_only" attrs="{'invisible': [('alias_name', '=', False)]}">Create tasks by sending an email to </span>
|
||||
<span class="font-weight-bold oe_edit_only">Create tasks by sending an email to </span>
|
||||
<field name="alias_value" class="oe_read_only d-inline" readonly="1" widget="email" attrs="{'invisible': [('alias_name', '=', False)]}" />
|
||||
<span class="oe_edit_only">
|
||||
|
||||
Reference in New Issue
Block a user