diff options
| author | Christophe Matthieu <chm@openerp.com> | 2013-04-11 11:06:54 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2013-04-11 11:06:54 +0200 |
| commit | 67452d290eac4e26a0d940510960e2cdc36c657b (patch) | |
| tree | bce80a7d6574c5ca0f55d46dd751693b90e288c2 /addons/web/static/src/js | |
| parent | f2beb97168c474b11b80eff24cab7ff4a450a2ab (diff) | |
[IMP] view_form: radio button: change style for required field
bzr revid: chm@openerp.com-20130411090654-ujf7fio6lnsppv90
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/view_form.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index e1c5208358c..42c021f9717 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -2813,14 +2813,13 @@ instance.web.form.FieldRadio = instance.web.form.AbstractField.extend(instance.w /* Radio button widget: Attributes options: * - "horizontal" to display in column * - "no_radiolabel" don't display text values - * - "display_readonly" to display radio button (not clickable) in read only mode */ this._super(field_manager, node); this.horizontal = +this.options.horizontal || false; this.no_radiolabel = +this.options.no_radiolabel || false; - this.display_readonly = +this.options.display_readonly || false; this.selection = _.clone(this.field.selection) || []; this.domain = false; + console.log(this); }, initialize_content: function () { this.uniqueId = _.uniqueId("radio"); @@ -2888,7 +2887,7 @@ instance.web.form.FieldRadio = instance.web.form.AbstractField.extend(instance.w render_value: function () { this.$(".oe_radio_edit_only, .oe_radio_read_only").hide(); this.$(this.get('effective_readonly') ? ".oe_radio_read_only" : ".oe_radio_edit_only").show(); - this.$("input[checked]").prop("checked", false); + this.$("input[checked]").attr("checked", false); if (this.get_value()) { this.$("input[value='" + this.get_value() + "']").attr("checked", true); this.$(".oe_radio_read_only .oe_radio_header").text(this.get('value') ? this.get('value')[1] : ""); |
