[FIX] add active_id to url

pull/135/head
Ivan Yelizariev 2015-05-11 17:21:23 +02:00
parent 02d82a468f
commit b6bf0e5cdb
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ openerp.web_last_viewed_records = function(instance){
} }
if (view_type=='form' && !url['id']) if (view_type=='form' && !url['id'])
return false; return false;
if (act.context && act.context.active_id)
url['active_id'] = act.context.active_id;
var last_viewed_item = { var last_viewed_item = {
'title': title, 'title': title,
'url': url, 'url': url,