Skip to content

Commit

Permalink
unlink must receive a list of ids in most cases
Browse files Browse the repository at this point in the history
  • Loading branch information
egarciadiaz committed May 21, 2024
1 parent cd41673 commit c665def
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oopgrade/oopgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def delete_record(cursor, module_name, record_names):
cursor.execute(sql_model_del, params_model_del)

model_o = pool.get(model_data_vs['model'])
model_o.unlink(cursor, uid, model_data_vs['res_id'])
model_o.unlink(cursor, uid, [model_data_vs['res_id']])
elif model_data_vs and len(model_data_vs) > 1:
raise Exception(
"More than one record found for model %s" % (model_data_vs['model'])
Expand Down

0 comments on commit c665def

Please sign in to comment.