Skip to content
Snippets Groups Projects
Commit 3b901f0a authored by Sébastien Beau's avatar Sébastien Beau Committed by Martin Trigaux
Browse files

[FIX] web: ignored readonly attribute on image widget

parent 6164f52c
No related branches found
No related tags found
No related merge requests found
......@@ -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">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment