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
203
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
219
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
173
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
201
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
249
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
185
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
175
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
202
0
0
Custom Logic Login in Odoo 16 & 17
how to customize the login process in Odoo 16 and 17 to block users linked to archived employees or employees with a disabled login status. By overriding the default /web/login controller, you can enforce business-specific login restrictions while keeping Odoo’s standard authentication flow.
NNH
2025-05-13 01:29
131
0
0
How to Add a Button in the Header of a Kanban or List View in Odoo 17
This article demonstrates two practical methods to add custom buttons to the header of a List View or Kanban View in Odoo 17. It includes complete XML, JavaScript, and view inheritance examples to help developers quickly enhance user interfaces with actionable buttons based on model context.
NNH
2025-05-08 00:00
151
0
0