Skip to Content
मेन्यू
This question has been flagged
3554 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
2
अग॰ 25
1316
0
मार्च 25
1535
4
अप्रैल 24
174416
0
दिस॰ 23
2301
5
जुल॰ 25
228653