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. Extra Tools
  3. List View Merge Header v 19.0
  4. Sales Conditions FAQ

List View Merge Header

by Tuan Nguyen Van http://nguyentuann1004@gmail.com
Odoo
v 19.0 Third Party 19
Download for v 19.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 294
Technical Name list_merge_header
LicenseAGPL-3
Websitehttp://nguyentuann1004@gmail.com
LIST VIEW ENHANCEMENT FOR ODOO 19

List View Merge Header

Add Excel-like merged column headers to any Odoo 19 list/tree view. Group related columns under a shared label using a simple <merge> XML tag β€” no JavaScript configuration, no Python hacks, just clean XML.

<merge> XML Tag Two-Row Header Zero Config OWL Powered
Community Enterprise Odoo.sh

Key Features

Everything you need to display professional merged column headers in Odoo list views, out of the box.

🏷️
<merge> XML Tag

Wrap any group of <field> tags inside a <merge string="Label"> node. That is all β€” the module does the rest automatically.

πŸ“Š
Two-Row Header Layout

Automatically renders a two-row <thead>: Row 1 shows the group label spanning all merged columns, Row 2 shows individual field headers β€” identical to Excel merged cells.

⚑
OWL Patch β€” Zero Overhead

Uses Odoo 19's OWL patch() API to extend ListArchParser and ListRenderer. Views without <merge> tags render the original single-row header unchanged.

πŸ”€
Mixed Columns Support

Mix merged and non-merged columns freely in the same list view. Non-merged columns automatically get rowspan="2" so they align perfectly with the two-row layout.

βœ…
RNG Validation Patched

Patches Odoo's internal RNG schema validator so <merge> tags are accepted without any validation error on module install or view save.

πŸ”ƒ
Sort & Resize Preserved

Column sorting, column resizing, optional columns dropdown, and record selector checkbox all continue to work exactly as in the stock Odoo list view β€” no regressions.

See It In Action

Real screenshot from a live Odoo 19 instance.

1

Merged Headers In a List View

Columns are grouped under a shared merge label in the first header row. Non-merged columns span both rows automatically with rowspan="2". Individual field headers with full sort functionality appear in the second row.

List view with merged column group headers and two-row layout

How to Use It

Simply wrap the columns you want to group inside a <merge string="Your Label"> tag in your list/tree view XML:

<list string="My Records">
    <field name="name"/>
    <field name="user_id"/>

    <!-- Group date columns under a shared label -->
    <merge string="Dates">
        <field name="date_start"/>
        <field name="date_deadline"/>
        <field name="date_end"/>
    </merge>

    <!-- Another merge group -->
    <merge string="Financials">
        <field name="amount_untaxed"/>
        <field name="amount_tax"/>
        <field name="amount_total"/>
    </merge>

    <field name="state"/>
</list>

The string attribute on <merge> is the label shown in the first header row. You can have multiple <merge> groups in the same list view. Views without any <merge> tags behave exactly as before β€” no performance impact.

Technical Architecture

Clean, minimal implementation following Odoo 19 best practices.

🧩
ListArchParser Patch

Pre-scans the XML arch for <merge> nodes to build a mergeInfo map (fieldName to groupId + label). After the original parser runs, each column object is annotated with its mergeGroup metadata.

πŸ–ΌοΈ
ListRenderer Patch

Adds hasMergeHeaders, getMergeGroups(), and mergeSubColumns getters consumed by the OWL template to build the two-row <thead>. Adjacent columns with the same groupId are collapsed into a single colspan cell.

πŸ“„
OWL Template Extension

Inherits and replaces the <thead> of web.ListRenderer using t-inherit-mode="extension". When no merge groups exist, it falls back to the original single-row rendering β€” no visual change for standard views.

πŸ›‘οΈ
Python RNG Validator Patch

Extends ir.ui.view to register a _validate_tag_merge handler and patches Odoo's internal schema_valid validator to unwrap <merge> nodes before validation β€” ensuring clean installs with no schema errors.

List View Merge Header vs Standard Odoo List

Feature With This Module Stock Odoo 19
Merged column group headers (Excel-style) βœ“ βœ—
Pure XML configuration β€” no custom Python or JS per view βœ“ βœ—
Multiple merge groups in the same view βœ“ βœ—
Mix merged and non-merged columns freely βœ“ βœ—
Column sorting preserved in merged columns βœ“ βœ“
Optional columns dropdown preserved βœ“ βœ“
RNG schema validation compatible (no install error) βœ“ βœ—

Frequently Asked Questions

Does this affect views that do not use <merge>? No. The OWL template checks hasMergeHeaders before rendering the two-row layout. If the view has no <merge> tags, the original single-row header is rendered exactly as in stock Odoo β€” zero overhead.
Can I have more than one <merge> group in the same list view? Yes. Each <merge> node gets its own unique group ID. You can place multiple merge groups anywhere in the column list and freely mix them with regular non-merged columns.
Will Odoo throw a validation error when I save a view with <merge>? No. The module patches both Odoo's RNG schema validator (Python-side) and registers a _validate_tag_merge handler on ir.ui.view. The <merge> tag is fully accepted without any error during module installation or view editing.
Does column sorting still work inside a merged group? Yes. Each individual field header in the second row retains full click-to-sort behaviour. The sort arrow and column resize handle are rendered on the second-row <th> elements, exactly as they would be in a regular single-row header.
Does it require any Python dependencies? No external packages needed. The module depends only on the built-in web module and uses lxml (already part of Odoo's standard environment) for the RNG validator patch.

Need Help?

Full support included. Bug reports, feature requests, or custom integration questions β€” just reach out!

nguyentuann1004@gmail.com

Version: 19.0.1.0.0 | License: LGPL-3 | Author: Tuan Nguyen Van

Compatible with Odoo 19 Community, Enterprise, and Odoo.sh

Β© 2026 Tuan Nguyen Van. All rights reserved.

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.
  • Ratings
  • Discuss
Amazing module!
by
John
on 7/1/26, 3:15 AM
It works exactly as expected and was very easy to integrate into our Odoo project. The merged header feature is clean, flexible, and saves a lot of customization effort.

Thank you for sharing such a high-quality module. I'm very impressed and will definitely check out your other modules. Looking forward to seeing more great work from you. Keep it up!


Amazing module!
by
John
on 7/1/26, 3:14 AM
It works exactly as expected and was very easy to integrate into our Odoo project. The merged header feature is clean, flexible, and saves a lot of customization effort.

Thank you for sharing such a high-quality module. I'm very impressed and will definitely check out your other modules. Looking forward to seeing more great work from you. Keep it up!

Amazing module!
by
sudo
on 7/1/26, 4:46 AM Author

Hi John,

Thank you so much for the 5-star review β€” it really means a lot to me. Feedback like yours is a huge motivation to keep building and sharing more modules with the Odoo community.

I'm glad the merged header feature worked smoothly for your project and saved you some customization time. That was exactly the goal.

If you have a moment, feel free to check out my other modules on Odoo Apps β€” there are quite a few you might find useful, such asΒ Search One2many,Β Quick Edit Excel, and several others built with the same focus on practical, real-world use cases.

Thanks again for your support. Wishing you success with your Odoo projects!

Best regards,

Tuan Nguyen Van


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