HimoolERP/apps/data/permissions.py

38 lines
745 B
Python
Raw Normal View History

2021-12-16 17:54:31 +08:00
from extensions.permissions import ModelPermission
2021-11-04 23:49:56 +08:00
2021-12-16 17:54:31 +08:00
class WarehousePermission(ModelPermission):
code = 'warehouse'
2021-12-16 17:54:31 +08:00
class ClientPermission(ModelPermission):
code = 'client'
2021-12-16 17:54:31 +08:00
class SupplierPermission(ModelPermission):
code = 'supplier'
2021-12-16 17:54:31 +08:00
class AccountPermission(ModelPermission):
code = 'account'
2021-12-16 17:54:31 +08:00
class ChargeItemPermission(ModelPermission):
code = 'charge_item'
2021-11-04 23:49:56 +08:00
2021-12-16 17:54:31 +08:00
class ClientCategoryPermission(ModelPermission):
code = 'client_category'
2021-12-16 17:54:31 +08:00
class SupplierCategoryPermission(ModelPermission):
code = 'supplier_category'
__all__ = [
'WarehousePermission', 'ClientPermission', 'SupplierPermission', 'AccountPermission',
'ChargeItemPermission', 'ClientCategoryPermission', 'SupplierCategoryPermission',
2021-11-04 23:49:56 +08:00
]