Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1927 Lượt xem

Hi, how to make one of selection data become invisible when already selected

table = fields.Selection(
string='Table',
selection=[('table_1', 'Table 1'),
('table_2', 'Table 2'),
('table_3', 'Table 3'),
('table_4', 'Table 4'),
('table_5', 'Table 5'),
('table_6', 'Table 6'),
('table_7', 'Table 7'),
('table_8', 'Table 8'),
('table_9', 'Table 9'),
('table_10', 'Table 10'),
],
required=False,
tracking=True)

It's like i want to hide table 2 when it's on occupied state until the payment is done. Thanks

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi  Denny,

There is no way to filter the value of the selection field or apply a domain to it,

You can use the Many2one field and use the domain to filter the values.


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 8 24
6306
1
thg 2 21
2747
1
thg 7 25
2353
2
thg 7 25
7841
2
thg 7 25
4236