Notes |
|
|
These specific labels is they are overwritten by org.openbravo.advpaymentmngt.actionHandler.AddPaymentReloadLabelsActionHandler when the window is opened based on the context the process is opened from.
The problem is AddPaymentReloadLabelsActionHandler is not taking in consideration translations. |
|
|
|
Attached proposal for fix (add-payment-trl.diff). There was code to try to get translations, but the query it executed was incorrect. |
|
|
|
Attached alternative fix which:
-Prevents uneeded query if trl is not installed in the instance
-Removes code duplicities |
|
|
|
Test plan:
1. Install any translation pack
2. Add a new payment from the following windows in en_US:
Purchase Invoice, Sales Invoice, Payment In, Payment Out, Financial Account | Transaction (BP Withdrawal and BP Deposit).
Verify the labels for Business Partner and Financial Account are OK
3. Change the language
4. Add a new payment from the following windows in the new language:
Purchase Invoice, Sales Invoice, Payment In, Payment Out, Financial Account | Transaction (BP Withdrawal and BP Deposit).
Verify the labels for Business Partner and Financial Account are OK and properly translated.
Please note that the translation is taken from the element linked to the process definition parameter |
|
|
(0083010)
|
hgbot
|
2015-12-28 12:15
|
|
Repository: erp/devel/pi
Changeset: 4f71605143ec1da2f5d80785f891dfbf3b6edd3f
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Mon Dec 28 12:15:18 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/4f71605143ec1da2f5d80785f891dfbf3b6edd3f [^]
Fixed bug 31760: Some labels in Add Payment can't be translated
Solution partially based on ALO's one.
The query for translation was wrongly using the element TRL ID instead of the Application Element ID.
Avoid querying the database when language is en_US
This piece of code is executed from Purchase Invoice, Sales Invoice, Payment In, Payment Out, Financial Account | Transaction, Financial Account | Match Statement. However, only in the Financial Account flows seem to be really useful, so we should think about not running it in the other places.
---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/actionHandler/AddPaymentReloadLabelsActionHandler.java
---
|
|
|
|
|
|
|
|