[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:
Fabien Meghazi 2013-02-25 17:12:36 +01:00
parent 18387d7e0b
commit 017d75f6f0
1 changed files with 1 additions and 1 deletions

View File

@ -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);