minor fix in item naming

This commit is contained in:
Nabin Hait 2018-03-20 12:31:05 +05:30
parent cd525299ee
commit d97c5a04b2

View File

@ -55,6 +55,7 @@ class Item(WebsiteGenerator):
else:
from frappe.model.naming import set_name_by_naming_series
set_name_by_naming_series(self)
self.item_code = self.name
elif not self.item_code:
msgprint(_("Item Code is mandatory because Item is not automatically numbered"), raise_exception=1)