[FIX] web: avoid incoherent actual_mode after refresh

When accessing an existing record in form mode directly (enter the url or refresh a page), the daterecord has not been initialized yet. This means that the value of actual_mode will be set to 'edit' before loading the current record (method _actualize_mode() called from do_show()).
This was problematic for one2many fields that we loaded in edit mode, showing add/delete icons/buttons in readonly views. (opw 607910)
This commit is contained in:
Martin Trigaux 2014-10-24 15:36:58 +02:00
parent cd8bd872e8
commit 7ec7f1ba40
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
this.dataset.ids.push(state.id);
}
this.dataset.select_id(state.id);
this.do_show({ reload: warm });
this.do_show();
}
},
/**