예제 #1
0
파일: adminx.py 프로젝트: zengkai0209/mmcp
 def list_editable(self):
     list_editable = [
         'brand', 'expected_date', 'purchase_quantity', 'price'
     ]
     if is_closed_by_order_id(self):
         list_editable = None
     return list_editable
예제 #2
0
파일: adminx.py 프로젝트: zengkai0209/mmcp
 def actions(self):
     actions = [
         OrderLineSelectedAction,
         BatchChangeAction,
     ]
     #闭合的采购单不能再被修改
     if is_closed_by_order_id(self):
         actions = None
     return actions
예제 #3
0
파일: adminx.py 프로젝트: mgrai/mmcp
 def actions(self):
     actions = [OrderLineSelectedAction, BatchChangeAction,]
     #闭合的采购单不能再被修改
     if is_closed_by_order_id(self):
         actions = None
     return  actions
예제 #4
0
파일: adminx.py 프로젝트: mgrai/mmcp
 def list_editable(self):
     list_editable = ['brand','expected_date','purchase_quantity','price']
     if is_closed_by_order_id(self):
         list_editable = None
     return list_editable