d-ruiz / kdb_idempiere

Kanban Board plugin for iDempiere
https://wiki.idempiere.org/en/Plugin:_Kanban_Dashboard
GNU General Public License v2.0
5 stars 13 forks source link

Kanban - setting wrong columnname #11

Closed PeterTakacs300 closed 1 year ago

PeterTakacs300 commented 1 year ago

In MKanbanBoard.java, method setPrintableNames() the _table.getTranslation method is used incorrectly, generates Column not found - [columnname] error logs

Instead of table.get_Translation(column.getName()) there should be table.get_Translation(MColumn.COLUMNNAME_Name)

d-ruiz commented 1 year ago

Hi, this is an old/known bug, there's even a comment next to the line stating that it does not work.

The solution you suggest won't work either, that would only bring the translation of the Name column.

That means, it would always print this: Name en Nombre es Názov Sk and so on ...

Unfortunately, I haven't had the time to work on this.

The solution is to query the corresponding TRL table for each record, so instead of querying Product, it would be needed to query Product_Trl.

best regards, Diego

d-ruiz commented 1 year ago

Remove warning with commit https://github.com/d-ruiz/kdb_idempiere/commit/1f4474597f63da21271a99fbcfe45b7dd586ba4c