我需要帮助来完成我想在 Odoo 8 中实现的目标。我有 2 个选择。A 和 B。根据选择 A 中选择的值,我需要在选择 B 中显示特定值。一段代码更清楚:
selection_A = fields.Selection([('fruit', 'Fruit'),
('branch', 'Branch'),
('root','Root')],
'Tree', required=True)
selection_B = fields.Selection([('deep', 'Deep'),
('large', 'Large'),
('orange','Orange')],
'Feature', required=True)
因此,当在 selection_A 中选择水果时,我需要在 selection_B 'Orange' 中显示结果。有什么建议吗?