Commit 8eee53f
[FIX] hr_holidays: fix leave type operator
Problem
---------
The domain helper for allocation-based leave types failed to pass the comparison value to the operator. As a result, creating a new Time Off Type caused a crash.
This could be reproduced via:
- Time Off → Configuration → Time Off Types → open any type → Smart button “Time Off” → New → Time Off Type
- Time Off → Management → Time Off → New Time Off Type
Cause
----------
The comparison helper was missing a return value, causing the operator to receive an incomplete set of arguments.
Solution
----------
The fix adds the correct return value so the operator is properly executed.
task-53814901 parent e8d366f commit 8eee53f
File tree
2 files changed
+35
-1
lines changed- addons/hr_holidays
- models
- tests
2 files changed
+35
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
0 commit comments