2025-11-02 10:59:57 +03:30
|
|
|
VISIBILITY_MAP = {
|
|
|
|
|
'userrelations': 'organization',
|
|
|
|
|
'organization': 'id',
|
|
|
|
|
'quota': ['registerer_organization', 'assigned_organizations'],
|
2025-11-02 15:35:44 +03:30
|
|
|
'quotastats': ['quota__registerer_organization', 'quota__assigned_organizations'],
|
2025-11-02 17:06:19 +03:30
|
|
|
'productstats': 'organization',
|
2025-11-02 10:59:57 +03:30
|
|
|
'quotadistribution': ['assigner_organization', 'assigned_organization'],
|
|
|
|
|
'inventoryentry': 'organization',
|
2025-11-10 12:48:53 +03:30
|
|
|
'inventoryquotasaletransaction': 'seller_organization',
|
2025-11-11 12:36:04 +03:30
|
|
|
'device': 'assignment__client__organization',
|
2025-12-22 09:42:22 +03:30
|
|
|
'rancher': 'organization',
|
2025-12-22 14:38:52 +03:30
|
|
|
'rancherorganizationlink': 'organization', # noqa
|
2026-01-07 14:21:27 +03:30
|
|
|
'tagbatch': 'organization', # noqa
|
2025-11-02 15:35:44 +03:30
|
|
|
|
2025-11-02 10:59:57 +03:30
|
|
|
# 'deviceactivationcode': 'organization',
|
|
|
|
|
# 'deviceversion': 'organization',
|
|
|
|
|
# 'posclient': 'organization',
|
|
|
|
|
# 'deviceassignment': 'organization',
|
|
|
|
|
# 'stakeholders': 'organization',
|
|
|
|
|
# 'stakeholdershareamount': 'registering_organization',
|
|
|
|
|
# 'posfreeproducts': 'organization',
|
|
|
|
|
}
|
2025-11-03 10:18:59 +03:30
|
|
|
|
|
|
|
|
VISIBILITY_MAP_BY_ORG_KEY = {
|
|
|
|
|
'device': {
|
|
|
|
|
'PSP': 'organization',
|
2025-11-11 12:36:04 +03:30
|
|
|
'CO': 'assignment__client__organization',
|
2025-11-09 08:27:36 +03:30
|
|
|
'CI': 'assignment__client__organization',
|
2025-11-11 12:36:04 +03:30
|
|
|
'U': 'assignment__client__organization',
|
2025-11-09 08:50:28 +03:30
|
|
|
'AGC': 'assignment__client__organization',
|
2025-11-11 12:36:04 +03:30
|
|
|
'EMP': 'assignment__client__organization',
|
2025-11-03 10:18:59 +03:30
|
|
|
},
|
|
|
|
|
}
|