[MIG] web_widget_model_viewer: Migration to 14.0

Co-authored-by: Andrea Piovesana <andrea.m.piovesana@gmail.com>
This commit is contained in:
Marco Colombo
2021-10-07 15:44:24 +02:00
parent 1e6942bd3f
commit 6de896bd80
11 changed files with 525 additions and 9456 deletions

View File

@@ -18,7 +18,6 @@
title="Clear"
aria-label="Clear"
/>
<span class="o_form_binary_progress">Uploading...</span>
<t t-call="HiddenInputFile">
<t t-set="image_only" t-value="true" />
@@ -29,7 +28,7 @@
</div>
</t>
<t t-name="FieldBinaryModelViewer-glb">
<model-viewer
<model-viewer
t-att-src='url'
t-att-border="widget.readonly ? 0 : 1"
t-att-name="widget.name"
@@ -37,16 +36,16 @@
auto-rotate="1"
camera-controls="1"
>
<div class="text-center mt-2 mb-2 mr-2">
<span
<div class="text-center mt-2 mb-2 mr-2">
<span
id="model-viewer-fullscreen"
title="View fullscreen"
role="img"
aria-label="Fullscreen"
>
<i class="fa fa-arrows-alt fa-2x" />
</span>
</div>
</model-viewer>
<i class="fa fa-arrows-alt fa-2x" />
</span>
</div>
</model-viewer>
</t>
</templates>