需求计划开发

This commit is contained in:
guanhuan
2025-07-01 14:34:27 +08:00
parent c31cc868a9
commit b267f2351d
5 changed files with 26 additions and 27 deletions

View File

@@ -173,6 +173,7 @@ class SfDemandPlan(models.Model):
status_line = line.line_ids.filtered(lambda p: p.status == '60')
if line.sale_order_id.state == 'cancel':
line.state = '50'
line.line_ids.status = '100'
elif len(line.line_ids) == len(status_line):
line.state = '40'
elif bool(status_line):