Autocomplete fills the value to be suggested to the user with the cache and does not support multilanguage

Description

Tested in https://test.idempiere.org/webui/index.zul.

While creating a sales order line in German, the following issues were found.

Case 1

Steps to reproduce

  1. Login as GardenAdmin in a language different than English

  2. Open the Sales Order window

  3. Click to create a new Sales Order line

  4. Write PC in the product field

  5. The autocomplete field will suggest either PChair_Terassenstuhl or PChair_Silla para Patio depending on the login language.

  6. Click on the suggestion

Expected result
The selected product should be added to the line and the user should be able to continue editing the record

Actual result
When you select the autocomplete suggestion, an Info Window is open with no selectable record because the Name in the InfoWindow is set with the translated name.

Case 2

The autocomplete value is cached and ignores the login language when presenting the values to the user

Steps to reproduce

  1. Login as GardenAdmin in English

  2. Open the Sales Order window

  3. Click to create a new Sales Order line

  4. Write PC in the product field

Expected result
The autocomplete should suggest PChair_Patio Chair as the login language is English

Actual result
The autocomplete field will suggest either PChair_Terassenstuhl or PChair_Silla para Patio depending on the login language used in case 1. If you do a cache reset, it shows the autocomplete suggestion in the appropriate language but sets it in English to all the other users.

Copied from Mattermost from

this test explains the issue:

Cache Reset
logout and login in spanish
search for Patio in the autocomplete
it shows Patio_Silla para Patio
logout and login in english
search for Patio in the autocomplete
it shows the same in spanish

Environment

None

Attachments

1

Activity

Carlos Ruiz 
November 20, 2020 at 10:52 PM

The pull request 397 fixes the problem to at least work properly in base language.

For non-base languages this is not working well, so I opened the ticket IDEMPIERE-4562, and found another closely related issue in

Fixed

Details

Assignee

Reporter

Labels

Fix versions

Affects versions

Priority

Created November 18, 2020 at 5:15 PM
Updated January 2, 2021 at 6:29 PM
Resolved November 26, 2020 at 10:02 AM