work_entry_source_field
A radio field that knows one rule: a fully flexible calendar cannot use Working Hours as a work entry source. It warns the user rather than letting the server reject the save.
September 18, 2026Updated September 18, 20263 min read
| Technical name | work_entry_source_field |
|---|---|
| Field types | selection |
| Views | form |
| Module | hr_work_entry, installed with Payroll and attendance flows |
| Used in core | 0 uses in Odoo 19 Community or Enterprise. Removed in Odoo 20. |
| Versions | Odoo 19.0 |
| No-code setup | No. There is no Studio entry for this widget. |
| Alternatives | radio, selection, selection_badge |
What the work_entry_source_field widget does
What this means for your team
Working examples
Version compatibility
| Version | Status | Notes |
|---|---|---|
| Odoo 19.0 | Verified | Verified against the shipped 19.0 source. Inherits radio's options. |
| Odoo 20.0 | Not available | Removed. work_entry_type_badge is a different widget, not a replacement. |
Present in Odoo 19, removed in Odoo 20.
What is changing in Odoo 20
Common problems and fixes
| Symptom | Cause and fix |
|---|---|
| The warning never appears | The employee has a working schedule, so the calendar is not fully flexible and the rule does not apply. Expected. The warning is specific to employees with no resource_calendar_id. |
| The widget stopped resolving after upgrading to Odoo 20 | The registration was removed. Use the plain radio widget and enforce the rule in a Python constraint. |
| A user saved an invalid combination anyway | The widget warns but does not block, and it only covers the form. Imports and API writes bypass it entirely. Add a server-side constraint if the rule must be enforced. |
Work_entry_source_field widget vs the alternatives
| Widget | Best for | Key difference |
|---|---|---|
work_entry_source_field | Warning about an invalid work entry source at entry time | Encodes one payroll rule as a tooltip, and does not exist in Odoo 20 |
| radio | The same choices with no built-in rule | No warning, and present in every version |
| selection | A compact dropdown instead of radio buttons | Different layout, no rule awareness |
| selection_badge | Choices rendered as badges | Visual style rather than validation |
Frequently asked questions
What does work_entry_source_field warn about?+
Was it removed in Odoo 20?+
How do I keep the rule on Odoo 20?+
Payroll rules that only surface at save time?
Flexible calendars, work entry sources and attendance rules interact in ways that produce errors nobody can interpret. We build payroll configuration where the rules are enforced server-side and explained in the interface.
Talk to an Odoo consultant