[FIX] Fixed breadcrumb exception when two breadcrumbs are on the same object

bzr revid: fme@openerp.com-20120912162911-q3yml2a5x96rmarp
This commit is contained in:
Fabien Meghazi 2012-09-12 18:29:11 +02:00
parent b1de50f961
commit f49b54b2e0
1 changed files with 2 additions and 1 deletions

View File

@ -566,7 +566,8 @@ instance.web.ViewManager = instance.web.Widget.extend({
}
return controller.get('title');
});
if (next && next.action && next.action.res_id && self.active_view === 'form' && self.model === next.action.res_model && id === next.action.res_id) {
if (next && next.action && next.action.res_id && self.dataset &&
self.active_view === 'form' && self.dataset.model === next.action.res_model && id === next.action.res_id) {
// If the current active view is a formview and the next item in the breadcrumbs
// is an action on same object (model / res_id), then we omit the current formview's title
titles.pop();