Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #23675 All Revisions ] Back to Issue ]
Summary 0023675: OBContext seems to initially contain a wrong value for the Warehouse
Revision 2013-04-30 10:57 by AugustoMauch
Steps To Reproduce - In the "Product" selector, set the following default expression in the Warehouse field:

 if (OB.getContext().getWarehouse() != null) { OB.getContext().getWarehouse().id; }

- As System Admin, open the User window, open in edit mode the Openbravo record and delete the default client, organization and warehouse.

- Log in the application in the F&B client, with a Spanish warehouse.
- Go to the Sales Invoice window. Create a new sales invoice, and a new line for it.
- In the line, verify that no products are shown in the selector. Open the selector, and realize that a US warehouse is picked, even though we defined the default expression to get the warehouse from the OBContext.
- If now you reload the page via the User Info Widget (by clicking on "Apply", without changing anything), and repeat the previous steps, then the result will be correct.
Revision 2013-04-30 09:38 by AugustoMauch
Steps To Reproduce - In the "Product" selector, set the following default expression in the Warehouse field:

 if (OB.getContext().getWarehouse() != null) { OB.getContext().getWarehouse().id; }

- Log in the application in the F&B client, with a Spanish warehouse.
- Go to the Sales Invoice window. Create a new sales invoice, and a new line for it.
- In the line, verify that no products are shown in the selector. Open the selector, and realize that a US warehouse is picked, even though we defined the default expression to get the warehouse from the OBContext.
- If now you reload the page via the User Info Widget (by clicking on "Apply", without changing anything), and repeat the previous steps, then the result will be correct.


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker