Activity relationship with two modules

Hello, I have created a field to be able to relate the lead module and the opportunity module, so that when creating a visit from the lead I can relate an opportunity.

But the related activity does not appear in the subpanel.

How can I do it??

For that you will need to create a workflow or logichook to create the actual relationship to opportunities when saving the lead. Because you use the relate field, that will allow you to relate the correct bean.