Odoo Help

0

How to use attrs readonly and invisible in 1 field ?

By
Trai Doan
on 12/11/14, 9:22 AM 1,130 views

attrs="{'readonly': [('a','=', 'b')]}"

attrs="{'invisible': [('c','=', 'd')]}"

How can i merge 2 codes into 1 .Just likes I have field 'country'. I want this field read only if a==b and invisible if c==d .

2

Zbik

--Zbik--
6293
| 6 4 7
Lodz, Poland
--Zbik--


Zbik
On 12/11/14, 9:55 AM

attrs="{'invisible':[('a','=','b')],'readonly':[('c','=','d')]}"

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 12/11/14, 9:22 AM
Seen: 1130 times
Last updated: 3/16/15, 8:10 AM