修改生成制造订单时未生成编程单
This commit is contained in:
@@ -338,8 +338,8 @@ class MrpProduction(models.Model):
|
||||
limit=1, order='id asc')
|
||||
if not production_programming.programming_no or (is_fetchcnc is True and scrap_production):
|
||||
# 制造订单报废/返工也需重新编程
|
||||
if (is_fetchcnc is True and scrap_production) or (
|
||||
is_fetchcnc is False and scrap_production):
|
||||
if (is_fetchcnc is True and scrap_production is False) or (
|
||||
is_fetchcnc is False and scrap_production is False):
|
||||
production.fetchCNC(', '.join(product_id_to_production_names[production.product_id.id]),
|
||||
scrap_production)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user