fix - bug of edit distribution with parent
This commit is contained in:
@@ -104,6 +104,12 @@ class InventoryQuotaSaleTransactionSerializer(serializers.ModelSerializer):
|
||||
many=True
|
||||
).data
|
||||
|
||||
if instance.seller_organization:
|
||||
representation['seller_organization'] = {
|
||||
'id': instance.seller_organization.id,
|
||||
'name': instance.seller_organization.name
|
||||
}
|
||||
|
||||
return representation
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user