|
@ -141,7 +141,8 @@ openerp.web_widget_boolean_switch = function(instance){ |
|
|
model.call('write', [[id], values], |
|
|
model.call('write', [[id], values], |
|
|
{'context': context}).then(_.bind(function(){ |
|
|
{'context': context}).then(_.bind(function(){ |
|
|
if(!this.view.grouped){ |
|
|
if(!this.view.grouped){ |
|
|
this.view.records._byId[this.id].attributes[this.field.name] = this.state; |
|
|
|
|
|
|
|
|
this.view.records._byId[this.id].attributes[ |
|
|
|
|
|
this.field.name] = this.state; |
|
|
} |
|
|
} |
|
|
}, {'view': this.view, 'field': this.field, |
|
|
}, {'view': this.view, 'field': this.field, |
|
|
'id': id, 'state': state})); |
|
|
'id': id, 'state': state})); |
|
|