1
<?xml version="1.0" encoding="UTF-8"?>
3
<t t-name="FieldColor">
4
<span t-attf-class="oe_form_field {{widget.widget_class}}" t-att-style="widget.attrs.style">
6
t-att-id="widget.id_for_label"
7
t-att-tabindex="widget.attrs.tabindex"
8
t-att-autofocus="widget.attrs.autofocus"
9
t-att-placeholder="widget.attrs.placeholder"
10
t-att-maxlength="widget.field.size"
11
t-att-value="widget.value"
13
t-if="widget.mode !== 'readonly'"/>
15
<div t-if="!('readonly_mode' in widget.nodeOptions) or widget.nodeOptions.readonly_mode != 'text'" class="color_box" t-attf-style="background-color: {{widget.value}}" />
16
<span t-if="!('readonly_mode' in widget.nodeOptions) or widget.nodeOptions.readonly_mode != 'color'" class="oe_form_char_content"><t t-esc="widget.value" /></span>