I'm trying to see if there is a way to change the order of items that are displayed in the search panel. I have specific need for the order I want my items to be displayed.
Currently search panel has items out of order and I can't find the logic it's built with.
I’m trying to reorder it so it shows in this order: distribution, awaiting approval, done. Currently it is displaying it in this order: awaiting approval, distribution, done
yes there is a way but could you share what it's exactly the search view that you are referring too? also what did you already tried that you mentioned but not explained
When you create a search view, you can create a panel that will be displayed on the left of the screen. It has different items that I need to be displayed in a specific order. I tried to create groups and use Group By and use Order By, both in search view and tree view but that didn't work. I also tried to update my python code and create compute state sequence, but that didn't work either. Here is my search view xml code for reference:
<record id="view_vendor_bill_search" model="ir.ui.view">
<field name="name">vendor.bill.search</field>
<field name="model">vendor.bill</field>
<field name="arch" type="xml">
<search>
<field name="vendor_name" string="Vendor" filter_domain="['|', ('vendor_name', 'ilike', self), ('vendor_invoice_number', 'ilike', self)]"/>
<searchpanel>
<field name="state" icon="fa-folder-open" enable_counters="1" select="multi"/>
</searchpanel>
</search>
</field>
</record>