Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028517Openbravo ERPJ. Demo datapublic2015-01-02 15:062015-01-02 15:06
plujan 
eduardo_Argal 
normalminorrandom
newopen 
5
main 
 
Core
No
0028517: Financial Account data for QA dataset has not a default Payment Method
When creating a new Financial Account Transaction, the Add Payment selector opens with the default Payment Method. If there is not default defined, it picks a random payment method, what is a problem for the Selenium tests. See steps.
1. Enter as Openbravo user, changing to QA Admin role
2. Go to Financial Account window
3. Select Spain Cashbook
4. Go to Transaction and create a new record. Click in the + button for the Payment field.
5. The opening pop up shows in Payment Method the default payment method or any random value from the list (check the function [1])
6. Close the pop up and move to the Payment Method tab for this Financial Account
7. Check that no default is present.

[1] https://code.openbravo.com/erp/devel/pi/file/c778327fb6eb/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/filterexpression/TransactionAddPaymentDefaultValues.java#l167 [^]
The problem is that Selenium tests are assuming "1 (Spain)" will be the selected value, but this only happens randomly. Since there is no default assigned, you may or may not have 1 (Spain) as a result.

The solution is very simple, put 1 (Spain) as default in this tab. In addition to this, it is strongly recommended to add some alert about the missing default to the user, since the choice of 1 (Spain) or any other possible value is not clear for a user with no coding skills.
No tags attached.
Issue History
2015-01-02 15:06plujanNew Issue
2015-01-02 15:06plujanAssigned To => eduardo_Argal
2015-01-02 15:06plujanModules => Core
2015-01-02 15:06plujanTriggers an Emergency Pack => No

There are no notes attached to this issue.