Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
6841 Ansichten

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");
Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
4
Okt. 16
31328
1
Sept. 15
3966
1
Juni 15
884
0
Apr. 15
711
2
Apr. 15
908