[FIX] Fixed breadcrumb exception when two breadcrumbs are on the same object
bzr revid: fme@openerp.com-20120912162911-q3yml2a5x96rmarp
This commit is contained in:
parent
b1de50f961
commit
f49b54b2e0
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue