Re: [tryton] why doesn' t this field get assigned ?

2018-01-16 Thread Cato Nano
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

Re: [tryton] why doesn' t this field get assigned ?

2018-01-13 Thread Cédric Krier
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

Re: [tryton] why doesn' t this field get assigned ?

2018-01-13 Thread Cato Nano
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

Re: [tryton] why doesn' t this field get assigned ?

2018-01-12 Thread Cédric Krier
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

[tryton] why doesn' t this field get assigned ?

2018-01-10 Thread Cato Nano
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