Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
2317 Visualizações

Hi friends,

In Odoo, In a Contact page(Form), On Accounting page:

I want to filter The 'Bank' IDs based on the country set for contact.

For example, if the country of contact is set to 'Canada', I want to show just the Canadian bank name and not all banks. How can I do that?




Avatar
Cancelar
Melhor resposta

Hi Masood Zarei,

You need to inherit the view and add the following domain to the field bank.


[('country','=',parent.country_id)]


Hope it helps,
Kiran K

Avatar
Cancelar

<field name="bank_id" position="attributes">
<attribute name="domain">[('country','=',parent.country_id)]</attribute>
</field>

Autor

Dear Kiran K, You are great. Thank you so much.

Publicações relacionadas Respostas Visualizações Atividade
1
set. 23
2294
1
out. 23
2342
1
set. 23
2210
1
ago. 23
23923
0
fev. 23
3017