Dynamic One2many Preview Widget
by Mind Spark Technologies https://www.mindsparktechnologies.com| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Sales (sale_management)
• Discuss (mail) • Invoicing (account) |
| Lines of code | 229 |
| Technical Name |
mst_dynamic_o2m_preview |
| License | LGPL-3 |
| Website | https://www.mindsparktechnologies.com |
| Versions | 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Sales (sale_management)
• Discuss (mail) • Invoicing (account) |
| Lines of code | 229 |
| Technical Name |
mst_dynamic_o2m_preview |
| License | LGPL-3 |
| Website | https://www.mindsparktechnologies.com |
| Versions | 18.0 19.0 |
Odoo Dynamic One2many Preview Widget Module | Dynamic One2many Preview Widget
Odoo Dynamic One2many Preview Widget Module helps users preview One2many records directly inside parent list views with flexible XML configuration.
1. Module Installation
install the Dynamic One2many Preview Widget module from the Odoo Apps menu. After installation, the widget can be configured in the required list view by adding the One2many field and applying the widget name in the XML configuration.
2.Sales order line list view
In this example, we are using the Sales Order list view. Normally, users need to open each Sales Order to check the related order line details. But with this widget, the selected One2many records can be previewed directly inside the parent list view itself.
Orderlines Overview
Odoo list views are designed to overview multiple records at once, and this widget improves that experience by showing related line details without opening the form view. This helps keep the list view clean, readable, and user-friendly. The user can quickly understand the order details without navigating into each individual Sales Order.
Technical Configuration
From the backend, users can define which fields need to be displayed in the preview table. Custom labels, column widths, text wrapping, and the maximum number of rows can also be configured easily. Since One2many fields display multiple related records of the current record, this widget is useful for showing child records such as Sales Order Lines, Invoice Lines, Purchase Lines, and Delivery Lines in a clean table format.
Backend Configuration Steps
- Keep the One2many field in the parent list view.
- Add the widget to the One2many field.
- Set the widget name as dynamic_one2many_preview.
- Add the required XML options such as fields, labels, max rows, column width, and text wrapping.
Option Details
| Option | Description |
|---|---|
| fields | Define which fields need to be displayed in the One2many preview list. |
| labels | Define custom labels for the selected fields. |
| max_rows | Set the maximum number of One2many rows to be displayed in the list view. |
| column_width | Set a fixed width for each preview column. |
| wrap_text_length | Set the character limit after which long text should wrap. |
| wrap_fields | Define the specific fields where text wrapping should be applied. |
Configuration Preview
The below screenshot shows how the Dynamic One2many Preview Widget displays configured child records directly inside the parent list view.
Key Features
- Dynamic One2many Preview
- Reusable Widget
- Clean List View Experience
- Row Limit Control
Benefits
- View One2many records directly in the list view.
- Save time without opening each parent record.
- Improve daily work productivity.
- Quickly check line-level details.
- View products, quantities, UOM, prices, and statuses easily.
- Keep the list view clean and simple.
- Control how many rows are displayed.
- Configure fields and labels from the backend.
- Use it for Sales, Purchase, Invoice, Inventory, and Helpdesk.
- Help users make faster decisions from one screen.
Odoo Compatibility & Support
Fully compatible with Odoo 19 Community & Enterprise Editions. Support for other Odoo versions is also available based on your business requirements.
Includes FREE 90 Days Support for installation guidance, bug fixes, and functional assistance related to the module.
Our team also provides customization support and feature enhancement services based on your business workflow requirements.
Frequently Asked Questions
What is the purpose of this module?
This module helps users preview One2many child records directly inside the parent list view. It reduces extra clicks and saves time during daily Odoo operations.
Can I choose which fields should be displayed?
Yes. You can configure the fields using XML options. You can also define custom labels, row limits, column widths, and text wrapping options.
Where can this widget be used?
This widget can be used in Sales Orders, Purchase Orders, Invoices, Inventory Transfers, Helpdesk Tickets, and custom Odoo models that contain One2many fields.
Does this module change any existing Odoo workflow?
No. This module only improves the list view preview experience. It does not change the standard Odoo workflow, records, or business logic.
BOOK YOUR
PERSONALIZED DEMO
We are
available 24/7 for your service.
Contact Us Today!
What Makes Us The Best Choice
APPS
Custom Odoo apps for smarter workflows.
CLIENTS
Trusted by businesses worldwide.
PRODUCTS
Ready-to-use, high-quality modules.
PROJECTS
Delivered with precision and expertise.
Please log in to comment on this module