mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 17:55:40 +00:00
fix: Validate variant attributes only if is_new
This commit is contained in:
@@ -800,7 +800,7 @@ class Item(WebsiteGenerator):
|
||||
attributes.append(d.attribute)
|
||||
|
||||
def validate_variant_attributes(self):
|
||||
if self.variant_of and self.variant_based_on == 'Item Attribute':
|
||||
if self.is_new() and self.variant_of and self.variant_based_on == 'Item Attribute':
|
||||
args = {}
|
||||
for d in self.attributes:
|
||||
if cstr(d.attribute_value).strip() == '':
|
||||
|
||||
Reference in New Issue
Block a user