Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3708 Weergaven

I have a requirement to create the selection field role : fields.selection[ (1,'January'), (2,'February'), (3,'March'), (4,'April'), (5,'May'), (6,'June'), (7,'July'), (8,'August'), (9,'September'), (10,'October'), (11,'November'), (12,'December')]

Now i want to hide the value January to all my users :-) How to achieve thi

Avatar
Annuleer
Beste antwoord

A solution can be to create a many2one field with selection widget that is in relation with a simple table called ir_month when you put the months. In this class the name field is the month name and ypou must insert a boolean field called hide. If haide is True the month doesn't show because you insert a domain on a field like this:

[('hide', '=', False)]
Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
4
dec. 23
22883
5
jul. 24
16209
1
jun. 22
27870
9
mei 22
54145
0
jul. 20
3448