Commit db4e503c by 夏超

[fix] 上推数据修改

parent ef07807d
......@@ -39,10 +39,10 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
rows = cur.fetchall()
rowdesc = cur.description
except Exception as e:
raise ValidationError("数据库查询失败")
finally:
cur.close()
conn.close()
raise ValidationError("数据库查询失败")
rows_data = [
dict(zip([col[0] for col in rowdesc], row))
for row in rows
......@@ -73,4 +73,4 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
finally:
cur.close()
conn.close()
return super(InheritRokeResultPutWarehouseWizard, self).default_get()
raise ValidationError("产出数据上推成功")
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