Hi,

I need to set dinamically the selection values of functional field of type 
selection. Something like that:

    selection = fields.Function(fields.Selection('get_selection', 'Value',
            states={
                'invisible': Eval('field_type') != 'selection',
                }, depends=['field_type'], on_change_with=['model', 
'field']),
        'on_change_with_selection', setter='set_value')

    @staticmethod
    def get_selection():
        ....

    def on_change_with_selection(self, ...):
        ....

But it seems that is not possible to mix this kind of methods in these type 
of fields because get_selection is an RCP method not allowed. Is it 
possible to do this? And in affirmative case, how?

Thanks,

Reply via email to