[FIX] web: radio buttons

removed js that let user to uncheck radiobutton and from addons removed radiobuttons used for not required field except sync_typ.
changed this field as required because of functional requirement
This commit is contained in:
Pankaj Joshi
2014-11-24 16:45:20 +01:00
committed by Richard Mathot
parent 3b131ea64b
commit 80fd4e4bb6
7 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -115,7 +115,7 @@
<field name="decimal_precision" class="oe_inline"/>
</div>
<div>
<field name="tax_calculation_rounding_method" widget="radio" class="oe_inline" />
<field name="tax_calculation_rounding_method" class="oe_inline" />
</div>
</div>
<label for="id" string="Features"/>
@@ -10,7 +10,7 @@
<data>
<xpath expr="//field[@name='target_move']" position="after">
<field name="result_selection"/>
<field name="display_partner" widget="radio"/>
<field name="display_partner"/>
<newline/>
</xpath>
</data>
@@ -46,7 +46,7 @@ class base_gengo_translations(osv.osv_memory):
_columns = {
'sync_type': fields.selection([('send', 'Send New Terms'),
('receive', 'Receive Translation'),
('both', 'Both')], "Sync Type"),
('both', 'Both')], "Sync Type", required=True),
'lang_id': fields.many2one('res.lang', 'Language', required=True),
'sync_limit': fields.integer("No. of terms to sync"),
}
+1 -1
View File
@@ -127,7 +127,7 @@
</group>
</group>
<group>
<field name="class" widget="radio"/>
<field name="class"/>
<field name="show_as"/>
<field name="rrule" invisible="1" readonly="0" />
<field name="recurrent_id" invisible="1" />
@@ -7,7 +7,7 @@
<field name="arch" type="xml">
<form string="Send Mail">
<group>
<field name="forward_type" widget="radio" invisible="context.get('hide_forward_type',False)"/>
<field name="forward_type" invisible="context.get('hide_forward_type',False)"/>
</group>
<group>
<group>
+1 -1
View File
@@ -19,7 +19,7 @@
</xpath>
<xpath expr="//div[@name='div_default_options']" position="inside">
<div attrs="{'invisible':[('group_invoice_deli_orders','=',False)],'required': [('group_invoice_deli_orders','=',True)]}">
<field name="default_order_policy" class="oe_inline" widget="radio"/>
<field name="default_order_policy" class="oe_inline"/>
</div>
<div>
<field name="module_delivery" class="oe_inline"/>
-1
View File
@@ -3258,7 +3258,6 @@ instance.web.form.FieldRadio = instance.web.form.AbstractField.extend(instance.w
render_value: function () {
var self = this;
this.$el.toggleClass("oe_readonly", this.get('effective_readonly'));
this.$("input:checked").prop("checked", false);
if (this.get_value()) {
this.$("input").filter(function () {return this.value == self.get_value();}).prop("checked", true);
this.$(".oe_radio_readonly").text(this.get('value') ? this.get('value')[1] : "");