Skip to Content
Menu
This question has been flagged
1 Reply
4157 Views

HI all,


I have a field "selection" ( fields.selection) with different values.

Some values are only for some automatic action. Thus,  I would like to make then "invisible" when users can select a value from this selection field. Is it possible?


My field:

'titre': fields.selection((('e','Email'), ('p','phone'),('m','Post/Mail'),('a','Automatic Action')),'Action',required=True


Inside my .xml:

<field name="titre"/>


Thank you,


Selverine

Avatar
Discard
Best Answer

Hi,

Simply You can't. But you can with the many2one field. Just use widget='selection' on view and make proper domains or your function on many2one model records

Avatar
Discard
Author

Hi Hilar. Thank you for your answer. I will use many2one.

Related Posts Replies Views Activity
4
Dec 23
20805
5
Jul 24
14036
1
Jun 22
25590
9
May 22
51409
0
Jul 20
2090