Commit a146aef1 by 夏超

[fix] 修改发料接口

parent 585450f9
...@@ -20,7 +20,14 @@ class InheritRokeRouting(models.Model): ...@@ -20,7 +20,14 @@ class InheritRokeRouting(models.Model):
res = super(InheritRokeRouting, self).get_routing_line_value(line) res = super(InheritRokeRouting, self).get_routing_line_value(line)
res.update({ res.update({
"special_process": line.special_process, "special_process": line.special_process,
"p_bom_ids": line.p_bom_ids "p_bom_ids": [
(0, 0, {
"product_id": v.product_id.id,
"protection_code": v.protection_code,
"qty": v.qty,
})
for v in line.p_bom_ids
]
}) })
return res return res
......
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