El 17/01/18 a les 08:51, Cato Nano ha escrit:
> Il giorno mercoledì 17 gennaio 2018 08:20:45 UTC+1, Cato Nano ha scritto:
>
>> Aaah it' s like this
>>
>> bollettaDataCommissione = fields.Function(fields.Date('tributi.bolletta', 'Data di Commissione'), 'on_change_with_bollettaDataCommissione')
>>
>> @fields.depends('bolletta')
>> def on_change_with_bollettaDataCommissione(self, name=None):
>> if self.bolletta:
>> return self.bolletta.dataCommissione
> The date field works, but where' s my label ?
The label used is the string of the target field. In a date field, this
is the first argument. In your case is 'tributi.bolleta'. You should
update the field definition to show the correct label.