Do not try to delete XML data without id
If the record has already been cleaned, there is no need to try to delete again. (grafted from e5ed9fc71d218c967bdbfc9489773905e5a5466c) --HG-- branch : 6.0
This commit is contained in:
@@ -795,6 +795,9 @@ def post_import(pool, module, to_delete):
|
||||
|
||||
for mrec in mdata:
|
||||
model, db_id, fs_id = mrec.model, mrec.db_id, mrec.fs_id
|
||||
if db_id is None:
|
||||
mdata_delete.append(mrec)
|
||||
continue
|
||||
|
||||
logger.info('Deleting %s@%s from %s.%s', db_id, model, module, fs_id)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user