I have recently been trying to create more custom functionality in my ERPNext instance.
I am trying to create opportunities using a custom button, by selecting prospects in the Prospect list and clicking one custom button in the “Actions” drop down to create an opportunity with the prospect information pre-populated.
I have added the button thanks to the help from @NCP as seen below.
So once a user has selected a prospect, or many, from the Prospects list, the action button will have a button called “Create Opportunities” which will handle the task as described above.
I have tried looking for the method to create an opportunity from an individual prospect, which is present under the “Create” dropdown on the individual prospect once clicked, but I have not been successful in finding that method.
I am sure I would be able to achieve the above by using that method and looping through each selected Prospect?