Adapt New Doctype with the module

I created new Doctype called visits in CRM module i need to add this document in the Sales Pipeline and link it in lead and opportunity DASHBOARD and able to create new visit from make bottom at lead and opportunity pages

Any Answer Please

Add Your doctype in item list of Lead and Opportunity Dashboard

Dear @hereabdulla
Thanks for your reply
My doc name is visit and i successfully add it to lead dashboard but i need when click on visit automatically fetch the lead name for the new visit doc like Opportunity or Quotation
And when try to add visits in Opportunity Dashboard i got this error
OperationalError: (1054, “Unknown column ‘tabVisits.prevdoc_docname’ in ‘where clause’”)

Thanks in advance

Any update