fix in the item for the function make_variant_item_code (#9280)
This commit is contained in:
parent
737482423b
commit
40be3f4048
@ -37,7 +37,7 @@ class Item(WebsiteGenerator):
|
||||
if frappe.db.get_default("item_naming_by")=="Naming Series":
|
||||
if self.variant_of:
|
||||
if not self.item_code:
|
||||
self.item_code = make_variant_item_code(self.variant_of, self)
|
||||
self.item_code = make_variant_item_code(self.variant_of, self.item_name, self)
|
||||
else:
|
||||
from frappe.model.naming import make_autoname
|
||||
self.item_code = make_autoname(self.naming_series+'.#####')
|
||||
|
Loading…
x
Reference in New Issue
Block a user