On 29 Apr 14:04, Mariano Ramon wrote:
> 
> >
> >
> > > 
> >
> > Yes, you can add a states on the fields which will make it invisible when 
> > user
> > is in a specific group.
> >
> 
> 
> 
> I have question regarding this... how would I set a state for something 
> that is not a field. more precisely  a "group" view element? or should I 
> set the state for each indivual element (some of them are not fields but 
> functions). And if this is the case, how do I avoid the empty frame? should 
> I write the pyson statement directly on the xml? how do I reference view 
> elements from the module?

You can put the pyson directly in the XML or use the new function
ModelView.view_attributes [1]

[1]
http://doc.tryton.org/3.6/trytond/doc/ref/models/models.html#trytond.model.ModelView.view_attributes
-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Reply via email to