fix(stock): ignore qty validation for pick list (#53871)

This commit is contained in:
Sudharsanan Ashok
2026-03-30 12:07:26 +05:30
committed by GitHub
parent f3a794384a
commit d28474a450
2 changed files with 4 additions and 1 deletions

View File

@@ -1083,7 +1083,9 @@ class TestMaterialRequest(ERPNextTestSuite):
pl.locations[0].qty = 2
pl.locations[0].stock_qty = 2
self.assertRaises(frappe.ValidationError, pl.submit)
# System should allow picking qty for excess transfer
pl.submit()
def test_mr_status_with_partial_and_excess_end_transit(self):
material_request = make_material_request(

View File

@@ -88,6 +88,7 @@ class PickList(TransactionBase):
"join_field": "material_request_item",
"target_ref_field": "stock_qty",
"source_field": "stock_qty",
"validate_qty": False,
}
]