Docx Report - Populating MS Word templates

by
Odoo

97.47

v 14.0 Third Party 78
Live Preview
Lines of code 483
Technical Name populating_ms_word_template
Also available in version v 13.0 v 15.0 v 11.0 v 9.0 v 12.0 v 10.0
You bought this module and need support? Click here!
Lines of code 483
Technical Name populating_ms_word_template
Also available in version v 13.0 v 15.0 v 11.0 v 9.0 v 12.0 v 10.0

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

Video Demo

File Source:

Sample files: Click Download

Export Docx:

Export PDF:

Supports

Free 24/7

For any supports or questions, please contact me via:

dev.odoo.vn@gmail.com

Thank you!

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Permission denied: 'C:\\Windows\\TEMP\\tmpdcmosnm_docx'
by
AbdulNassir Awad
on 9/20/22, 1:53 PM
Hi Dear,

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'
by
Dev Odoo
on 9/21/22, 12:36 PM Author



Permission denied: 'C:\\Windows\\TEMP\\tmpdcmosnm_docx'
by
AbdulNassir Awad
on 9/20/22, 1:13 PM Confirmed Purchase

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
by
Jeremie Dhennin
on 9/12/22, 10:55 AM Confirmed Purchase

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
by
AbdulNassir Awad
on 5/6/22, 3:52 AM Confirmed Purchase

Thanks

Re: Great product, easy to use
by
Dev Odoo
on 5/6/22, 7:30 PM Author

Thanks You


Odoo sh
by
rogelio escobar
on 6/3/21, 7:26 PM

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
by
Dev Odoo
on 6/4/21, 11:39 PM Author

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!


by
Erno Jancso
on 1/20/21, 2:59 AM

Hello Dev Happy

We bought your app, via Odoo appstore.
We need to use it under Odoo Community 10.

We have an issue with it:
 
In your video the report type field has the MsWord option
but in the version I´ve downloaded it is a PDF option only.
 
Please contact us, for support regarding this issue,

or give us a new version of the app (with .doc option for the report type).

Thanks, Erno
erno@soft4biz.ro
Re:
by
Dev Odoo
on 1/20/21, 3:39 AM Author

Hi

Please contact me via skype: cacao developer for support


Multi Line
by
Ahmed
on 12/28/20, 3:31 AM

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
by
Dev Odoo
on 12/28/20, 4:11 AM Author

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
by
Simon Capriles
on 11/3/20, 4:07 PM

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
by
Dev Odoo
on 11/3/20, 9:53 PM Author

Hi, please contact me directly via skype: cacaodeveloper for live support