[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,6 +1202,7 @@
</t>
<t t-name="FieldBinaryImage">
<span class="oe_form_field oe_form_field_image" t-att-style="widget.node.attrs.style">
<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"/>
@ -1212,6 +1213,7 @@
<b>Uploading ...</b>
</div>
</div>
</t>
</span>
</t>
<t t-name="FieldBinaryImage-img">