From 3aee14176c34048df87bceb6fb1c18d165f0389d Mon Sep 17 00:00:00 2001 From: ravibharathi656 Date: Mon, 9 Jun 2025 19:07:26 +0530 Subject: [PATCH] test: pass sales invoice name instead of doc --- erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py index c5b907685e8..3ad08885b94 100644 --- a/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py +++ b/erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py @@ -73,12 +73,10 @@ class TestSalesInvoice(FrappeTestCase): from erpnext.accounts.doctype.sales_invoice.sales_invoice import make_inter_company_purchase_invoice - # frappe.get_cached_doc("Company", "_Test Company") si = create_sales_invoice( customer="_Test Internal Customer 3", company="_Test Company", is_internal_customer=1, rate=100 ) - frappe.get_cached_doc("Customer", "_Test Internal Customer 3") - pi = make_inter_company_purchase_invoice(si) + pi = make_inter_company_purchase_invoice(si.name) pi.items[0].rate = 120 with self.assertRaises(ValidationError) as e: