fix: wmaterial添加can_handover字段

This commit is contained in:
caoqianming 2025-06-18 10:56:39 +08:00
parent 6af708d4f0
commit a819566c23
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ class WMaterial(CommonBDModel):
@property
def count_handovering(self):
return Handoverb.objects.filter(wm=self, submit_time__isnull=True).aggregate(count=Sum('count'))['count'] or 0
return Handoverb.objects.filter(wm=self, handover__submit_time__isnull=True).aggregate(count=Sum('count'))['count'] or 0
@classmethod
def mat_in_qs(cls, mtask: Mtask, qs=None):