Commit e093ffb
committed
[FIX] menu_items: fix sequence calculation for pivot data sources
Depending on the number of pivot tables, the pivot items could be
displayed after other items (e.g. Re-insert dynamic pivot) in the
topbar menu.
Practically, the number of pivots to observe the issue is not realistic,
as it requires more than 970 pivots.
But the issue can be observed easily with 25 lists in Odoo.
To fix the issue, we need to compute the sequence with decimal numbers,
to ensure that the pivot items are always between the first sequence
(50) and sequence + 1 (51).
closes #6993
Task: 5025230
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>1 parent e726d26 commit e093ffb
2 files changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | | - | |
| 464 | + | |
465 | 465 | | |
| 466 | + | |
466 | 467 | | |
467 | 468 | | |
468 | 469 | | |
| |||
472 | 473 | | |
473 | 474 | | |
474 | 475 | | |
475 | | - | |
| 476 | + | |
476 | 477 | | |
477 | 478 | | |
478 | 479 | | |
| |||
0 commit comments