跳至內容
選單
此問題已被標幟
2 回覆
4899 瀏覽次數

I have 4states ... Like:- new, in progress, resolved and cancelled... All states are clickable only ... So i wanted to do .. when it is in resolved state all three should be readonly ... 

Thank you 🙂

頭像
捨棄
最佳答案

Hi Ashutosh,

Try this,

field name = "state" attrs="{'readonly': [('state', 'in', ('resolved','new','in progress')]}"

Thanks

頭像
捨棄
最佳答案

Hi Ashutosh,

Try this,

field name = "state" attrs="{'readonly': [('state', '=', 'resolved')]}"

Thanks


頭像
捨棄
作者

I tried this one .. particular this state is getting readonly .. I need all the states to be readonly

相關帖文 回覆 瀏覽次數 活動
2
3月 24
2454
3
7月 23
5738
1
10月 22
8571
1
7月 22
2145
1
5月 21
6466