summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/fields.xml
diff options
context:
space:
mode:
authorMichael Mattiello (mcm) <mcm@odoo.com>2020-03-27 10:56:44 +0000
committerMichael Mattiello (mcm) <mcm@odoo.com>2020-03-31 07:11:01 +0000
commit4520a09f2c789626d6aba074e063deb490a5bb52 (patch)
tree0c7b1154e623240afef2d17aa8211615e781dd38 /addons/web/static/src/xml/fields.xml
parent9324282b0118e311382ee9a57cd10ef3f02d1dbb (diff)
[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
Diffstat (limited to 'addons/web/static/src/xml/fields.xml')
-rw-r--r--addons/web/static/src/xml/fields.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/fields.xml b/addons/web/static/src/xml/fields.xml
new file mode 100644
index 00000000000..ff7939f36a3
--- /dev/null
+++ b/addons/web/static/src/xml/fields.xml
@@ -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>