Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019942Openbravo ERPA. Platformpublic2012-03-05 13:302012-04-02 12:15
plujan 
iperdomo 
immediatemajorsometimes
closedfixed 
5
pi 
3.0MP93.0MP9 
Mozilla Firefox
Core
No
0019942: JavaScript errors on Add Details button for Payment Out window
When creating a new Payment Out for a Purchase Order the Selectors are not populated.

If the JavaScript console is open there are several "isc is not defined" and "OB is not defined" errors. And no dropdown is available in the popup.

Notice that to reproduce this error the cpu must be on high load. It's easier to reproduce it on Firefox.
1. Login as QAAdmin user
2. Go to Purchase Order window
3. Create a new Purchase Order with the following data:
   Business Partner: Vendor A
   Payment Method: 1 (Spain)
   Payment Terms: 90 days
4. Add a line with the following data:
   Product: Raw Material A
   Ordered Quantity: 11.2
5. Save and Book the Order
6. Close the Purchase Order window and open Payment Out window
7. Create a new Payment with no business partner defined in the header.
8. Click the Add Details button
9. On the pop up window, check that the Business Partner does not have the selector to filter.
9. Choose Transaction Type: GL Items
10. Check that GL Item drop down is missing as well as the dimensions selectors.
Regression QA
related to defect 0019905 closed vmromanos JSON exception on Add Details button for Payment Out window 
png Add Transaction.png (24,543) 2012-03-05 20:50
https://issues.openbravo.com/file_download.php?file_id=5054&type=bug
png

png JS Error.png (121,106) 2012-03-05 20:50
https://issues.openbravo.com/file_download.php?file_id=5055&type=bug
png
Issue History
2012-03-05 13:30plujanNew Issue
2012-03-05 13:30plujanAssigned To => gorkaion
2012-03-05 13:30plujanWeb browser => Mozilla Firefox
2012-03-05 13:30plujanModules => Core
2012-03-05 13:30plujanIssue generated from0019905
2012-03-05 13:30plujanRelationship addedrelated to 0019905
2012-03-05 13:36gorkaionWeb browserMozilla Firefox => Mozilla Firefox
2012-03-05 13:36gorkaionAssigned Togorkaion => vmromanos
2012-03-05 13:36gorkaionDescription Updatedbug_revision_view_page.php?rev_id=3232#r3232
2012-03-05 13:36gorkaionSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=3234#r3234
2012-03-05 17:19gorkaionWeb browserMozilla Firefox => Mozilla Firefox
2012-03-05 17:19gorkaionSummaryJSON exception on Add Details button for Payment Out window => JavaScript errors on Add Details button for Payment Out window
2012-03-05 20:49dmitry_mezentsevNote Added: 0046061
2012-03-05 20:49dmitry_mezentsevTag Attached: Regression QA
2012-03-05 20:50dmitry_mezentsevFile Added: Add Transaction.png
2012-03-05 20:50dmitry_mezentsevFile Added: JS Error.png
2012-03-05 20:50dmitry_mezentsevWeb browserMozilla Firefox => Mozilla Firefox
2012-03-05 20:50dmitry_mezentsevPriorityurgent => immediate
2012-03-05 20:50dmitry_mezentsevTarget Version => 3.0MP9
2012-03-06 09:37iperdomoStatusnew => scheduled
2012-03-06 09:37iperdomoAssigned Tovmromanos => iperdomo
2012-03-06 09:37iperdomofix_in_branch => pi
2012-03-06 12:39hgbotCheckin
2012-03-06 12:39hgbotNote Added: 0046082
2012-03-06 12:39hgbotStatusscheduled => resolved
2012-03-06 12:39hgbotResolutionopen => fixed
2012-03-06 12:39hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/efa5d74b862b34f14106fa2548e5c0d72e870275 [^]
2012-03-06 13:59mtaalNote Added: 0046086
2012-03-06 13:59mtaalStatusresolved => closed
2012-03-06 13:59mtaalFixed in Version => 3.0MP9
2012-04-01 20:30hgbotCheckin
2012-04-01 20:30hgbotNote Added: 0046999
2012-04-01 20:30hgbotStatusclosed => resolved
2012-04-01 20:30hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/efa5d74b862b34f14106fa2548e5c0d72e870275 [^] => http://code.openbravo.com/erp/devel/pi/rev/3c866f59ee2475e50b39d588eec5b9790defbd17 [^]
2012-04-01 20:37hudsonbotCheckin
2012-04-01 20:37hudsonbotNote Added: 0047044
2012-04-02 12:15gorka_gilNote Added: 0047297
2012-04-02 12:15gorka_gilStatusresolved => closed

Notes
(0046061)
dmitry_mezentsev   
2012-03-05 20:49   
Using live.builds.pi I can reproduce similar issue with the same JS errors easily without any client high load. Actually not only me. I asked to reproduce Stefan and Gorka on their machines and got the same result.

At the same time it does not happen to me (tried several time) while using Demo or MP8 appliance. Based on that I tagged it as a Regression QA (please verify). Until root behind is clear I would like to consider this issue as a stopper for MP9.

Steps to reproduce.
1. live.builds.pi, standard user
2. Go to Financial Account window.
3. Select any Financial Account and press Add Transaction button.
4. In the appeared Add Transaction pop-up select Type of Transaction - GL Item.
5. Mention that resulted window does not have selectors for GL Item and Dimensions (see screenshot with window and error).

It could happen that if you close the pop-up and try to open it again - everything works. But if you logout from Openbravo and close the browser tab and then repeat above steps - you will see this issue once again.
(0046082)
hgbot   
2012-03-06 12:39   
Repository: erp/devel/pi
Changeset: efa5d74b862b34f14106fa2548e5c0d72e870275
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Tue Mar 06 12:38:05 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/efa5d74b862b34f14106fa2548e5c0d72e870275 [^]

Fixes issue 19942: Rollback to previous way of including .js file
- The document.write() pauses the executing of folling scripts, while creating a script DOM object
  and adding it to the head doesn't.
- Rollback the way we include the combined javascript file to the previous way
- Remove the delay call of 100ms we include when trying to solve the problem on gui tests in testing
  environment

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/StaticResourceComponent.java
M src/index.jsp
---
(0046086)
mtaal   
2012-03-06 13:59   
Reviewed
(0046999)
hgbot   
2012-04-01 20:30   
Repository: erp/devel/pi
Changeset: 3c866f59ee2475e50b39d588eec5b9790defbd17
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Tue Mar 06 12:38:05 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/3c866f59ee2475e50b39d588eec5b9790defbd17 [^]

Fixes issue 19942: Rollback to previous way of including .js file
- The document.write() pauses the executing of folling scripts, while creating a script DOM object
  and adding it to the head doesn't.
- Rollback the way we include the combined javascript file to the previous way
- Remove the delay call of 100ms we include when trying to solve the problem on gui tests in testing
  environment

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/StaticResourceComponent.java
M src/index.jsp
---
(0047044)
hudsonbot   
2012-04-01 20:37   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/640de9acc2d5 [^]

Maturity status: Test
(0047297)
gorka_gil   
2012-04-02 12:15   
Reopened by merge.