summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2014-08-20 17:45:05 +0200
committerChristophe Simonis <chs@odoo.com>2014-08-20 17:45:05 +0200
commit8f13e8320edaca58fe19bb4ed4a2ad515f1c8515 (patch)
tree22a8c42f09f49edca74f557c88cf0af2e69f939e /addons/web/static/src/xml/base.xml
parentf32c88f932f6a27868a24aefb6fe46c0e635bf22 (diff)
parentd0a0b7d91de08612cb03bdead4d2789185884402 (diff)
[MERGE] forward port of branch 7.0 up to d0a0b7d
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml20
1 files changed, 11 insertions, 9 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 1fa1c544845..3fcc4786419 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1214,16 +1214,18 @@
</t>
<t t-name="FieldBinaryImage">
<span class="oe_form_field oe_form_field_image" t-att-style="widget.node.attrs.style">
- <div class="oe_form_field_image_controls oe_edit_only">
- <t t-call="HiddenInputFile">
- <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
- Edit
- </t>
- <div class="oe_form_binary_progress" style="display: none">
- <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
- <b>Uploading ...</b>
+ <t t-if="!widget.get('effective_readonly')">
+ <div class="oe_form_field_image_controls oe_edit_only">
+ <t t-call="HiddenInputFile">
+ <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
+ Edit
+ </t>
+ <div class="oe_form_binary_progress" style="display: none">
+ <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
+ <b>Uploading ...</b>
+ </div>
</div>
- </div>
+ </t>
</span>
</t>
<t t-name="FieldBinaryImage-img">