Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Reporting
  3. Report Docx v 17.0
  4. Sales Conditions FAQ

Report Docx

by Lazydoo
Odoo
v 17.0 Third Party 47 94
Download for v 17.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 704
Technical Name report_docxtpl
LicenseLGPL-3
Versions 17.0 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 704
Technical Name report_docxtpl
LicenseLGPL-3
Versions 17.0 18.0 19.0
  • Description
  • Documentation

Features

  • Support convert docx to PDF.
  • Support python prepare function.
  • Direct print PDF in form view (support Chrome).
  • Support merge file or zip file in list view.
  • Support insert images as usually odoo fields. example use: odoo(doc.partner_id.image_1920).
  • QR code support.
  • Barcode supports. Accepted types: 'Code128', 'EAN13', 'EAN8'.
  • 2 template with examples as a gift inside the module
  • Free support 24/7
  • Required to install libreoffice in server os

Watch On Youtube

Demo

lazydoo.net
user: admin
password: admin

Template

Config

Result

Direct Print

Merge File

Zip File

Button Print

Installation

To install this module, you need to:

  • install the docxtpl : Terminal order ("pip install docxtpl")
  • install the docxcompse : Terminal order ("pip install docxcompose")
  • install the libreoffice > 7.4 (https://wiki.ubuntu.com/LibreOffice)

Usage

To use this module, you need to:

  • Go to System/Technical/Reports/Docx Template
  • Create a new report
  • Upload the template file.

Maintainer

This module is maintained by the Lazydoo

Overview

  • o: record
  • user: current user
  • o_date: function format field date
  • o_datetime: function format field datetime
  • o_monetary: function format field monetary
  • o_selection: function format field selection
  • o_html: function format field html
  • o_float: funtion format field float
  • o_image: funtion print image (support field binary(image))
  • o_count: funtion count field o2m, m2m
  • o_qrcode: function print qrcode (support field char)
  • o_barcode: self._format_barcode (support field char)

Field Char

  • Example:
    • {{o.name}}
    • {{o_qrcode(o.website, width=20, height=20)}}
    • {{o_barcode(o.vat, width=200, height=40, humanreadable=True, quiet=True)}}
    • Ref function barcode in model ir.actions.report

Field Date

  • Example:
    • {{o_date(o.order_date, date_format='full', lang_code='en')}}
  • Parameters:
    • date_format: one of “full”, “long”, “medium”, or “short”, or a custom date/time pattern
    • lang_code: a Locale object or a locale identifier

Field Datetime

  • Example:
    • {{o_datetime(o.create_date, date_format='long', tz='UTC', lang_code='en')}}
  • Parameters:
    • dt_format: one of “full”, “long”, “medium”, or “short”, or a custom date/time pattern
    • tz: the timezone to apply to the time for display
    • lang_code: a Locale object or a locale identifier

Field Monetary

  • Example:
    • {{o_monetary(o.amount_total, currency_obj=o.currency_id, digits=2, no_break_space=True)}}
  • Parameters:
    • currency_obj: object currency
    • digits: default currency_obj.decimal_places (optional)
    • no_break_space: default True (optional)

Field Selection

  • Example:
    • {{o_selection(o.state, field_name='state')}}
  • Parameters:
    • field_name: technology field name

Field Html

  • Example:
    • {{o_html(o.note)}}

Field Float

  • Example:
    • {{o_float(o.price_unit)}}
  • Parameters:
    • precision_digits: number of fractional digits to round to
    • precision_rounding: decimal number representing the minimum non-zero value at the desired precision (for example, 0.01 for a 2-digit precision)
    • rounding_method: the rounding method used 'HALF-UP', 'UP' or 'DOWN' the first one rounding up to the closest number with the rule that number>=0.5 is rounded up to 1, the second always rounding up and the latest one always rounding down

Field Binary

  • Example:
    • {{o_image(o.partner.image_1920, width=20, height=20)}}
  • Parameters:
    • width: default=15 (optional)
    • height: default=15 (optional)
    • no_break_space: optional, default True

Field One2many, Many2many

  • Example:
    • {%tr for i, line in o_count(o.order_line, start=1) %}
  • Parameters:
    • start: default=1 (optional)

Author & Maintainer

  • This module is maintained by the Lazydoo <luuthinh2705@gmail.com>

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, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
  • Ratings
  • Discuss
Trabaja bien
by
Todo Fine
on 3/20/24, 6:54 PM

Solo hay que instalar bien las dependencias de las librerias

Re: Trabaja bien
by
luuthinh2705@gmail.com
on 3/20/24, 10:07 PM Author

Thank you


Highly Custom Reporting Module
by
AITLAMSALI Alaa
on 5/19/24, 4:31 AM

This module is very helplful just ask customer to give his desired report template and change data by variables, you will save a lot of time !

Thanks for this idea


Bad to print PDF
by
Todo Fine
on 3/20/24, 6:19 PM Confirmed Purchase

RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

  File "/opt/SalomonWebsite/server/all_addons/lazydoo_v17/report_docxtpl/controllers/report.py", line 70, in report_download

    response = self.report_routes(

  File "/opt/SalomonWebsite/server/odoo/http.py", line 722, in route_wrapper

    result = endpoint(self, *args, **params_ok)

  File "/opt/SalomonWebsite/server/all_addons/lazydoo_v17/report_docxtpl/controllers/report.py", line 43, in report_routes

    filename, filetype, res = action_docxtpl_report._render(reportname, docids, data)

  File "/opt/SalomonWebsite/server/odoo/addons/base/models/ir_actions_report.py", line 948, in _render

    return render_func(report_ref, res_ids, data=data)

  File "/opt/SalomonWebsite/server/all_addons/lazydoo_v17/report_docxtpl/models/ir_actions_report.py", line 20, in _render_docxtpl

    return self.docxtpl_id.render(res_ids, data)

  File "/opt/SalomonWebsite/server/all_addons/lazydoo_v17/report_docxtpl/models/docx_template.py", line 216, in render

    f = open(pdf_path, "rb")

FileNotFoundError: [Errno 2] No such file or directory: '/tmp/report.docx.tmpnm70iw22.pdf'


The above server error caused the following client error:

RPC_ERROR: Odoo Server Error

    at makeErrorFromResponse (https://ve.ee.v17.salomon.website/web/assets/496ea87/web.assets_web_dark.min.js:2873:163)

    at decoder.onload (https://ve.ee.v17.salomon.website/web/assets/496ea87/web.assets_web_dark.min.js:2859:7)

Re: Bad to print PDF
by
luuthinh2705@gmail.com
on 3/20/24, 10:01 PM Author

Thank you for purchase, 

Pls check field Report name  

example : 'Contact %s' % object.name

demo: lazydoo.net user: admin pass: admin


by
Subbu Pagadala
on 3/9/24, 1:46 AM

It is possible to print in docx format ?

Re:
by
luuthinh2705@gmail.com
on 3/9/24, 3:35 AM Author

yes, video demo https://www.youtube.com/watch?v=po-ZI3vDKrw

you can check link demo lazydoo.net , user: admin, pass: admin



Installation was straightforward, thanks to clear documentation, and the 24/7 support provided by the developer
by
hajarbenabail1998@gmail.com
on 3/5/24, 5:15 AM



by
hajarbenabail1998@gmail.com
on 3/5/24, 5:14 AM

I can't say enough good things about this module.

The ability to merge files and insert images directly from Odoo fields has significantly streamlined our document management process. 

The comprehensive documentation, and the free 24/7 support provided by the developer has been invaluable. 

This module has truly recommended. 


by
luuthinh2705@gmail.com
on 3/4/24, 8:21 PM Author



Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with