fix: validate variant values (backport #54831) (#54839)

fix: validate variant values (#54831)

(cherry picked from commit 95705f18aa)

Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
This commit is contained in:
mergify[bot]
2026-05-11 21:23:34 +05:30
committed by GitHub
parent b894b02ebc
commit 87b798b936
2 changed files with 39 additions and 1 deletions

View File

@@ -1619,7 +1619,7 @@ class TestSalesOrder(ERPNextTestSuite):
make_item( # template item
"Test-WO-Tshirt",
{
"has_variant": 1,
"has_variants": 1,
"variant_based_on": "Item Attribute",
"attributes": [{"attribute": "Test Colour"}],
},