[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:
Fabien Meghazi 2012-08-02 16:32:46 +02:00
parent 2f9d78e611
commit c2ad177f93
1 changed files with 1 additions and 1 deletions

View File

@ -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();