Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2608 Vizualizări

I have a selection field as follows:


source = fields.Selection([
('one', 'First'),
('two', 'Second'),
('three', 'Third'),
('four', 'Fourth'),
('five', 'Fifth'),
], required=True, default='one')


How can I show but inactive some of these options?


at the moment these options are all visible and selectable but I want some to be visible but inactive so not being selectable.

Imagine profil
Abandonează
Cel mai bun răspuns

Hello 

you can not inactive but based on your condition you can add and remove using fields_view_get method

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
aug. 17
7045
1
sept. 23
3902
1
sept. 23
2603
2
iun. 18
4804
2
iun. 23
4874