Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1931 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ส.ค. 24
6311
V14 t-if with custom selection field แก้ไขแล้ว
1
ก.พ. 21
2755
1
ก.ค. 25
2358
2
ก.ค. 25
7852
2
ก.ค. 25
4251