[FIX] it was imposible to add record link, if there is already one with the same title

pull/135/head
Ivan Yelizariev 2015-05-15 14:51:53 +02:00
parent 8358e2d1e3
commit 3fa2418c0c
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ openerp.web_last_viewed_records = function(instance){
x['view_type'] != item['view_type'] || x['view_type'] != item['view_type'] ||
x['url']['model'] != item['url']['model']) x['url']['model'] != item['url']['model'])
return false; return false;
if (x['view_type'] == 'form' && x['id'] != item['id']) if (x['view_type'] == 'form' && x['url']['id'] != item['url']['id'])
return false; return false;
return true; return true;
})) }))