[FIX] Prevent field focus on embeded views
bzr revid: fme@openerp.com-20110808130847-vz15aorcqel040nu
This commit is contained in:
parent
f02dc603db
commit
ab2d202ed9
|
@ -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();
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue