Fix bug introduced in previous commit.
This commit is contained in:
parent
7a552976ca
commit
a5f8d02211
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue