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: