Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0002613Openbravo ERPA. Platformpublic2008-02-12 17:252008-07-08 18:23
iperdomo 
alostale 
normalminoralways
closedfixed 
5
 
2.40beta 
No
Core
No
0002613: *DIRECT* command on generated window with two primary keys
Environment:
Release: 2.3x
Database: Oracle

Description:
The *DIRECT* command on generated windows, with more then one primary keys, don't work properly since the parents records are not well defined in session.

Example:
1. Go to Financial Management > Setup > Bank
2. Select an Bank account
3. Go to Account tab
4. Click on Linked Items
5. Click Accounting link
6. Select the related record

Note that you are redirected to other record, not the one that you want.

Solution:
The *DIRECT* command should work like the *DEFAULT* by setting the right session values.

Code:

String strPC_BankAccount_ID = vars.getGlobalVariable("inpcBankaccountId", windowId + "|C_BankAccount_ID", "");

      String strC_AcctSchema_ID = vars.getGlobalVariable("inpcAcctschemaId", windowId + "|C_AcctSchema_ID", "");
No tags attached.
depends on backport 0003628 closed alostale *DIRECT* command on generated window with two pr 
Issue History
2008-07-08 18:23plujanStatusresolved => closed
2008-07-08 18:23plujanFixed in Version2.40alpha-r2 => 2.40beta

Notes
(0006202)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:43)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1892053 [^]