Commit 2dde4842 by 赵言乐

Merge branch 'sdddl_project' of https://git.rokedata.com/dws/dwsproject into zyl_sdddl_project

parents b82443c2 5aea9b58
......@@ -67,7 +67,7 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
insert_sql_data = []
_uuid = uuid.uuid1()
for v in new_results:
if v.id in insert_id:
if f"'{v.id}'" in insert_id:
continue
insert_sql_data.append(f"""
('{_uuid}', '{v.product_id.code}', '{v.wo_id.code}', {v.qty or 0}, {v.id}, '{v.pt_id.code}', '{v.pt_id.task_type}',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment