跳至内容
菜单
此问题已终结
3553 查看

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
1314
0
3月 25
1535
4
4月 24
174415
0
12月 23
2301
5
7月 25
228648