Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 def actions(self):
     actions = [
         OrderLineSelectedAction,
         BatchChangeAction,
     ]
     #闭合的采购单不能再被修改
     if is_closed_by_order_id(self):
         actions = None
     return actions
Exemplo n.º 3
0
Arquivo: adminx.py Projeto: mgrai/mmcp
 def actions(self):
     actions = [OrderLineSelectedAction, BatchChangeAction,]
     #闭合的采购单不能再被修改
     if is_closed_by_order_id(self):
         actions = None
     return  actions
Exemplo n.º 4
0
Arquivo: adminx.py Projeto: 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