HimoolERP/apps/statistic/permissions.py

29 lines
587 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-26 23:00:08 +08:00
class PurchaseReportPermission(ModelPermission):
code = 'purchase_report'
class SalesReportPermission(ModelPermission):
code = 'sales_report'
2021-11-04 23:49:56 +08:00
2021-12-26 23:00:08 +08:00
2021-12-28 00:26:32 +08:00
class SalesHotGoodsPermission(ModelPermission):
code = 'sales_hot_goods'
class SalesTrendPermission(ModelPermission):
code = 'sales_trend'
2021-12-28 01:25:57 +08:00
class ProfitTrendPermission(ModelPermission):
code = 'profit_trend'
2021-12-26 23:00:08 +08:00
__all__ = [
'PurchaseReportPermission', 'SalesReportPermission',
2021-12-28 00:26:32 +08:00
'SalesHotGoodsPermission', 'SalesTrendPermission',
2021-12-28 01:25:57 +08:00
'ProfitTrendPermission',
2021-11-04 23:49:56 +08:00
]