Odoo Help


This community 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.


How to use attrs readonly and invisible in 1 field ?

Trai Doan
on 12/11/14, 9:22 AM 713 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 .



| 6 4 7
Lodz, Poland

On 12/11/14, 9:55 AM


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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