Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4380 Visualizzazioni

Hi All,

In my current project, I'm using Odoo V8. I've a M2O field partner_id in my custom module, with ref. to res.partner

Now I've 2 boolean fields (radio buttons: 1. customer, 2.supplier), displaying just above the partner_id.

So whichever among these radio buttons get selected/checked, I want to filter the partner list with it. 

For example, if customer radio is checked then I want to list only customers and if supplier radio is checked then the list of suppliers.

This can be achievable by using dynamic domain from onchange() method. (Working for me)

But my real issue is, if we click on the seach more... option in the partner_id we need to open the list of all partners without any domain/filter (both client & suppliers), no matter what radio is selected & what domain has been applied.

Currently when I'm clicking the search more... option it's opening a tree view of partners but with the domain as customer/supplier.

I want to clear/remove this domain from the list. Please help me with this.

As the domain applied on a filter is not displaying as a filter on the search view so that I can close it to clear the filter.

Any help or suggestions would be appreciated :)

Cheers
ASP:)

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mar 16
10064
2
mag 24
3684
1
gen 24
1819
1
gen 22
5549
0
lug 19
2827