IDEMPIERE-4540 Translate generated mail from Send Mail Text according to the Business Partner Language (#374)

This commit is contained in:
Diego Ruiz 2020-11-12 04:02:49 +01:00 committed by GitHub
parent 6252cfa8a2
commit 0801820545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -246,6 +246,9 @@ public class SendMailText extends SvrProcess
//
MUser to = new MUser (getCtx(), AD_User_ID, null);
m_MailText.setUser(AD_User_ID); // parse context
if (to.getC_BPartner_ID() > 0)
m_MailText.setBPartner(to.getC_BPartner_ID()); // parse context - translate
StringBuilder message = new StringBuilder(m_MailText.getMailText(true));
// Unsubscribe
if (unsubscribe != null)