mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
minor fix in item naming
This commit is contained in:
@@ -55,6 +55,7 @@ class Item(WebsiteGenerator):
|
|||||||
else:
|
else:
|
||||||
from frappe.model.naming import set_name_by_naming_series
|
from frappe.model.naming import set_name_by_naming_series
|
||||||
set_name_by_naming_series(self)
|
set_name_by_naming_series(self)
|
||||||
|
self.item_code = self.name
|
||||||
elif not self.item_code:
|
elif not self.item_code:
|
||||||
msgprint(_("Item Code is mandatory because Item is not automatically numbered"), raise_exception=1)
|
msgprint(_("Item Code is mandatory because Item is not automatically numbered"), raise_exception=1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user