Commit 2172067b by 夏超

[fix] 修改收料接口

parent 9225f4c2
......@@ -29,7 +29,7 @@ class InheritEntrustOrderMain(Main):
previous = sorted(previous, key=lambda x: x['id'], reverse=True)[0] if previous else previous
wait_qty = previous.finish_qty * i._get_production_multiple(previous) \
if previous and http.request.env.user.company_id.freedom_work != "允许" else i.plan_qty
if wait_qty - (i.finish_qty + i.unqualified_qty) > 0:
if wait_qty - (i.finish_qty + i.unqualified_qty) <= 0:
continue
info.append({
'work_id': i.id,
......
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