Il giorno sabato 13 gennaio 2018 11:05:07 UTC+1, Cédric Krier ha scritto:
> On 2018-01-13 01:31, Cato Nano wrote:
> > Il giorno venerdì 12 gennaio 2018 23:45:06 UTC+1, Cédric Krier ha scritto:
> > > On 2018-01-10 09:03, Cato Nano wrote:
> > > > I have these 2 fields
> > > >
> > > > numeroGiorn
On 2018-01-13 01:31, Cato Nano wrote:
> Il giorno venerdì 12 gennaio 2018 23:45:06 UTC+1, Cédric Krier ha scritto:
> > On 2018-01-10 09:03, Cato Nano wrote:
> > > I have these 2 fields
> > >
> > > numeroGiorni = fields.Function(fields.Integer('Numero
> > > Giorni'),'on_change_with_numeroGiorn
Il giorno venerdì 12 gennaio 2018 23:45:06 UTC+1, Cédric Krier ha scritto:
> On 2018-01-10 09:03, Cato Nano wrote:
> > I have these 2 fields
> >
> > numeroGiorni = fields.Function(fields.Integer('Numero
> > Giorni'),'on_change_with_numeroGiorni')
> > @fields.depends('dataInizio', 'dataFin
On 2018-01-10 09:03, Cato Nano wrote:
> I have these 2 fields
>
> numeroGiorni = fields.Function(fields.Integer('Numero
> Giorni'),'on_change_with_numeroGiorni')
> @fields.depends('dataInizio', 'dataFine')
> def on_change_with_numeroGiorni(self, name=None):
> if self.dataInizi
I have these 2 fields
numeroGiorni = fields.Function(fields.Integer('Numero
Giorni'),'on_change_with_numeroGiorni')
@fields.depends('dataInizio', 'dataFine')
def on_change_with_numeroGiorni(self, name=None):
if self.dataInizio and self.dataFine:
return abs((self.da