[FIX] web: ignored readonly attribute on image widget

This commit is contained in:
Sébastien BEAU 2014-08-17 01:44:12 +02:00 committed by Martin Trigaux
parent 6164f52ca3
commit 3b901f0aa0
1 changed files with 11 additions and 9 deletions

View File

@ -1202,16 +1202,18 @@
</t> </t>
<t t-name="FieldBinaryImage"> <t t-name="FieldBinaryImage">
<span class="oe_form_field oe_form_field_image" t-att-style="widget.node.attrs.style"> <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-if="!widget.get('effective_readonly')">
<t t-call="HiddenInputFile"> <div class="oe_form_field_image_controls oe_edit_only">
<t t-set="fileupload_id" t-value="widget.fileupload_id"/> <t t-call="HiddenInputFile">
Edit <t t-set="fileupload_id" t-value="widget.fileupload_id"/>
</t> Edit
<div class="oe_form_binary_progress" style="display: none"> </t>
<img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/> <div class="oe_form_binary_progress" style="display: none">
<b>Uploading ...</b> <img t-att-src='_s + "/web/static/src/img/throbber.gif"' width="16" height="16"/>
<b>Uploading ...</b>
</div>
</div> </div>
</div> </t>
</span> </span>
</t> </t>
<t t-name="FieldBinaryImage-img"> <t t-name="FieldBinaryImage-img">