添加注释
This commit is contained in:
@@ -836,6 +836,7 @@ class MrpProduction(models.Model):
|
|||||||
backorders = backorders - productions_to_backorder
|
backorders = backorders - productions_to_backorder
|
||||||
|
|
||||||
productions_not_to_backorder._post_inventory(cancel_backorder=True)
|
productions_not_to_backorder._post_inventory(cancel_backorder=True)
|
||||||
|
#查出最后一张工单完成入库操作
|
||||||
# if self.workorder_ids.filtered(lambda w: w.routing_type in ['表面工艺']):
|
# if self.workorder_ids.filtered(lambda w: w.routing_type in ['表面工艺']):
|
||||||
# move_finish = self.env['stock.move'].search([('created_production_id', '=', self.id)])
|
# move_finish = self.env['stock.move'].search([('created_production_id', '=', self.id)])
|
||||||
# if move_finish:
|
# if move_finish:
|
||||||
|
|||||||
Reference in New Issue
Block a user