IDEMPIERE-4354 : Web Services : setDocAction error message not transl… (#151)

* IDEMPIERE-4354 : Web Services : setDocAction error message not translated

Translation of the error message

* IDEMPIERE-4354 : translate full message
This commit is contained in:
Nicolas Micoud 2020-07-04 11:53:48 +02:00 committed by GitHub
parent 4c1236e938
commit 211d288f47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ public class ModelADServiceImpl extends AbstractService implements ModelADServic
try { try {
if (!((org.compiere.process.DocAction) po).processIt(docAction)) if (!((org.compiere.process.DocAction) po).processIt(docAction))
return rollbackAndSetError(trx, resp, ret, true, return rollbackAndSetError(trx, resp, ret, true,
"Couldn't set docAction: " + ((org.compiere.process.DocAction) po).getProcessMsg()); Msg.parseTranslation(ctx, "@FailedProcessingDocument@: " + ((org.compiere.process.DocAction) po).getProcessMsg()));
} catch (Exception e) { } catch (Exception e) {
return rollbackAndSetError(trx, resp, ret, true, e.toString()); return rollbackAndSetError(trx, resp, ret, true, e.toString());
} }