Accept Merge Request #1659: (feature/part_number -> develop)
Merge Request: 销售订单交付状态修改 Created By: @马广威 Accepted By: @马广威 URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/1659?initial=true
This commit is contained in:
@@ -657,11 +657,11 @@ class StockPicking(models.Model):
|
|||||||
if move_out:
|
if move_out:
|
||||||
workorder = move_out.subcontract_workorder_id
|
workorder = move_out.subcontract_workorder_id
|
||||||
workorder.button_start()
|
workorder.button_start()
|
||||||
# if self.location_id.name == '成品存货区' and self.location_dest_id == '客户':
|
if self.location_id.name == '成品存货区' and self.location_dest_id.name == '客户':
|
||||||
# sale_id = self.env['sale.order'].sudo().search(
|
sale_id = self.env['sale.order'].sudo().search(
|
||||||
# [('name', '=', self.origin)])
|
[('name', '=', self.origin)])
|
||||||
# if sale_id:
|
if sale_id and all(move.product_uom_qty == move.quantity_done for move in self.move_ids):
|
||||||
# sale_id.write({'state':'delivered'})
|
sale_id.write({'state':'delivered'})
|
||||||
return res
|
return res
|
||||||
|
|
||||||
# 创建 外协出库入单
|
# 创建 外协出库入单
|
||||||
|
|||||||
Reference in New Issue
Block a user