需求计划下达计划

This commit is contained in:
guanhuan
2025-07-04 10:18:28 +08:00
parent 6e877d0449
commit df4995fa24
4 changed files with 46 additions and 7 deletions

View File

@@ -193,7 +193,7 @@ class SfDemandPlan(models.Model):
result.append((plan.id, plan.sale_order_id.name))
return result
def button_batch_release_plan(self):
def button_production_release_plan(self):
line_ids = self.line_ids.filtered(lambda p: p.status == '30')
sum_product_uom_qty = sum(line_ids.mapped('plan_uom_qty'))
if sum_product_uom_qty > self.product_uom_qty: