[REF] web: convert FieldBoolean to owl

This commit does 4 things:
- adds a file for deprecated legacy fields.
- moves legacy FieldBoolean into this file.
- converts FieldBoolean to owl component.
- adds a new xml file for component fields' templates.

task id: 2193996
This commit is contained in:
Michael Mattiello (mcm)
2020-03-31 07:11:01 +00:00
parent 9324282b01
commit 4520a09f2c
7 changed files with 285 additions and 130 deletions
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="web.FieldBoolean" owl="1">
<CustomCheckbox disabled="mode === 'readonly'" value="value"
class="o_field_boolean" t-on-change="_onChange"/>
</t>
</templates>