Il giorno mercoledì 17 gennaio 2018 09:32:12 UTC+1, Sergi Almacellas Abellana 
ha scritto:
> 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.
> 

Thank you Sergi
I' ll try and report back

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/496c5637-fe37-42d4-801d-6c4235b9c4ca%40googlegroups.com.

Reply via email to