修改自动完成制造订单得方法,完工产品捡取需变成就绪状态

This commit is contained in:
qihao.gong@jikimo.com
2024-01-08 17:51:16 +08:00
parent 317b5d4ced
commit 3742a3b163
3 changed files with 90 additions and 1 deletions

View File

@@ -581,7 +581,8 @@ class ResMrpWorkOrder(models.Model):
if is_production_id == True and self.name == '解除装夹':
for move_raw_id in self.production_id.move_raw_ids:
move_raw_id.quantity_done = move_raw_id.product_uom_qty
self.production_id.state = 'done'
self.production_id.button_mark_done1()
# self.production_id.state = 'done'