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!