fix - quota exception in distribution limit & sale licence and visibility free by org

This commit is contained in:
2025-11-02 10:59:57 +03:30
parent cca24d6f6a
commit 3b2dc4c522
10 changed files with 160 additions and 37 deletions

View File

@@ -0,0 +1,16 @@
VISIBILITY_MAP = {
'userrelations': 'organization',
'organization': 'id',
'quota': ['registerer_organization', 'assigned_organizations'],
'quotadistribution': ['assigner_organization', 'assigned_organization'],
'inventoryentry': 'organization',
'inventoryquotasaletransaction': 'organization',
'device': 'organization',
# 'deviceactivationcode': 'organization',
# 'deviceversion': 'organization',
# 'posclient': 'organization',
# 'deviceassignment': 'organization',
# 'stakeholders': 'organization',
# 'stakeholdershareamount': 'registering_organization',
# 'posfreeproducts': 'organization',
}