Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022212Openbravo ERPA. Platformpublic2012-11-05 19:332013-10-22 12:28
naiaramartinez 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
 
No
Core
No
0022212: The display logic doesn't work the first time
Display logic doesn't work the first time.
As System administrator:
  Go to Windows, tab and fields window and select Sales Order window.
  Go to fields tab and select organization field.
  Add the following display logic: @SalesRep_ID@!''

As Openbravo Admin
  Go to Sales Order window and press 'new record' button. Don't press Save button. Notice that Organization field is shown.
  Change Sales Representative field. Select any sales representative and then select again 'null' sales representative. Notice that now you can't see organization field.

So, the first time is not working, you need to change sales representatives value, in order to be able to Show/hide organization field.

  

No tags attached.
related to defect 0022438 closed AugustoMauch Button "Set project type" is no longer shown in window "Multiphase project" 
Issue History
2012-11-05 19:33naiaramartinezNew Issue
2012-11-05 19:33naiaramartinezAssigned To => AugustoMauch
2012-11-05 19:33naiaramartinezModules => Core
2012-11-05 19:33naiaramartinezOBNetwork customer => No
2012-11-06 12:55plujanIssue Monitored: plujan
2012-11-06 23:26hgbotCheckin
2012-11-06 23:26hgbotNote Added: 0054053
2012-11-06 23:26hgbotCheckin
2012-11-06 23:26hgbotNote Added: 0054054
2013-04-08 16:46AugustoMauchNote Added: 0057785
2013-04-08 16:46AugustoMauchStatusnew => closed
2013-04-08 16:46AugustoMauchResolutionopen => unable to reproduce
2013-10-17 10:31adrianromeroNote Added: 0061765
2013-10-17 10:31adrianromeroStatusclosed => new
2013-10-17 10:31adrianromeroResolutionunable to reproduce => open
2013-10-17 10:31adrianromeroNote Edited: 0061765bug_revision_view_page.php?bugnote_id=0061765#r5122
2013-10-18 11:02AugustoMauchStatusnew => closed
2013-10-18 11:02AugustoMauchResolutionopen => fixed
2013-10-22 12:27adrianromeroRelationship addedrelated to 0022438
2013-10-22 12:28adrianromeroNote Added: 0061845

Notes
(0054053)
hgbot   
2012-11-06 23:26   
Repository: tools/automation/int
Changeset: 55b1fa9e723f49bec08d7fb903233a0c6b9ab666
Author: Pablo Lujan <pablo.lujan <at> openbravo.com>
Date: Tue Nov 06 13:32:05 2012 +0100
URL: http://code.openbravo.com/tools/automation/int/rev/55b1fa9e723f49bec08d7fb903233a0c6b9ab666 [^]

workaround for issue 22212. Adds a dummy Order item

---
M src-test/com/openbravo/test/integration/erp/modules/client/application/gui/FormInputFieldFactory.java
---
(0054054)
hgbot   
2012-11-06 23:26   
Repository: tools/automation/int
Changeset: dc8f44254690a1622b7eacae59436341a048cc63
Author: Pablo Lujan <pablo.lujan <at> openbravo.com>
Date: Tue Nov 06 13:49:34 2012 +0100
URL: http://code.openbravo.com/tools/automation/int/rev/dc8f44254690a1622b7eacae59436341a048cc63 [^]

Related with previous fix for issue 22212. Makes the change simpler

---
M src-test/com/openbravo/test/integration/erp/modules/client/application/gui/FormInputFieldFactory.java
M src-test/com/openbravo/test/integration/erp/modules/client/application/gui/OBForm.java
---
(0057785)
AugustoMauch   
2013-04-08 16:46   
This issue is no longer reproducible. After configuring the window as it is described in the steps to reproduce, the behaviour is the following:
- Open Sales Order window
- Click on Create New. The organization is not shown. This is correct, because by default there is no Sales Representative.
- Select a Sales Representative. The organization is shown. This is correct.
- Deselect the Sales Representative. The organization is hidden again. This is correct.
(0061765)
adrianromero   
2013-10-17 10:31   
This issue can be reproduced in a window that has around 250 fields. After debugging it a bit in the client side with Augusto it seems that the problem is a race condition between the evaluation of the FIC request and the evaluation of display logic in fields when the FIC request takes a lot of time and the application starts evaluating display logic in fields before receiving the FIC request.

(0061845)
adrianromero   
2013-10-22 12:28   
This issue is fixed with the same fix for the related issue https://issues.openbravo.com/view.php?id=22438 [^]

The change set that fixes this issue is https://code.openbravo.com/erp/devel/pi/rev/03ae6a2f5ea3114c42590cc63b50a0d8693886ee [^]