Skip to content

Commit

Permalink
Merge pull request #41 from gisce/Fix_delete_records_unlink
Browse files Browse the repository at this point in the history
Corrección de método delete records
  • Loading branch information
ecarreras authored May 21, 2024
2 parents cd41673 + c665def commit 815c72d
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 815c72d

Please sign in to comment.