Il giorno venerdì 2 febbraio 2018 08:10:43 UTC+1, Cato Nano ha scritto:
> Il giorno mercoledì 31 gennaio 2018 17:33:35 UTC+1, Sergi Almacellas Abellana 
> ha scritto:
> > El 29/01/18 a les 20:28, Cato Nano ha escrit:
> > > I made this field. the thing runs, but the field doesn't appear
> > > https://gitlab.com/humanitiesNerd/tributi/blob/master/affissione.py#L97
> > 
> > The problem is that self.bolletta.tipo is not a field of the model. You
> > can not use the dot notation to navigate on pyson statements, so you
> > should create a functional field that returns the value of the
> > referenced field.
> 
> Ah, I will try this.
> Thanks !

I tried

Not only the field had to belong to the model but also I had to move from this

states={'invisible': Eval('bollettaTipo') != 'commerciale'}

to this

states={'invisible': (Eval('bollettaTipo') != 'commerciale')}

in order for it to work :-)

-- 
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/55532698-ef24-4e91-883b-001657c5381c%40googlegroups.com.

Reply via email to