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.dataFine - self.dataInizio).days) + 1
return 0
[...]
fattoreGiorni = fields.Function(fields.Numeric('fattoreGiorni'),
'on_change_with_fattoreGiorni')
@fields.depends('numeroGiorni')
def on_change_with_fattoreGiorni(self, name=None):
return (self.numeroGiorni - 10) / 5
fattoreGiorni DOESN'T get assigned
I can't see why
--
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/ebafa43c-f12c-4058-8d9a-d91ae05c32c4%40googlegroups.com.