From 4c129f3b27fb4694ed05dd46fff00410f2cfdec9 Mon Sep 17 00:00:00 2001 From: Kunkel Pierre Date: Sat, 14 Apr 2018 10:22:46 +0200 Subject: [PATCH] Manage readonly state on boolean in Dict widget issue7341 review42081002 --- src/view/form.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/view/form.js b/src/view/form.js index f713e467b0..1f1c58e09e 100644 --- a/src/view/form.js +++ b/src/view/form.js @@ -4288,6 +4288,10 @@ function eval_pyson(value){ get_value: function() { return this.input.prop('checked'); }, + set_readonly: function(readonly) { + this._readonly = readonly; + this.input.prop('disabled', readonly); + }, set_value: function(value) { this.input.prop('checked', value); }