user3679086
user3679086

Reputation: 49

Use readonly and invisible in 1 field openerp

How to use readonly and invisible in 1 field using attrs in openerp ?Just likes I have field 'country'. I want this field read only if a==b and invisible if c==d .

Upvotes: 1

Views: 157

Answers (1)

Chantwaffle
Chantwaffle

Reputation: 310

Attributes on fields:

<... attrs = "{'readonly': [('field_a','=','field_b')],'invisible':[('field_c','=','field_d')]}" .../>

Please provide some more information about what a,b,c and d are.

Upvotes: 1

Related Questions