[import] fixes

This commit is contained in:
Rushabh Mehta 2013-06-27 10:54:49 +05:30
parent dd548eeac3
commit e6d986adea
2 changed files with 2 additions and 1 deletions

View File

@ -115,6 +115,7 @@ items = [
"title": "Printing",
"icon": "icon-print"
},
{ "doctype": "Terms and Conditions" },
{ "doctype": "Letter Head" },
{ "doctype": "Print Heading" },
{ "doctype": "Print Format", "filter": {"standard": "No"} },

View File

@ -32,7 +32,7 @@ class DocType(DocListController):
from webnotes.model.doc import make_autoname
self.doc.item_code = make_autoname(self.doc.naming_series+'.#####')
elif not self.doc.item_code:
msgprint(_("Item Code is mandatory"), raise_exception=1)
msgprint(_("Item Code (item_code) is mandatory because Item naming is not sequential."), raise_exception=1)
self.doc.name = self.doc.item_code