Skip to content

Commit 417e8a4

Browse files
kavin-114mergify[bot]
authored andcommitted
fix: pass company in test case using make_quality_inspections
(cherry picked from commit 397de12)
1 parent 3844982 commit 417e8a4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

erpnext/stock/doctype/quality_inspection/test_quality_inspection.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ def test_make_quality_inspections_from_linked_document(self):
142142
inspection_type = "Outgoing"
143143
for item in dn.items:
144144
item.sample_size = item.qty
145-
quality_inspections = make_quality_inspections(dn.doctype, dn.name, dn.items, inspection_type)
145+
quality_inspections = make_quality_inspections(
146+
dn.company, dn.doctype, dn.name, dn.items, inspection_type
147+
)
146148
self.assertEqual(len(dn.items), len(quality_inspections))
147149

148150
# cleanup

0 commit comments

Comments
 (0)