add product serialize to broker - quota statistic by product
This commit is contained in:
@@ -113,6 +113,7 @@ class Product(BaseModel):
|
||||
).aggregate(total_entry=models.Sum('warehouse_entry'))['total_entry'] or 0
|
||||
|
||||
data = {
|
||||
'product': self.id,
|
||||
'quotas_count': quotas_count,
|
||||
'total_quotas_weight': total_quotas_weight,
|
||||
'total_remaining_quotas_weight': total_remaining_quotas_weight,
|
||||
|
||||
Reference in New Issue
Block a user