change sharing to main company sheba in pos free products

This commit is contained in:
2025-11-08 11:59:47 +03:30
parent d50850e9ba
commit 145d1be922
2 changed files with 1 additions and 11 deletions

View File

@@ -31,11 +31,9 @@ class RegionFilterMixin:
# filter by organization type region
if org:
scope = organization.field_of_activity
print(scope)
if scope == 'CI':
if hasattr(queryset.model, 'city'):
queryset = queryset.filter(city=organization.city)
print(queryset)
elif hasattr(queryset.model, 'user'):
queryset = queryset.filter(user__city=organization.city)