HimoolERP/apps/data/permissions.py
2021-12-16 17:54:31 +08:00

37 lines
745 B
Python

from extensions.permissions import ModelPermission
class WarehousePermission(ModelPermission):
code = 'warehouse'
class ClientPermission(ModelPermission):
code = 'client'
class SupplierPermission(ModelPermission):
code = 'supplier'
class AccountPermission(ModelPermission):
code = 'account'
class ChargeItemPermission(ModelPermission):
code = 'charge_item'
class ClientCategoryPermission(ModelPermission):
code = 'client_category'
class SupplierCategoryPermission(ModelPermission):
code = 'supplier_category'
__all__ = [
'WarehousePermission', 'ClientPermission', 'SupplierPermission', 'AccountPermission',
'ChargeItemPermission', 'ClientCategoryPermission', 'SupplierCategoryPermission',
]