Projects:Initial Client Setup Refactor
Summary
- Leader: David Alsasua
- Status: Branch merged into Pi
- Development branch: https://code.openbravo.com/erp/devel/pi-loc
Overview
Currently, initial client setup process is implemented in a servlet, with these steps covered:
- Creation of a new client
- Creation of the trees for the new client
- Creation of a new user for the new client
- Creation of the roles of the new client and new user
- Creation of the document types for the new client (here everything is hard-coded: names for the document types, creation of doc.types, templates, etc)
- Creation of the accounting provided through a csv file (if provided)
- Insertion of the reference data dataset defined in the modules user selected for the new client (both, accounting type, and normal ones)
This project's objectives are:
- Implement all the logic in a java class (not extending HttpSecureAppServlet) so it can be called not only through user interface, but also from other Java pieces of code (from a module, or a web service, for example)
- Remove all xsql code, and re-write it using DAL
- Create a new dataset for the document types, so its creation is not hard-coded, but inserted as any other dataset. This way, a module could provided other set of document types to be applied to the client to be created; also will be possible to create a translation for the document types