El miércoles, 26 de febrero de 2014 16:46:20 UTC+1, Cédric Krier escribió:
>
> On 26 Feb 07:21, Jesús Martín Jiménez wrote:
> > I have a field related to the model ir.model.field, and when I select in
> > this field a field of type selection, I have to get the possible values
> of
> > that fi
On 26 Feb 07:21, Jesús Martín Jiménez wrote:
> I have a field related to the model ir.model.field, and when I select in
> this field a field of type selection, I have to get the possible values of
> that field to compute the selection values of this field. I mean, I need to
> set dinamically the
El miércoles, 26 de febrero de 2014 14:08:18 UTC+1, Sergi Almacellas
Abellana escribió:
>
> El 26/02/14 13:51, Jesús Martín Jiménez ha escrit:
> > Hi,
> >
> > I need to set dinamically the selection values of functional field of
> > type selection. Something like that:
> >
> > selectio
El 26/02/14 13:51, Jesús Martín Jiménez ha escrit:
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('
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',
}, depend