mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] it was imposible to add record link, if there is already one with the same title
This commit is contained in:
@@ -22,7 +22,7 @@ openerp.web_last_viewed_records = function(instance){
|
||||
x['view_type'] != item['view_type'] ||
|
||||
x['url']['model'] != item['url']['model'])
|
||||
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 true;
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user