Notes |
|
|
Hi Victor,
It is mandatory to write a good description and the steps to reproduce the bug to allow the QA team to understand the bug.
In the same way please write the steps and the issues to verify when the bug is fixed so QA team can check if the fixed is correct |
|
|
|
Due to the new multi-org project, a new flag called 'IsReady' has been added to the organization table. This flag allows us to implement some business rules into the ERP related with the organization's tree.
From a user perspective, this flag is very similar to an 'IsActive' flag; thus every combobox into the application must display only organizations which are 'Ready'.
The application currently does not take into account this flag, so we must change every application's combobox to add/modify the validation rule in order to only display 'Ready' organizations. |
|
|
|
Please specify the steps in the application where to configure this and then to which window we should go to test if it works |
|
|
|
After talking to ici and pju the fix for this bug has been changed.
The affected organization's comboboxes are only the ones inside a "Transaction" window. The transaction windows are defined into the Application Dictionary (field Window Type).
The application will apply this validation rule automatically, so it is not necessary to associate manually the validation rule in every organization's combobox of the transaction windows.
In order to do that, it will be necessary to adapt the WAD. |
|
|
(0010584)
|
svnbot
|
2008-11-24 18:15
|
|
Repository: openbravo
Revision: 10488
Author: vmromanos
Date: 2008-11-24 18:14:10 +0100 (Mon, 24 Nov 2008)
Fixed bug 0005867:
- Removed "AD_Org is transactions allowed" validation rule of the transaction's windows.
- Modified the WAD to validate automatically the organization's combobox of every transactional window. Note: the new DataAccess Layer has been used for this check.
---
U trunk/src/org/openbravo/base/secureApp/OrgTree.java
U trunk/src/org/openbravo/base/secureApp/OrgTreeNode.java
U trunk/src/org/openbravo/erpCommon/utility/Utility.java
U trunk/src/org/openbravo/erpCommon/utility/WindowTree_data.xsql
U trunk/src-db/database/sourcedata/AD_COLUMN.xml
U trunk/src-db/database/sourcedata/AD_VAL_RULE.xml
---
https://dev.openbravo.com/websvn/openbravo/?rev=10488&sc=1 [^]
|
|
|
|
The transactional windows are for example Purchase invoice, purchase order, sales invoice, settlement.
So the organization must be configured as ready and the flag transactions allowed mark (type organization) |
|
|
|
I have created a new organization. Put is as child of Main. Generic. Set as ready and after all I cannot see in the organization in any transactional window |
|
|
|
To fix this bug we are using the new Data Access Layer and I think the problem is on the Hibernate's cache. If you restart Tomcat you will see the organizations and you will be able to check the bug is already fixed.
To solve this cache issue we have to find the way to force Hibernate not to use the internal cache with organizations. I am talking to mtaal to find the perfect solution for that. At the moment we have three possibilities to fix it but we are discussing about which one is the perfect one. |
|
|
|
After disabling the Hibernate's second-level cache, it is not necessary to restart Tomcat anymore to see the recently created organizations. |
|