[FIX] Prevent field focus on embeded views

bzr revid: fme@openerp.com-20110808130847-vz15aorcqel040nu
This commit is contained in:
Fabien Meghazi 2011-08-08 15:08:47 +02:00
parent f02dc603db
commit ab2d202ed9
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ openerp.base.FormView = openerp.base.View.extend( /** @lends openerp.base.FormVi
if (this.sidebar) {
this.sidebar.attachments.do_update();
}
if (this.default_focus_field) {
if (this.default_focus_field && !this.embedded_view) {
this.default_focus_field.focus();
}
},