fix quota incentive plan bug with calculate heavy & light value

This commit is contained in:
2025-09-02 17:05:35 +03:30
parent e6192928ec
commit edd98cf3a0

View File

@@ -480,8 +480,6 @@ class QuotaIncentiveAssignment(BaseModel):
return f"Quota ({self.quota.id}) for {self.incentive_plan.name}" return f"Quota ({self.quota.id}) for {self.incentive_plan.name}"
def save(self, *args, **kwargs): def save(self, *args, **kwargs):
self.calculate_heavy_value()
self.calculate_heavy_value()
return super(QuotaIncentiveAssignment, self).save(*args, **kwargs) return super(QuotaIncentiveAssignment, self).save(*args, **kwargs)