mirror of
https://github.com/himool/HimoolERP.git
synced 2024-11-15 20:06:43 +08:00
37 lines
745 B
Python
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',
|
|
]
|