Fix bug introduced in previous commit.

This commit is contained in:
Albert Cervera i Areny 2014-12-12 17:48:30 +01:00
parent 7a552976ca
commit a5f8d02211
1 changed files with 2 additions and 3 deletions

View File

@ -686,9 +686,8 @@ class Asset:
'peer': peer,
})
continue
id = record.get('id'):
if id and SynchroMapping.search([
('remote_id', '=', id),
if record.get('id') and SynchroMapping.search([
('remote_id', '=', record['id']),
('peer', '=', peer),
]):
continue