[FIX] web: restore order-* for some oe_stat_button

In BS4, the classes utilities order was set from `-1` (first) to
`13` (last). This commit restores the old behaviour.
In BS5, you only have a range from `-1` to `6`.

These classes are used in Odoo to order the `oe_stat_button`
particularly for UTM campaign. The order is set using CSS as there no
simple way to do it using `XPath` as there are many module (installed or
not) targeting the `oe_stat_button`.

closes odoo/odoo#98458

Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
This commit is contained in:
Romeo Fragomeli
2022-08-19 14:28:23 +02:00
parent a91b53ed1d
commit 6ed6a512bf
@@ -40,6 +40,17 @@ $utilities-sizes: map-merge(
)
);
$order-array: (
first: -1,
last: $grid-columns + 1,
) !default;
@for $i from 1 through $grid-columns {
$order-array: map-merge(
$order-array,
(#{$i}: $i)
);
}
$utilities: () !default;
$utilities: map-merge(
@@ -112,6 +123,12 @@ $utilities: map-merge(
),
),
),
"order": map-merge(
map-get($utilities, "order"),
(
values: $order-array,
),
),
),
);