[FIX] @default_focus not honored in embedded form views

lp bug: https://launchpad.net/bugs/944080 fixed

bzr revid: fme@openerp.com-20120305171656-yz1jjoin17hh8ast
This commit is contained in:
Fabien Meghazi 2012-03-05 18:16:56 +01:00
parent 0e177c2505
commit 28f1ded961
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView#
if (self.sidebar) {
self.sidebar.attachments.do_update();
}
if (self.default_focus_field && !self.embedded_view) {
if (self.default_focus_field) {
self.default_focus_field.focus();
}
if (record.id) {