diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-03-16 12:33:22 +0100 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-03-16 12:33:22 +0100 |
| commit | 7cee52681f157c44863a8a41f66a18480cf0055e (patch) | |
| tree | f1ad3d53ed05278c9df1f9a7d3afe406d0c26ba5 /addons/web/static/src/xml | |
| parent | 36ba035431cecf4d7f3faf7b377079ce827d5809 (diff) | |
[imp] made email readonly-able
bzr revid: nicolas.vanhoren@openerp.com-20120316113322-wgg7ixwal4qwc55f
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 8aa0241a5b5..4bfb18414ca 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -966,18 +966,25 @@ </div> </t> <t t-name="FieldEmail"> - <table t-attf-class="oe_form_field_#{type}" cellpadding="0" cellspacing="0" border="0" width="100%"> - <tr> - <td width="100%"> - <t t-call="FieldChar"/> - </td> - <td width="16"> - <button class="oe_button oe_field_button" type="button" title="Send an e-mail with your default e-mail client"> - <img t-att-src='_s + "/web/static/src/img/icons/terp-mail-message-new.png"'/> - </button> - </td> - </tr> - </table> + <t t-if="!widget.get('effective_readonly')"> + <table t-attf-class="oe_form_field_#{type}" cellpadding="0" cellspacing="0" border="0" width="100%"> + <tr> + <td width="100%"> + <t t-call="FieldChar"/> + </td> + <td width="16"> + <button class="oe_button oe_field_button" type="button" title="Send an e-mail with your default e-mail client"> + <img t-att-src='_s + "/web/static/src/img/icons/terp-mail-message-new.png"'/> + </button> + </td> + </tr> + </table> + </t> + <t t-if="widget.get('effective_readonly')"> + <div> + <a href="#" class="oe_form_uri"/> + </div> + </t> </t> <t t-name="FieldUrl"> <table t-attf-class="oe_form_field_#{type}" cellpadding="0" cellspacing="0" border="0" width="100%"> |
