Docx Report - Populating MS Word templates

by
Odoo

106.78

v 14.0 Third Party 153
Live Preview
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 676
Technical Name populating_ms_word_template
LicenseOPL-1
Versions 15.0 13.0 14.0 16.0 17.0 11.0 9.0 12.0 10.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 676
Technical Name populating_ms_word_template
LicenseOPL-1
Versions 15.0 13.0 14.0 16.0 17.0 11.0 9.0 12.0 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:

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:

dev.odoo.vn@gmail.com

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

  • 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



by
Eko Yulianto
on 9/13/23, 9:18 AM Confirmed Purchase

I am using this version but cannot print image field
Using Odoo ee 14 and module 14.0.6

Pls Help

Re:
by
Dev Odoo
on 9/21/23, 1:04 AM Author

I have updated on odoo 14 version


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