Skip to Content
Menu
This question has been flagged
3374 Views

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'?

Avatar
Discard
Related Posts Replies Views Activity
0
Mar 25
1282
1
Feb 25
1065
4
Apr 24
174023
0
Dec 23
2053
5
Jul 25
227602