Pular para o conteúdo
Odoo Menu
  • Entrar
  • Experimente grátis
  • Aplicativos
    Finanças
    • Financeiro
    • Faturamento
    • Despesas
    • Planilhas (BI)
    • Documentos
    • Assinar Documentos
    Vendas
    • CRM
    • Vendas
    • PDV Loja
    • PDV Restaurantes
    • Assinaturas
    • Locação
    Websites
    • Criador de Sites
    • e-Commerce
    • Blog
    • Fórum
    • Chat ao Vivo
    • e-Learning
    Cadeia de mantimentos
    • Inventário
    • Fabricação
    • PLM - Ciclo de Vida do Produto
    • Compras
    • Manutenção
    • Qualidade
    Recursos Humanos
    • Funcionários
    • Recrutamento
    • Folgas
    • Avaliações
    • Indicações
    • Frota
    Marketing
    • Redes Sociais
    • Marketing por E-mail
    • Marketing por SMS
    • Eventos
    • Automação de Marketing
    • Pesquisas
    Serviços
    • Projeto
    • Planilhas de Horas
    • Serviço de Campo
    • Central de Ajuda
    • Planejamento
    • Compromissos
    Produtividade
    • Mensagens
    • Aprovações
    • Internet das Coisas
    • VoIP
    • Conhecimento
    • WhatsApp
    Aplicativos de terceiros Odoo Studio Plataforma Odoo Cloud
  • Setores
    Varejo
    • Loja de livros
    • Loja de roupas
    • Loja de móveis
    • Mercearia
    • Loja de ferramentas
    • Loja de brinquedos
    Comida e hospitalidade
    • Bar e Pub
    • Restaurante
    • Fast Food
    • Hospedagem
    • Distribuidor de bebidas
    • Hotel
    Imóveis
    • Imobiliária
    • Escritório de arquitetura
    • Construção
    • Administração de propriedades
    • Jardinagem
    • Associação de proprietários de imóveis
    Consultoria
    • Escritório de Contabilidade
    • Parceiro Odoo
    • Agência de marketing
    • Escritório de advocacia
    • Aquisição de talentos
    • Auditoria e Certificação
    Fabricação
    • Têxtil
    • Metal
    • Móveis
    • Alimentação
    • Cervejaria
    • Presentes corporativos
    Saúde e Boa forma
    • Clube esportivo
    • Loja de óculos
    • Academia
    • Profissionais de bem-estar
    • Farmácia
    • Salão de cabeleireiro
    Comércio
    • Handyman
    • Hardware e Suporte de TI
    • Sistemas de energia solar
    • Sapataria
    • Serviços de limpeza
    • Serviços de climatização
    Outros
    • Organização sem fins lucrativos
    • Agência Ambiental
    • Aluguel de outdoors
    • Fotografia
    • Aluguel de bicicletas
    • Revendedor de software
    Navegar por todos os setores
  • Comunidade
    Aprenda
    • Tutoriais
    • Documentação
    • Certificações
    • Treinamento
    • Blog
    • Podcast
    Empodere a Educação
    • Programa de educação
    • Scale Up! Jogo de Negócios
    • Visite a Odoo
    Obtenha o Software
    • Baixar
    • Comparar edições
    • Releases
    Colaborar
    • Github
    • Fórum
    • Eventos
    • Traduções
    • Torne-se um parceiro
    • Serviços para parceiros
    • Cadastre seu escritório contábil
    Obtenha os serviços
    • Encontre um parceiro
    • Encontre um Contador
    • Conheça um consultor
    • Serviços de Implementação
    • Referências de Clientes
    • Suporte
    • Upgrades
    Github YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Faça uma demonstração
  • Preços
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Financeiro
  • Inventário
  • PoS
  • Projeto
  • MRP
All apps
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
Ajuda

How to add custom filter?

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
filter
8 Respostas
86724 Visualizações
Avatar
Fransis L. Yoas

I add a new field using selection that consist list of country. How to filter the country in list view (using search field in top right of the screen)? Or how to add a search like "Search 'my_filter' for : " in the search bar like the image below? image description

3
Avatar
Cancelar
Avatar
mike
Melhor resposta

A good way to accomplish this is to modify that particular view, specifically the search view section. If it doesn't have one you can add it. Here is good instruction for this: link text

Also see this about the filter tag as another possible solution: link text

<filter string="Current" domain="[('state','in',('open','draft'))]" help="Draft, Open and Pending Tasks" icon="terp-project"/>
<field name="project_id" select="1" widget="selection">
    <filter domain="[('project_id.user_id','=',uid)]" help="My Projects" icon="terp-project"/>
</field>

The most simple method would be to create an advanced search including that custom field and save it.

6
Avatar
Cancelar
Fransis L. Yoas
Autor

Thanks for your answer, but can you help me to give a detailed step how to put that code or how to do it with developers mode in OpenERP? Because the documentation is not clear and I don't understand.

mike

with OpenERP in Developer Mode browse to the place where you want to change the view. Find the drop-down on the upper left and select Edit Search View. An Edit SearchView dialog will open with form fields for editing the name, type etc. as well as the code for the view. For examples of how to code this open the file addons\stock\stock_view.xml and find the record tag with ID = view_picking_internal_search. Now go into the Warehouse/Incoming Shipments section of the app and click on search. The code for the search items you see is in that view file. Should help you understand how it works.

Fransis L. Yoas
Autor

thank you for your answer..It's working..GBU

JMB

Hi, You find a solution?

Avatar
Timo Talvitie, Vizucom Oy
Melhor resposta
  1. Activate the Developer Mode

  2. Go to the view you want to add the filter to

  3. From the debug dropdown menu, select Manage Filters, and click Create

  4. Give the filter a name and select the correct model (in your case Project Issue?)

  5. Clear the User field so that everyone can access the filter

  6. In the Domain section you put the filter condition itself, for example [('region','=','Africa')]

  7. Save and go back to the tree view, and your filter should show up in the Custom Filters section of the search box

Hope that helps

1
Avatar
Cancelar
Fransis L. Yoas
Autor

Thanks for helping and giving answer. But it seems not working properly. I editing [('region','=','Africa')] into [('x_region','=','Africa')] (my field name) but it always get all of the issue. But if the code works, it still not a simple way to do with filter, isn't it? Because I have 7 selection of region, and if the user want to select 1 filter, he/she must have a 'anothor step to do' to pick the dropdown list in the search view. But again, thanks for your answer.

Avatar
Maxg
Melhor resposta

To search customers by phone or by mobile:

1. Activate the Developer Mode

2. Go to sales, customers

3. From the debug dropdown menu, select Edit SearchView

To search by phone add:

<field name="phone" filter_domain="['|','|',('display_name','ilike',self),('ref','=',self),('phone','ilike',self)]"/>

To search by mobile add:

<field name="mobile" filter_domain="['|','|',('display_name','ilike',self),('ref','=',self),('mobile','ilike',self)]"/>

-2
Avatar
Cancelar
Está gostando da discussão? Não fique apenas lendo, participe!

Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!

Inscreva-se
Publicações relacionadas Respostas Visualizações Atividade
cbbbbggf
filter
Avatar
0
nov. 25
2
Factura en estado "EN PROCESO DE PAGO"
filter
Avatar
0
nov. 25
2
Simultaneous search criteria across companies and persons Resolvido
filter
Avatar
Avatar
1
out. 25
770
Extended "shop" controller executes (confirmed by log), but the view ignores the modified "qcontext" (even with request.render)
filter
Avatar
Avatar
Avatar
3
out. 25
918
Differentiating subscription invoices from one-shot services Resolvido
filter
Avatar
Avatar
Avatar
3
set. 25
1070
Comunidade
  • Tutoriais
  • Documentação
  • Fórum
Open Source
  • Baixar
  • Github
  • Runbot
  • Traduções
Serviços
  • Odoo.sh Hosting
  • Suporte
  • Upgrade
  • Desenvolvimentos personalizados
  • Educação
  • Encontre um Contador
  • Encontre um parceiro
  • Torne-se um parceiro
Sobre nós
  • Nossa empresa
  • Ativos da marca
  • Contato
  • Empregos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidade
  • Segurança
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo é um conjunto de aplicativos de negócios em código aberto que cobre todas as necessidades de sua empresa: CRM, comércio eletrônico, contabilidade, estoque, ponto de venda, gerenciamento de projetos, etc.

A proposta de valor exclusiva Odoo é ser, ao mesmo tempo, muito fácil de usar e totalmente integrado.

Site feito com

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now