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

In the openerp 7 form view i have button after clicking the button it will be log out.

I tried the below code but logout tag is not working

def action_logout(self, cr, uid, ids, context=None):
return {
          'type': 'ir.actions.client',
          'tag': 'logout',
          }

In the web module web\static\src\js\chrome.js File

The below instance.web.client_actions are available and the tag is working in python file. But logout is not available in the instance.web.client_actions how to make work logout tag in python file?... or After clicking the button how to logout in python?..

instance.web.client_actions.add("action_notify", "instance.web.action_notify");
instance.web.client_actions.add("action_warn", "instance.web.action_warn");
--------------------
--------------------
instance.web.client_actions.add("login", "instance.web.Login");
instance.web.client_actions.add("reload", "instance.web.Reload");
아바타
취소
관련 게시물 답글 화면 활동
4
10월 16
31307
1
9월 15
3957
1
6월 15
875
0
4월 15
705
2
4월 15
896