File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
web_widget_color/static/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ openerp.web_widget_color = function (instance) {
18
18
widget_class : 'oe_form_field_color' ,
19
19
is_syntax_valid : function ( ) {
20
20
var $input = this . $ ( 'input' ) ;
21
- if ( ! this . get ( "effective_readonly" ) && $input . size ( ) > 0 ) {
21
+ if ( ! this . get ( "effective_readonly" ) && $input . size ( ) > 0 && $input . val ( ) ) {
22
22
var val = $input . val ( ) ;
23
23
var isOk = / ^ # [ 0 - 9 A - F ] { 6 } $ / i. test ( val ) ;
24
24
if ( ! isOk ) {
Original file line number Diff line number Diff line change 9
9
t-att-autofocus =" widget.node.attrs.autofocus"
10
10
t-att-placeholder =" widget.node.attrs.placeholder"
11
11
t-att-maxlength =" widget.field.size"
12
- class =" color {hash:true}"
12
+ class =" color {hash:true, required:false }"
13
13
/>
14
14
</t >
15
15
<t t-if =" widget.get('effective_readonly')" >
You can’t perform that action at this time.
0 commit comments