Hello everyone,
I'd like to know if and how I can add a new custom search subpanel for the module "Contacts".
I have to list all the contacts from a research of an account name. The probleme is that it is actually listing only the contacts directly associated with the account, and I'd like it to consider the "tree" of the accounts (through the accounts.parent_id field).
I had the idea to create a custom search subpanel for the "Contacts" module, and which would have a custom sql request of my own (the request itself is not the problem), but I can't find how I can do it. Also maybe there's another and better solution for my problem, would you have any ideas ?
PS
To illustrate my problem, let's imagine something like this :
ACCOUNT_PARENT
|_ ACCOUNT_EXEMPLE_SUB1
|_ ACCOUNT_EXEMPLE_SUB2
|_ ACCOUNT_OTHER_SUB3
-> all the "sub-accounts" have the "ACCOUNT_EXEMPLE" id in their parent_id.
What I want is when I search contacts either with "EXEMPLE", "OTHER" or "PARENT", it lists me all the contacts associated with all the 4 accounts above.


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks