Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
4356 Ansichten

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
März 16
10041
2
Mai 24
3669
1
Jan. 24
1800
1
Jan. 22
5543
0
Juli 19
2816