HimoolERP/apps/data/permissions.py

28 lines
521 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
__all__ = [
'WarehousePermission', 'ClientPermission', 'SupplierPermission', 'AccountPermission',
'ChargeItemPermission',
2021-11-04 23:49:56 +08:00
]