Odoo Help

1

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

By
Ajay
on 5/16/16, 10:11 AM 587 views

Hi,

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

});

self.do_action(action);


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.

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: 5/16/16, 10:11 AM
Seen: 587 times
Last updated: 5/17/16, 2:38 AM