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
    • Property 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. All
  3. Report DOCX generted v 17.0
  4. Sales Conditions FAQ

Report DOCX generted

by Abdulkrim Osman https://github.com/LeapAI-SA
Odoo
v 17.0 Third Party 7
Download for v 17.0 Deploy on Odoo.sh Live Preview
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 1132
Technical Name leapai_magre
LicenseLGPL-3
Websitehttps://github.com/LeapAI-SA
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 1132
Technical Name leapai_magre
LicenseLGPL-3
Websitehttps://github.com/LeapAI-SA
  • Description
  • Documentation

Is Easy an elegant and scalable solution to design reports using Microsoft Office.

Export data all objects odoo to Microsoft Office. output files docx, pdf

Report template *.docx

Out report DOCX or PDF

Word Merge Fields

In order for docx-mailmerge to work correctly, you need to create a standard Word document and define the appropriate merge fields. The examples below are for Word 2010. Other versions of Word should be similar. It actually took me a while to figure out this process but once you do it a couple of times, it is pretty simple.

Start Word and create the basic document structure. Then place the cursor in the location where the merged data should be inserted and choose Insert -> Quick Parts -> Field..:

From the Field dialog box, select the “MergeField” option from the Field Names list. In the Field Name, enter the name you want for the field. In this case, we are using o.name.

Once you click ok, you should see something like this: <<o.name>> in the Word document. You can go ahead and create the document with all the needed fields.

Example create report

Settings/Technical/Reporting/Reporting

Multi docs in one file docx

Multi docs in one file pdf

Config merge report pdfs

Cover template docx

Merge report pdfs

Now with preview of the document PDF

Preview report

http://localhost:8069/report/pdf/template_name/id

Note

  • Embedded images inside generated DOCX files may not render in some templates.
  • The merge action may not fill merge fields placed in document headers and footers.
  • PDF conversion depends on LibreOffice and unoconv; Windows environments may require extra setup.
  • This module is primarily tested on Odoo Community Edition.
  • Conditional IF logic inside DOCX merge fields is not supported.

Help with Python expressions

Using Python expressions in templates

You can use Python expressions in merge fields to transform values at runtime. The variables below are available in the evaluation context:

  • env: Odoo environment for ORM access.
  • o: active business record used by the report.
  • record: current record in evaluation scope.
  • user: logged-in user record.
  • company_id: current company record.
  • time, datetime, dateutil, timezone: helper Python libraries.

Example expression:

record.name + '_generated'

Contact us for support, consultation, customization

Contact by email

  • abdzoro89@gmil.com
  • a.osman@bab.com.sa
  • Phone: +966562984106
  • Phone: +966553368212

abdzoro89@gmil.com | a.osman@bab.com.sa | +966562984106 | +966553368212

Pre-Installation Requirements (Convert to PDF)

  • Unoconv: Convert files to any format that supports Microsoft Office. Website: Unoconv example install ubuntu O.S.

# apt-get install unoconv

Supported output format combinations (Template -> Output):

  • odt -> odt
  • odt -> pdf
  • odt -> doc
  • odt -> docx
  • odt -> pds
  • rtf -> rtf
  • docx -> pdf

Note

Maintained for Odoo 17.0 Community (Leap AI).

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.
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