Odoo Help


How to make form view readonly when opened through javascript "do_action"?

on 5/16/16, 10:11 AM 803 views


I'm trying to open a record through JavaScript. I am able to get it through "do_action". Everything is fine, its opening in tree view but when I'm clicking a particular record its opening in form view in edit mode but i need to make it readonly. Can anyone help me with what i should write in do_action to make the form readonly.

var action = ({

//what i should write here



Thank you!

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.


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)


Asked: 5/16/16, 10:11 AM
Seen: 803 times
Last updated: 12/7/17, 4:03 PM