Two-Way Dynamic Asset Loading in Odoo 17 OWL Components
This article provides a concise guide on how to dynamically load external JavaScript and CSS resources in Odoo OWL components. It introduces two common approaches: - Using loadBundle – Ideal for loading assets declared in the module's manifest.py under the assets section. - Using a custom loadAssets function – Useful for dynamically injecting scripts and stylesheets at runtime without prior declaration in manifest.py.
NNH
2025-07-25 01:14
202
0
0
Auto Expand All Nested Groups in Odoo 17 ListView
This customization demonstrates how to automatically expand all grouped rows (including multiple nested group levels) in an Odoo ListView using a custom `ListController`.
NNH
2025-07-24 23:28
218
0
0
How to Customize Excel Export in Odoo 17
how to override and customize the default "Export All" feature in Odoo for a specific model (hr.attendance). It walks through extending the built-in ExcelExport controller to apply custom formatting to exported Excel files, such as converting float time values to HH:MM format, formatting date fields, and adjusting column widths. For all other models, the default Odoo export behavior is preserved. This solution is ideal for tailoring Excel exports to better reflect the UI presentation of time and date fields for specific business needs.
NNH
2025-07-14 01:33
232
0
0
Odoo 17: Display an Icon for Required Fields in Form View Labels
how to customize Odoo form views to display a Font Awesome icon instead of the default asterisk (*) for required fields, improving the look of the user interface.
NNH
2025-06-22 19:04
171
0
0
Customizing the Display of Many2one Dropdowns with `display_name` in Odoo 17
how to customize the display labels in Odoo 17 dropdowns using a computed display_name field. This tutorial how to enhance user experience by combining multiple fields into a more informative label in Many2one selection lists.
NNH
2025-06-19 20:54
200
0
0
How to Dynamically Populate Selection Values in an Odoo 17 Wizard
how to dynamically populate selection values in an Odoo wizard based on the user's input and contextual data. Specifically, it shows how to filter a Many2one field in a wizard so that it only displays relevant records based on another field's value — a powerful technique when building interactive and user-friendly workflows in Odoo.
NNH
2025-06-18 01:14
247
0
0
How to Auto-Increment a Field Value When Clicking “Add a Line” in Odoo17
In Odoo, One2many fields are widely used to manage related records directly within a form view. A common requirement is to automatically increment a field—like a sequence number—whenever a new line is added using the "Add a line" button. This article provides a easy-to-implement solution using the @api.onchange decorator in the child model, how to dynamically assign incremental values to the sequence field without manual input, improving data consistency and user experience.
NNH
2025-06-17 02:06
184
0
0
How to Change Browser Tab Title in Odoo 17
By default, Odoo 17 dynamically sets the browser tab title based on the current menu or action (e.g., "Odoo - Sales"). However, in some cases, you may want to force a fixed title for branding or usability reasons. This article shows how to override the default behavior and set a custom browser tab title.
NNH
2025-06-10 23:41
174
0
0
Fix WebAuthn Installation Error on Ubuntu 20.04
Fix WebAuthn installation error on Ubuntu 20.04 caused by missing or incompatible Python libraries (urllib3)
NNH
2025-05-23 21:17
207
0
0
How to Use Odoo 17 Models with _auto = False to Query Data from Multiple Tables
This article explains how to use Odoo models with _auto = False to create a unified data view from multiple tables using custom SQL queries. It demonstrates how to define a model without a database table, build a SQL View for data aggregation, and handle delete actions using direct SQL commands. This method is ideal for reporting and combined data displays in Odoo.
NNH
2025-05-13 23:59
201
0
0