[FIX] web: ignored readonly attribute on image widget
This commit is contained in:
parent
6164f52ca3
commit
3b901f0aa0
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue