Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
1871 Представления
how to delete or hide selected item on filter button on odoo 14

 



Аватар
Отменить

if you refresh it will disappers

Автор
I mean, when I create an application and have created my own filter that is ready for client use, and so that there are not many unused odoo default filters. the question is whether the default odoo filter can be hidden?


Hi , replace filter 

    


Автор Лучший ответ

thank for respon and i'll try it

Аватар
Отменить
Лучший ответ

Hi,

In order to hide the existing filters, you can inherit the search view and set invisible attribute for those filters or replace it.


Thanks

Аватар
Отменить

<record id="website_visitor_view_search" model="ir.ui.view">
<field name="name">website.visitor.view.search.inherit.website.crm</field>
<field name="model">website.visitor</field>
<field name="inherit_id" ref="website.website_visitor_view_search"/>
<field name="arch" type="xml">
<xpath expr="//filter[@name='type_visitor_field']" position="replace"/>
<xpath expr="//filter[@name='type_visitor']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
</field>
</record>