diff options
| author | Sébastien BEAU <sebastien.beau@akretion.com> | 2014-08-17 01:44:12 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@openerp.com> | 2014-08-19 15:27:36 +0200 |
| commit | 3b901f0aa03b084e1700c2f43ee89435465b06b2 (patch) | |
| tree | 7de0319cb95dc41470d234f6aeb5a82a9120c465 /addons | |
| parent | 6164f52ca3d652ac6a8e2936a2c34570564544b3 (diff) | |
[FIX] web: ignored readonly attribute on image widget
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 20 |
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 3fc40128cf6..13d7e5df080 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1202,16 +1202,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"> |
