Commit 067fd2f
[FIX] models: don't assume ids are ints in sorted()
Some models (e.g. calendar.event), use "virtual" ids which are not represented
as integers. It was not possible to use sorted method on those models as calling
int() is failing.
This commit fixes the method, making it agnostic to the type of the
'id' member variable.
Fixes odoo#74541 parent a35af81 commit 067fd2f
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
5391 | 5392 | | |
5392 | 5393 | | |
5393 | 5394 | | |
5394 | | - | |
| 5395 | + | |
5395 | 5396 | | |
5396 | 5397 | | |
5397 | 5398 | | |
| |||
0 commit comments