跳至內容
選單
此問題已被標幟
3722 瀏覽次數

I have a py file and have set some read only states like this

READONLY_STATES = {

'waiting_admin_approval': [('readonly', True)], 

'done': [('readonly', True)],

'cancel': [('readonly', True)],

}

I have applied this states to the order line and it works fine.  But I need to make the field editable to the purchase manager and read only to the sales person when the order is in the 'waiting_admin_approval' state. 

Is it possible to update the state or override the state value in the view file ?

Thanks in advance.


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
7月 17
4846
1
2月 16
4280
2
10月 15
5352
1
6月 19
5064
1
4月 19
5634