[import] fixes
This commit is contained in:
parent
dd548eeac3
commit
e6d986adea
@ -115,6 +115,7 @@ items = [
|
|||||||
"title": "Printing",
|
"title": "Printing",
|
||||||
"icon": "icon-print"
|
"icon": "icon-print"
|
||||||
},
|
},
|
||||||
|
{ "doctype": "Terms and Conditions" },
|
||||||
{ "doctype": "Letter Head" },
|
{ "doctype": "Letter Head" },
|
||||||
{ "doctype": "Print Heading" },
|
{ "doctype": "Print Heading" },
|
||||||
{ "doctype": "Print Format", "filter": {"standard": "No"} },
|
{ "doctype": "Print Format", "filter": {"standard": "No"} },
|
||||||
|
|||||||
@ -32,7 +32,7 @@ class DocType(DocListController):
|
|||||||
from webnotes.model.doc import make_autoname
|
from webnotes.model.doc import make_autoname
|
||||||
self.doc.item_code = make_autoname(self.doc.naming_series+'.#####')
|
self.doc.item_code = make_autoname(self.doc.naming_series+'.#####')
|
||||||
elif not self.doc.item_code:
|
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
|
self.doc.name = self.doc.item_code
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user