Browse Source

fix issue on create new object on editable listview

pull/236/head
Pierre Verkest 9 years ago
parent
commit
6c80374aec
  1. 3
      web_widget_boolean_switch/static/src/js/web_widget_boolean_switch.js

3
web_widget_boolean_switch/static/src/js/web_widget_boolean_switch.js

@ -174,7 +174,8 @@ openerp.web_widget_boolean_switch = function(instance){
return _.str.sprintf('<input type="checkbox" %s %s data-rowid="%d"/>',
row_data[this.id].value ? 'checked="checked"' : '',
readonly ? 'readonly' : '',
row_data.hasOwnProperty('id') ? row_data.id.value : -1);
row_data.hasOwnProperty('id') && _.isNumber(row_data.id.value) ?
row_data.id.value : -1);
}
});

Loading…
Cancel
Save