[FIX] stock: fix on style of warehouse filter on search panel

This commit changes the style of warehouse filter on hover and when something is selected so there is evidence that is clickable and if something is selected

closes odoo/odoo#146371

X-original-commit: 229fd7e5351889307f8b6340990a195cbfe1cebc
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
Signed-off-by: Tiffany Chang (tic) <tic@odoo.com>
This commit is contained in:
micheledic
2023-12-21 10:42:44 +00:00
parent 9be2ec255b
commit a7f24724ad
@@ -10,12 +10,12 @@
</header>
<ul class="list-group d-block o_search_panel_field">
<li class="o_search_panel_filter_value list-group-item p-0 mb-1 border-0 o_cursor_pointer">
<span t-on-click="ev => this.clearWarehouseContext(ev)" t-att-class="{'fw-bold': !selectedWarehouse}">All Warehouses</span>
<span t-on-click="ev => this.clearWarehouseContext(ev)" t-att-class="{'fw-bolder': !selectedWarehouse, 'o_search_panel_label_title':true}">All Warehouses</span>
</li>
<li class="o_search_panel_filter_value list-group-item p-0 mb-1 border-0 o_cursor_pointer"
t-foreach="warehouses" t-as="warehouse" t-key="warehouse.id">
<span t-out="warehouse.name" t-on-click="ev => this.applyWarehouseContext(warehouse.id, ev)"
t-att-class="{'fw-bold': selectedWarehouse === warehouse.id}"/>
t-att-class="{'fw-bolder': selectedWarehouse === warehouse.id, 'o_search_panel_label_title':true}"/>
</li>
</ul>
</section>