Fix make_email_account patch

This commit is contained in:
Pratik Vyas 2015-04-15 14:36:09 +05:30
parent 749e20f66d
commit 850ee3c53d

View File

@ -78,7 +78,7 @@ def insert_or_update(account):
account.insert()
except frappe.NameError, e:
if e.args[0]=="Email Account":
existing_account = frappe.get_doc("Email Account", e.args[0])
existing_account = frappe.get_doc("Email Account", e.args[1])
for key, value in account.as_dict().items():
if not existing_account.get(key) and value \
and key not in default_fields \