修复”制造订单完工后对应的成品入库单还是等待状态-应该是就绪状态“

This commit is contained in:
mgw
2024-07-04 16:12:27 +08:00
parent 1210625cfc
commit 869e3e4b4f
3 changed files with 5 additions and 2 deletions

View File

@@ -1016,7 +1016,7 @@ class ResMrpWorkOrder(models.Model):
move_raw_id.quantity_done = move_raw_id.product_uom_qty
record.process_state = '已完工'
record.production_id.process_state = '已完工'
if record.routing_type in ['解除装夹', '表面工艺']:
if record.routing_type in ['表面工艺']:
raw_move = self.env['stock.move'].sudo().search(
[('origin', '=', record.production_id.name),
('procure_method', 'in', ['make_to_order', 'make_to_stock']),