[FIX] account: fix searchpanel width issue

This commit fixes an issue about the search panel content being cut in
some accounting interfaces. This is due to the fact that the searchpanel
with a specific class would get an arbitrary width value in px.

To avoid this issue, we set a `w-auto` to the searchpanel, allowing it
to adapt its width to its content.

task-3560617

closes odoo/odoo#161382

X-original-commit: f90339c0c6fc27bab7e21d2e78bec043f6327146
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
Signed-off-by: Chrysanthe Gomrée (chgo) <chgo@odoo.com>
This commit is contained in:
Chrysanthe (chgo)
2024-04-11 06:34:43 +00:00
parent 308326816f
commit 72785de2d4
3 changed files with 2 additions and 3 deletions
@@ -1,5 +1,4 @@
.o_search_panel.account_root {
flex: 0 0 54px;
padding: 6px !important; // need to override bootstrap ps-4 rule
scrollbar-width: thin;
.o_search_panel_section_header {
@@ -157,7 +157,7 @@
<group expand="0" string="Group By">
<filter string="Account Type" name="accounttype" domain="" context="{'group_by':'account_type'}"/>
</group>
<searchpanel class="account_root">
<searchpanel class="account_root w-auto">
<field name="root_id" icon="fa-filter" limit="0"/>
</searchpanel>
</search>
+1 -1
View File
@@ -365,7 +365,7 @@
<filter string="Tax Grid" name="group_by_tax_tags" domain="[]" context="{'group_by': 'tax_tag_ids'}"/>
<filter string="Matching #" name="group_by_matching" domain="[]" context="{'group_by': 'matching_number'}"/>
</group>
<searchpanel class="account_root">
<searchpanel class="account_root w-auto">
<field name="account_root_id" icon="fa-filter" groupby="account_id" limit="0"/>
</searchpanel>
</search>