Hi,
I have created a custom doctype Sourcing request using custom app called developer. I want to create the sourcing request document from opportunity like work order being created from Production plan. I have given custom script as below,
refresh: function(frm) {
frm.add_custom_button(__('New Sourcing Request'),
cur_frm.cscript.create_sourcing_request, __('Create Sourcing Request'));
frm.trigger("make_sourcing_request");
},
make_sourcing_request: function(frm) {
frappe.call({
method: "developer.developer.doctype.sourcing_request.make_sourcing_request",
freeze: true,
frm: cur_frm,
callback: function() {
frm.reload_doc();
}
});
}
When I am giving create sourcing request from Opportunity i am getting Attribute error,
I am not sure where is the exact error, i have given the right path , kindly help.
Thanks in advance!