Welcome to the OPENLABS Employee Enrolment System wiki!
This wiki is the main source of documentation for OPENLABS Employee Enrolment System.
Quick Introduction
Employee Enrolment System is an open source project that creates and maintains all the details of its employees i.e. Personal Details, Educational Details.
Technology Stack
- Tryton 3.4
- Postgress 9.3.6
Prerequisites
- Install virtualenvwrapper
pip install virtualenvwrapper
- Install postgress 9.3.6
sudo apt-get install postgresql postgresql-contrib
Steps Involved
- Install cookiecutter
pip install cookiecutter
.
Cookiecutter is a template for Tryton module boilerplate. - Generate a Tryton module :
cookiecutter https://github.com/openlabs/trytond-cookiecutter.git
.
More details @ Cookiecutter - Create a configuration file globally according to your requirements. More details for writing your configuration file can be viewed at this gist : Tryton 3.4 Configuration File(Sample)
You need to update your super password in your configuration file with the help of the following command :
$ python -c 'import getpass,crypt,random,string;<br /> print crypt.crypt(getpass.getpass(),"".join(random.sample(string.ascii_letters + string.digits, 8)))'
- I have created two classes 'PersonalDetails' and 'Education' in my
test.py
model and used Party module of trytond as the base class for PersonalDetails. - Further, I created a
test.xml
file and designed two forms and two tree views for my classes. I have divided the views into pages and notebooks to bring out a rich user experience. - You also need to update your
__init__.py
andtryton.cfg
with suitable class names and views and register them in the Pool. - After writing all the views and models the following commands are used to update both tryton client and python.
trytond -c [path-to-your-config-file] -u module-name -d database-name
pip install -U --no-deps .
- Lastly, launch the server and tryton client with the following commands :
trytond -c [path-to-your-config-file]
tryton -dv