change sharing to main company sheba in pos free products
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user