跳至內容
選單
此問題已被標幟
1 回覆
1894 瀏覽次數

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.


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
8月 24
6235
1
2月 21
2696
1
7月 25
2323
2
7月 25
7803
2
7月 25
4205