summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-03-16 12:44:24 +0100
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-03-16 12:44:24 +0100
commit55b40f3e17ddae55dd6e0240a1cb61376141f6a9 (patch)
tree7e07b2eebdfc669862f9790134c6ba92ee9dffd3 /addons/web/static/src/xml/base.xml
parent7cee52681f157c44863a8a41f66a18480cf0055e (diff)
[imp] made url readonly-able
bzr revid: nicolas.vanhoren@openerp.com-20120316114424-veofbtwtzmz7kakj
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml31
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 4bfb18414ca..05feec79168 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -987,18 +987,25 @@
</t>
</t>
<t t-name="FieldUrl">
- <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="Open this resource">
- <img t-att-src='_s + "/web/static/src/img/icons/gtk-ok.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="Open this resource">
+ <img t-att-src='_s + "/web/static/src/img/icons/gtk-ok.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="FieldText">
<div t-attf-class="oe_form_field_#{type}">