Bug in contact.js (#3546)

This commit is contained in:
Charles-Henri Decultot 2017-06-22 19:20:16 +02:00 committed by Rushabh Mehta
parent 3dbe747292
commit fb85e91ed6

View file

@ -19,7 +19,7 @@ frappe.ui.form.on("Contact", {
if(!frm.doc.user && !frm.is_new() && frm.perm[0].write) {
frm.add_custom_button(__("Invite as User"), function() {
frappe.call({
method: "frappe.email.doctype.contact.contact.invite_user",
method: "frappe.contacts.doctype.contact.contact.invite_user",
args: {
contact: frm.doc.name
},