Odoo
Odoo is a complete solution to manage companies regards of Human resource and Financial and so on. These are some resources I have found and list them here to be as a reference to me later.
Installation
git clone https://github.com/odoo/odoo.git
sudo cp odoo/install/openerp-server.conf /etc/openerp-server.conf
sudo vi /etc/openerp-server.conf // checkout https://gist.github.com/gam-phon/b1f750b813c77286cb2b
./openerp-server -c /etc/openerp-server.conf &
Components
Learn
Documentaions:
- Technical Memento
- Openobject Developer: PDF, HTML
- API
- Module
- Object
- ORM methods
- Install new module
erppeek
is a great tool to deal with openerp.
Install:
sudo pip install -U erppeek
Connect:
erppeek --server=http://localhost:8069 -d your_db -u admin -p password
your_db >>> models()
your_db >>> model('res.users').browse(['email = [email protected]']).read('name email')
Module development
Structure:
- init.py: import module
- openerp.py: module information
- module_name.py: here is the model
- module_name_view.xml: here is the view
MVC:
- M -> is the module_name.py
- V -> module_name_view.xml, in Django it is called the template.
- C -> is the object coming from osv. For every model there is one object for all records.
Views and Events
- Form views
- Tree views
- Graph views
- Search views
- Calendar Views
- Gantt Views
Reports
standard way: SXW -> RML -> PDF or HTML Pentaho Business Analytics: It is easier than the standard way. Integration with openerp. To print the current date and hour of printed the report: create message button and type: $(report.date,date,yyyy:mm:dd HH:MM)
Other tools: IReader, jasperserver, Aeroo Reports
Workflow
The workflow system in OpenERP is a very powerful mechanism that can describe the evolution of documents (model) in time.
Ref: