You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.3 KiB
31 lines
1.3 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templates>
|
|
<!-- Added an edit and delete button for 3D model also can upload 3D model-->
|
|
<t t-name="Field3DWidget" owl="1">
|
|
<div t-ref="field_3d">
|
|
<t t-if="!props.readonly">
|
|
<FileUploader onUploaded.bind="onFileUploaded">
|
|
<t t-set-slot="toggler">
|
|
<button class="o_select_file_button btn btn-light
|
|
border-0 rounded-circle m-1 p-1"
|
|
data-tooltip="Edit"
|
|
aria-label="Edit">
|
|
<i class="fa fa-pencil fa-fw"/>
|
|
</button>
|
|
</t>
|
|
<button t-if="this.props.record.data[this.props.name] and state.isValid"
|
|
class="o_clear_file_button btn btn-light
|
|
border-0 rounded-circle m-1 p-1"
|
|
data-tooltip="Clear"
|
|
aria-label="Clear"
|
|
t-on-click="onFileRemove">
|
|
<i class="fa fa-trash-o fa-fw"/>
|
|
</button>
|
|
</FileUploader>
|
|
</t>
|
|
<div t-attf-id="{{props.name}}_el"
|
|
class="view3d-wrapper view3d-square">
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</templates>
|
|
|