Commit 5db3e921 by liuyongcheng

fix 委外收料修改

parent aee1da2b
......@@ -19,16 +19,6 @@ env = Environment(loader=templateloader)
class InheritEntrustOrderMain(Main):
def _prepare_entrust_send_info_data(self, line):
res = super(InheritEntrustOrderMain, self)._prepare_entrust_send_info_data(line)
previours_work_order = line._get_previous_wo()
plan_qty = line.plan_qty - sum(
previours_work_order.record_ids.mapped('unqualified_qty')) if previours_work_order else line.plan_qty
res.update({
"plan_qty": plan_qty,
"code": line.code
})
return res
# @http.route('/entrust/send/product', type='json', method=["POST", "OPTIONS"], auth='user', cors='*', csrf=False)
# def entrust_send_product(self):
......
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