콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4861 화면

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!

베스트 답변

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.

아바타
취소