How to relate any email with custom module data in

2019-08-26 19:19发布

问题:

I have created a custom module and also have integrated emails tab in Related list.

Now I want to link any email with any entry from this custom module listing.

When I create(compose) any email and from that compose popup screen I am able to select my custom module option, but when i click on the "search" button to find the entry from listing (to which i want to relate that email), I find no listing for that custom module. However there are few entries available for that custom module.

So the issue is - The custom module listing shows no entries when try to select from compose email window.

Check the screenshots of the issue:

  1. While composing email from : Custom module >> Related tabs >> Emails >> Add Email

  1. selecting related entity for email- No listing is displaying for my custom module

回答1:

We resolved same issue on SalesOrder module. I have created on custom field email on Salesorder and update data for email field manually in this table also i have add get_email() function in salesorder.php file (copy from lead module).

get SalesOrder Module data which click on search button on pick list

After this you can see the send email data in related list grid.