Commit a848f2f6 by 赵言乐

fix bug

parent 4403fcef
......@@ -47,7 +47,7 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
ids_str = [f"'{v.id}'" for v in new_results]
if not ids_str:
_logger.info("数据不需要同步")
return super(InheritRokeResultPutWarehouseWizard, self).default_get(field_names)
return super(InheritRokeResultPutWarehouseWizard, self).confirm()
sql = f"""
select WBCCB_CCID
from WBCCB
......@@ -85,7 +85,7 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
VALUES
"""
if not insert_sql_data:
return super(InheritRokeResultPutWarehouseWizard, self).default_get(field_names)
return super(InheritRokeResultPutWarehouseWizard, self).confirm()
sql += " , ".join(insert_sql_data)
try:
cur.execute(sql)
......
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