| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 34 |
| Technical Name |
force_numeric_dates |
| License | LGPL-3 |
| Website | https://www.odoo.com |
Force Numeric Dates
Odoo 19 changed the default rendering of date and datetime fields
to a text-month format (e.g. Jan 15, 2026). This module restores numeric
date display (15/01/2026) using each user's own language format — automatically,
with no view changes required.
Before: Jan 15, 2026 → After: 15/01/2026
(format follows each user's language: DD/MM/YYYY, MM/DD/YYYY, etc.)
Odoo 19
Per-User
Language-Aware
No Configuration
Features
- Per-user, per-language — format is read from
res.lang.date_format; every user sees their own locale's numeric date. - Zero view changes — no need to add
options="{'numeric': true}"to every field in every view. - Full coverage — list cells, form views, kanban cards, search/group-by facets, input placeholders, and list column widths all updated.
- Per-field opt-out — add
options="{'numeric': false}"to any field in a view arch to keep text-month format for that specific field.
Coverage
| Surface | Mechanism |
|---|---|
| List view cells | formatters registry override |
| Search / group-by facets | formatters registry override |
| Form view (readonly & editable) | DateTimeField.defaultProps + extractProps |
| Kanban view | DateTimeField.defaultProps + extractProps |
| Input placeholder text | extractProps patch |
| List column widths | listViewWidth patch (numeric_date / numeric_datetime) |
| Date range fields | Automatic (dateRangeField delegates to patched helpers) |
What Is Not Covered
Chatter, Activity, and Discuss timestamps are rendered by a separate helper
(toLocaleDateTimeString) in the mail addon and are intentionally
not changed by this module.
Configuration
None required. Install the module and all backend date/datetime fields switch to numeric display immediately. Each user's language setting in Preferences controls the exact format (DD/MM/YYYY, MM/DD/YYYY, YYYY-MM-DD, etc.).
Technical Notes
- Pure JavaScript / OWL — no Python models, no database changes.
- Depends only on the
webmodule. - Compatible with Odoo 19 Community and Enterprise.
Please log in to comment on this module