mirror of
https://github.com/himool/HimoolERP.git
synced 2024-11-16 04:15:51 +08:00
44 lines
985 B
Python
44 lines
985 B
Python
from extensions.permissions import InterfacePermission
|
|
|
|
|
|
class WarehousePermission(InterfacePermission):
|
|
code = 'warehouse'
|
|
|
|
|
|
class ClientPermission(InterfacePermission):
|
|
code = 'client'
|
|
|
|
|
|
class SupplierPermission(InterfacePermission):
|
|
code = 'supplier'
|
|
|
|
|
|
class AccountPermission(InterfacePermission):
|
|
code = 'account'
|
|
|
|
|
|
class ChargeItemPermission(InterfacePermission):
|
|
code = 'charge_item'
|
|
|
|
|
|
class ClientCategoryPermission(InterfacePermission):
|
|
code = 'client_category'
|
|
|
|
|
|
class SupplierCategoryPermission(InterfacePermission):
|
|
code = 'supplier_category'
|
|
|
|
|
|
class GoodsCategoryPermission(InterfacePermission):
|
|
code = 'goods_category'
|
|
|
|
|
|
class GoodsUnitPermission(InterfacePermission):
|
|
code = 'goods_unit'
|
|
|
|
|
|
__all__ = [
|
|
'WarehousePermission', 'ClientPermission', 'SupplierPermission', 'AccountPermission',
|
|
'ChargeItemPermission', 'ClientCategoryPermission', 'SupplierCategoryPermission',
|
|
'GoodsCategoryPermission', 'GoodsUnitPermission',
|
|
]
|