Merge branch 'master' of github.com:webnotes/erpnext
diff --git a/buying/doctype/supplier/supplier.py b/buying/doctype/supplier/supplier.py
index c02284e..f8de83f 100644
--- a/buying/doctype/supplier/supplier.py
+++ b/buying/doctype/supplier/supplier.py
@@ -20,6 +20,7 @@
 from webnotes.utils import cstr, get_defaults
 from webnotes.model.code import get_obj
 from webnotes import msgprint
+from webnotes.model.doc import make_autoname
 
 sql = webnotes.conn.sql