fix bug of free products from pos in update

This commit is contained in:
2025-09-27 12:07:47 +03:30
parent 7cd5cd3f66
commit 826c49cdc1
2 changed files with 8 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ class ProductViewSet(viewsets.ModelViewSet, DynamicSearchMixin, POSDeviceMixin):
try:
trash(self.queryset, pk)
except APIException as e:
return Response(e, status.HTTP_204_NO_CONTENT)
return Response(e, status.HTTP_204_NO_CONTENT)
@action(
methods=['post'],