Commit 29f10570 by 赵言乐

删除代码

parent adad6c2a
......@@ -14,11 +14,6 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
def confirm(self):
"""确认入库"""
move_list = []
for line in self.line_ids:
line_val = self._get_move_line_val(line)
move_list.append(line_val)
self.env["roke.production.result.move"].create(move_list)
# 推送
if self._context.get('active_model') != "roke.production.result":
......@@ -100,11 +95,3 @@ class InheritRokeResultPutWarehouseWizard(models.TransientModel):
cur.close()
conn.close()
return super(InheritRokeResultPutWarehouseWizard, self).confirm()
def _get_move_line_val(self, line):
return {
"warehouse_id": self.warehouse_id.id,
"result_id": line.result_id.id,
"product_state_id": line.product_state_id.id,
"qty": line.stock_qty
}
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