Odoo Help


How to open an object form in a new window in read mode?

Mohammad Alhashash
on 10/9/13, 5:52 PM 1,173 views

When I use an action to open a record using code like this:

def action_open_product(self, cr, uid, ids):
    return {
             views: [[false, 'form']],
             view_type: 'form',
             view_mode: 'form',
             res_model: 'product.product',
             type: 'ir.actions.act_window',
             target: 'current',
             res_id: product_id

The form opens in edit mode in a window if I have target='new', and in read mode in full page if target='current'.

Is it possible to open the form in new window in read mode?

looking for the same thing!

Houssine BAKKALI
on 1/16/14, 10:03 AM

Grover Menacho

--Grover Menacho--
| 5 7 8
La Paz, Bolivia
--Grover Menacho--

Odoo Developer

Grover Menacho
On 10/9/13, 7:37 PM

I've tried so many times to do this but I couldn't, the only way was developing a JS module to send some data, but I did this only for my case, because I have to open a window through a one2many. But I think that there is a way to do it by js.

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

0 follower(s)


Asked: 10/9/13, 5:52 PM
Seen: 1173 times
Last updated: 3/16/15, 8:10 AM