[ADD] web: add CustomCheckbox owl component

This commit adds an owl component for the Odoo custom checkbox.

task id: 2193996
This commit is contained in:
Michael Mattiello (mcm)
2020-03-31 06:13:11 +00:00
parent cde276a1ef
commit 91c7e574ed
4 changed files with 131 additions and 0 deletions
+15
View File
@@ -93,6 +93,21 @@
</div>
</t>
<t t-name="web.CustomCheckbox" owl="1">
<div class="custom-control custom-checkbox">
<input
t-att-id="props.id or _id"
type="checkbox"
class="custom-control-input"
t-att-disabled="props.disabled"
t-att-checked="props.value"
/>
<label t-att-for="props.id or _id" class="custom-control-label">
<t t-esc="props.text or '&#8203;'"/>
</label>
</div>
</t>
<t t-name="web.CustomFileInput" owl="1">
<span class="o_file_input" aria-atomic="true">
<span class="o_file_input_trigger" t-on-click.prevent="_onTriggerClicked">