MPrintFormat.createFromTable do not handle translation

Description

Hi,

When you click on the Report button of the toolbar from a window - and there is no print format already defined - a new one is created (in MPrintFormat.createFromTable).
But the name which is given to the print format is taken from the base language.

If in a mono-lingual environnement, it's the translated table name which should be taken.

Regards,

Nicolas

Environment

None

Activity

Show:

Nicolas Micoud August 24, 2020 at 8:12 AM

Hi Diego,

I was not able to reproduce it ; it was probably solved since 2015.

Diego Ruiz August 22, 2020 at 6:09 PM

Triaged by Diego Ruiz,

Hi Nicolas,

Could you please add a test case or the steps to reproduce the issue. I couldn’t reproduce it, in MPrintFormat.createFromTable I see:

if (!ColumnName.equals("T_Report_ID")){ basename = Msg.translate (ctx, ColumnName); if (ColumnName.equals (basename)) // not found basename = Msg.translate (ctx, TableName); } setUniqueName(AD_Client_ID, pf, basename);

From the code, I think the format name is set based on the context Language (unless it is a Financial report). Isn’t that the expected behavior?

Cannot Reproduce

Details

Assignee

Reporter

Affects versions

Priority

Created May 22, 2015 at 2:54 PM
Updated August 24, 2020 at 8:13 AM
Resolved August 24, 2020 at 8:13 AM

Flag notifications