Il giorno domenica 21 gennaio 2018 10:30:17 UTC+1, Cato Nano ha scritto:
> 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
I tried and it works
Thanks
--
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/43325360-08de-4e47-92f2-de3e70e9d319%40googlegroups.com.