IDEMPIERE-5540 : Incorrect automatic parameters for setDocAction WebServices (#1633)

This commit is contained in:
Nicolas Micoud 2023-01-24 13:33:44 +01:00 committed by GitHub
parent d123de6452
commit 2f07dafa82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -57,7 +57,7 @@ public class MWebServiceType extends X_WS_WebServiceType implements ImmutablePOS
/**
*
*/
private static final long serialVersionUID = -6105547694847198509L;
private static final long serialVersionUID = -3735256212187060831L;
/** Parameters */
private MWebServicePara[] m_para = null;
@ -343,6 +343,11 @@ public class MWebServiceType extends X_WS_WebServiceType implements ImmutablePOS
addWsParameter("AD_Process_ID", X_WS_WebService_Para.PARAMETERTYPE_Constant, ""); // can't fill it as the process is unknown
addWsParameter("AD_Menu_ID", X_WS_WebService_Para.PARAMETERTYPE_Constant, "0");
addWsParameter("AD_Record_ID", X_WS_WebService_Para.PARAMETERTYPE_Free, "");
} else if ("setDocAction".equals(method)) {
addWsParameter("tableName", X_WS_WebService_Para.PARAMETERTYPE_Constant, MTable.get(getCtx(), getAD_Table_ID()).getTableName());
addWsParameter("docAction", X_WS_WebService_Para.PARAMETERTYPE_Constant, ""); // to be filled manually by user
addWsParameter("recordID", X_WS_WebService_Para.PARAMETERTYPE_Free, "");
addWsParameter("recordIDVariable", X_WS_WebService_Para.PARAMETERTYPE_Free, "");
} else {
String value = "";
if ("createData".equals(method))