From 2f07dafa8258962bbca0ff8212b06771f4985660 Mon Sep 17 00:00:00 2001 From: Nicolas Micoud <58596990+nmicoud@users.noreply.github.com> Date: Tue, 24 Jan 2023 13:33:44 +0100 Subject: [PATCH] IDEMPIERE-5540 : Incorrect automatic parameters for setDocAction WebServices (#1633) --- .../org/idempiere/webservices/model/MWebServiceType.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/org.idempiere.webservices/WEB-INF/src/org/idempiere/webservices/model/MWebServiceType.java b/org.idempiere.webservices/WEB-INF/src/org/idempiere/webservices/model/MWebServiceType.java index 5ede04a38a..38623c9f04 100644 --- a/org.idempiere.webservices/WEB-INF/src/org/idempiere/webservices/model/MWebServiceType.java +++ b/org.idempiere.webservices/WEB-INF/src/org/idempiere/webservices/model/MWebServiceType.java @@ -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))