修改自动完成制造订单得方法,完工产品捡取需变成就绪状态
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user