[FIX] Fix bug in breadcrumb when a client action is present in the breadcrumb items
bzr revid: fme@openerp.com-20120802143246-7pgeueme3i6h1emc
This commit is contained in:
parent
2f9d78e611
commit
c2ad177f93
|
@ -528,7 +528,7 @@ instance.web.ViewManager = instance.web.Widget.extend({
|
|||
}
|
||||
return controller.get('title');
|
||||
});
|
||||
if (next && 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.active_view === 'form' && self.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