how we can remove extra fields from filters??
so that filters contain only useful fields to filter a data.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
how we can remove extra fields from filters??
so that filters contain only useful fields to filter a data.
Hi,
For this, you can inherit and change the search view accordingly. After inheriting the search view, you can add new filters or remove existing filters as per the need.
Have a Look at this Blog and see how to do: Adding filters to existing search views
See the sample of adding new filters in sales,
<record id="view_sale_order_inherit_search" model="ir.ui.view">
<field name="name">sale.order.search.expand.filter</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.sale_order_view_search_inherit_quotation"/>
<field name="arch" type="xml">
<xpath expr="//search" position="inside">
<filter string="Total < 1000" name="total_under_1000" domain="[('amount_total', '<', 1000)]"/>
<filter string="Total >= 1000" name="total_above_1000" domain="[('amount_total', '>=', 1000)]"/>
</xpath>
</field>
</record>
Thanks
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
3
Jul 20
|
4108 | ||
Problem with kanban View
Solved
|
|
4
Aug 24
|
764 | |
|
1
Sep 22
|
9201 | ||
|
1
May 21
|
5289 | ||
|
2
May 17
|
13212 |