I have created custom doctype named ‘contacts’ in custom module ‘meeting’ from there I want to make lead using custom button.
I have tried following code:
contacts.py:
contacts.js:
But I got error:
Can sm1 help me to solve this error?
I have created custom doctype named ‘contacts’ in custom module ‘meeting’ from there I want to make lead using custom button.
I have tried following code:
contacts.py:
Hi @Pranali_Thorve,
You can’t use the decorator @frappe.whitelist()
inside a class. Write that part of the code outside the class and also, there’s no need for indentation under the decorator.