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

How can I define attributes in a .py with a field different than state?

Inside a .py I can tell a field to be readonly if their state is for example draft:

'name': fields.char( 'Name', readonly=True, states={'draft': [('readonly', False)]}),

how can i do this with a field different to state, for example a boolean 'manual'?

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
8月 25
1324
0
3月 25
1550
4
4月 24
174430
0
12月 23
2306
5
7月 25
228691