Delete/clean client

36 views
Skip to first unread message

Kanat Mergenbayev

unread,
Jul 30, 2022, 3:38:22 AMJul 30
to iDempiere
Hi.

Wnat to clean idempiere setup by deleting GardenWorld. Installed https://wiki.idempiere.org/en/Plugin:_Delete_Client_and_Initialize_Client#Other_Overview_and_Instructions plugin. When running process 
"Delete Client and Initialize Client Process
getting 
Screenshot from 2022-07-30 13-37-42.png

Kanat Mergenbayev

unread,
Jul 30, 2022, 8:00:34 AMJul 30
to iDempiere
        //Super User can not delete data.
        int AD_User_ID = Env.getAD_User_ID(Env.getCtx());
        if(AD_User_ID!=100)//AD_User_ID == 100 that is SuperUser
        {
            //Super User can not execute this process. Please relogin System user or others that can login System client.
            String msg = Msg.getMsg(getCtx(), "JP_Delete_SuperUser_CanNot");
            addLog(msg);
            createLog("","",msg,"","","", false);
            return msg;
        }

Changed to only SuperUser can delete client/data. works perfect.

суббота, 30 июля 2022 г. в 13:38:22 UTC+6, Kanat Mergenbayev:
Reply all
Reply to author
Forward
0 new messages