Populating MS Word templates
Simple & Effective
Design print templates using word
Installation required: pip install docx-mailmerge You just need to design a word template file and put it on odoo. So you have a design template on word.DEMO
Date: 28/12/2020 Update version: 1.3
Features updated
1. Convert datetime UTC to datetime user timezone.
2. Add keyword "numerical_order" to do ordinal numbers in the printed data table.
3. Add keyword "float_time" to display time.
4. Add the keyword "count" to count the total number of lines.
5. Additional keyword "sum_number2word" to convert from numbers to letters.
Date: 12/04/2022 Update version: 1.3
Features updated
1. Fix error not downloading PDF files .
2. Define file name docx .
DEMO Version 1.3
Input:
Output:
Date: 21/04/2022 Update version 1.4
Features updated
Export PDF file
DEMO Version 1.4
Date: 10/09/2022 Update version 1.5
Features updated
Fix installation error on odoo SH
Date: 04/10/2022 Update version 1.6
Features updated
1. Allows to export images to docx and pdf files
2. Allow to get a value in field one2 many (treeview)
3. Fix the error of exporting attachments in emails
Click Open Video Demo
Free User Manual Support
1. You get free training support via teamviewer
2. You are support directly via skype for free
Supports
Free 24/7
For any supports or questions, please contact me via:
Thank you!
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedPermission denied: 'C:\\Windows\\TEMP\\tmpdcmosnm_docx'
I am running Odoo 14.0 under Windows 10 Pro, and running your powerful module, but it gives the following error:
Odoo Server Error
Traceback (most recent call last):
File "e:\custom_addons\populating_ms_word_template\controllers\report_controller.py", line 68, in report_download
response = self.report_routes(reportname, docids=docids, converter=converter)
File "E:\SmartERP\server\odoo\http.py", line 532, in response_wrap
response = f(*args, **kw)
File "e:\custom_addons\populating_ms_word_template\controllers\report_controller.py", line 44, in report_routes
docx = report.with_context(context).render_doc_doc(datas, data=data)[0]
File "e:\custom_addons\populating_ms_word_template\models\ir_actions_report.py", line 188, in render_doc_doc
docx = self.export_doc_by_template(datas=res_ids[0], file_name_export=self.print_report_name,suffix=suffix)
File "e:\custom_addons\populating_ms_word_template\models\ir_actions_report.py", line 47, in export_doc_by_template
document = MailMerge(file_template.name)
File "E:\SmartERP\python\lib\site-packages\mailmerge.py", line 25, in __init__
self.zip = ZipFile(file)
File "E:\SmartERP\python\lib\zipfile.py", line 1240, in __init__
self.fp = io.open(file, filemode)
PermissionError: [Errno 13] Permission denied: 'C:\\Windows\\TEMP\\tmpdcmosnm_docx'
Please let me know how to fix this problem.
Regards,
Nassir
Re: Permission denied: 'C:\\Windows\\TEMP\\tmpdcmosnm_docx'
I am using this version but cannot print image field
Using Odoo ee 14 and module 14.0.6
Pls Help
Re:
I have updated on odoo 14 version
Permission denied: 'C:\\Windows\\TEMP\\tmpdcmosnm_docx'
Hi Dear,
I have Odoo 14.0 running under Windows 10 Pro, I already purhcsed your powerful module, but when I run I received the error below:
Odoo Server Error
Traceback (most recent call last):
File "e:\custom_addons\populating_ms_word_template\controllers\report_controller.py", line 68, in report_download
response = self.report_routes(reportname, docids=docids, converter=converter)
File "E:\SmartERP\server\odoo\http.py", line 532, in response_wrap
response = f(*args, **kw)
File "e:\custom_addons\populating_ms_word_template\controllers\report_controller.py", line 44, in report_routes
docx = report.with_context(context).render_doc_doc(datas, data=data)[0]
File "e:\custom_addons\populating_ms_word_template\models\ir_actions_report.py", line 188, in render_doc_doc
docx = self.export_doc_by_template(datas=res_ids[0], file_name_export=self.print_report_name,suffix=suffix)
File "e:\custom_addons\populating_ms_word_template\models\ir_actions_report.py", line 47, in export_doc_by_template
document = MailMerge(file_template.name)
File "E:\SmartERP\python\lib\site-packages\mailmerge.py", line 25, in __init__
self.zip = ZipFile(file)
File "E:\SmartERP\python\lib\zipfile.py", line 1240, in __init__
self.fp = io.open(file, filemode)
PermissionError: [Errno 13] Permission denied: 'C:\\Windows\\TEMP\\tmpdcmosnm_docx'
Please help
Regards
Nassir
Install issue
Hi, I got the following error while installing on v14...
while parsing /tmp/tmpdrxw4v2d/populating_ms_word_template/views/ir_actions_report_views.xml:3, near ir.actions.report.inherit ir.actions.report Make sure those modules are installed and try again.
Can you help me please?
Great product, easy to use
Thanks
Re: Great product, easy to use
Thanks You
Odoo sh
works in odoo 14 SH?
can i add images to the report?
do you have documentation Link?
which version of word it will work?
thanks!
Re: Odoo sh
works in odoo 14 SH? Yes
can i add images to the report? Yes
do you have documentation Link? question not understood
which version of word it will work? Docx
thanks!
Hello Dev Happy
Thanks, Erno
erno@soft4biz.ro
Re:
Hi
Please contact me via skype: cacao developer for support
Multi Line
Dears,
I am not clear whether you handle Multi-lines, for example, the sale order I want print all sales order lines, how can handle this case in the template.
BR
Re: Multi Line
It perfectly handles multiple lines. Those who have purchased the module used to print forms of invoices, contracts, ...
I am also upgrading the module to deal with converting numbers to word
Not generating the word document
Hi, I´ve recently purchased your module and I´ve created the MsWord template and replaced it in the report. But it keeps generating the PDF
In your video the reporte type field has the MsWord option but in the version I´ve downloaded it is a checkbox only
Re: Not generating the word document
Hi, please contact me directly via skype: cacaodeveloper for live support