[FIX] Correctly check the id index in dataset
lp bug: https://launchpad.net/bugs/1098508 fixed bzr revid: fme@openerp.com-20130225161236-8yb98wfzbkawr8yu
This commit is contained in:
parent
18387d7e0b
commit
017d75f6f0
|
@ -247,7 +247,7 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
|
|||
|
||||
do_load_state: function(state, warm) {
|
||||
if (state.id && this.datarecord.id != state.id) {
|
||||
if (!this.dataset.get_id_index(state.id)) {
|
||||
if (this.dataset.get_id_index(state.id) === null) {
|
||||
this.dataset.ids.push(state.id);
|
||||
}
|
||||
this.dataset.select_id(state.id);
|
||||
|
|
Loading…
Reference in New Issue