This module adds a new reporting engine to the current standard QWEB allowing the user to directly upload docx files containing scripts (in jinja2) into Odoo.
The reporting engine will interpret the script and create a pdf/docx based on the docx template.
To install this module, you need to:
- install the python lib: docxtpl (http://docxtpl.readthedocs.org/en/latest/)
- install the libreoffice (https://wiki.ubuntu.com/LibreOffice)
To configure this module, you need to:
- Inherit the function generate_docx_data in the report/report_docx.py
- Pass the list of the dictionary to the engine. (etc [{data1}, {data2}, .....])
- Each dictionary will generate a report base on the docx template.
To use this module, you need to:
- Go to System/Technical/Reports/Report
- Create a new report
- Change the report type to docx
- upload the template file.
Bugs are tracked on GitHub Issues <https://github.com/Elico-Corp/yopark_odoo/issues>.
- To be implemented: export from docx to html.
- load the watermark from html (qweb)
- Odoo Community Association: Icon.
- Siyuan Gu: gu.siyuan@elico-corp.com
- Alex Duan: alex.duan@elico-corp.com
- Xie Xiao Peng <xie.xiaopeng@elico-corp.com>
This module is maintained by Elico Corporation.
Elico Corporation offers consulting services to implement open source management software in SMEs, with a strong involvement in quality of service.
Our headquarters are located in Shanghai with branches in ShenZhen and Singapore servicing customers from China, Hong Kong, Japan, Australia, Europe, Middle East, etc...