Odoo Help

Welcome!

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.

1

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

By
Mohammad Alhashash
on 10/9/13, 5:52 PM 739 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!

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

Grover Menacho

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

Systems Engineer + MBA

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.

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

0 follower(s)

Stats

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