I want to make all fields readonly if it has values in openerp 7 without using attrs command. If i use attrs i need to define in all fields.
.openerp .oe_form .oe_form_field_char input,
.openerp .oe_form .oe_form_field_url input,
.openerp .oe_form .oe_form_field_email input,
.openerp .oe_form .oe_form_field_text textarea,
.openerp .oe_form .oe_form_field_selection select {
width: 10%;
}
this is the css code to define width of all fields.I want to use this type of method to acheive my requirements.
readonlywith css. You might be able to hack it like stackoverflow.com/a/16811266/1514875attrsfor all fields? If you usegroupsyou can defineattrsin them, too.