Commit ac43058e by liuyongcheng

fix 委外发货app添加工单编号

parent 1c6b7110
...@@ -24,7 +24,10 @@ class InheritEntrustOrderMain(Main): ...@@ -24,7 +24,10 @@ class InheritEntrustOrderMain(Main):
previours_work_order = line._get_previous_wo() previours_work_order = line._get_previous_wo()
plan_qty = line.plan_qty - sum( plan_qty = line.plan_qty - sum(
previours_work_order.record_ids.mapped('unqualified_qty')) if previours_work_order else line.plan_qty previours_work_order.record_ids.mapped('unqualified_qty')) if previours_work_order else line.plan_qty
res.update({"plan_qty": plan_qty}) res.update({
"plan_qty": plan_qty,
"code": line.code
})
return res return res
@http.route('/entrust/send/product', type='json', method=["POST", "OPTIONS"], auth='user', cors='*', csrf=False) @http.route('/entrust/send/product', type='json', method=["POST", "OPTIONS"], auth='user', cors='*', csrf=False)
......
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