fix(test): item variant
This commit is contained in:
parent
e38c0e8716
commit
048e5f44b5
@ -791,6 +791,9 @@ class Item(WebsiteGenerator):
|
||||
d.conversion_factor = value
|
||||
|
||||
def validate_attributes(self):
|
||||
if not self.variant_based_on:
|
||||
self.variant_based_on = 'Item Attribute'
|
||||
|
||||
if (self.has_variants or self.variant_of) and self.variant_based_on == 'Item Attribute':
|
||||
attributes = []
|
||||
if not self.attributes:
|
||||
|
@ -18,7 +18,7 @@ from erpnext.stock.get_item_details import get_item_details
|
||||
from six import iteritems
|
||||
|
||||
test_ignore = ["BOM"]
|
||||
test_dependencies = ["Warehouse", "Item Group", "Item Tax Template"]
|
||||
test_dependencies = ["Warehouse", "Item Group", "Item Tax Template", "Brand"]
|
||||
|
||||
def make_item(item_code, properties=None):
|
||||
if frappe.db.exists("Item", item_code):
|
||||
|
Loading…
x
Reference in New Issue
Block a user