From eeb6d0e9bf1e6a2d202996bf80a5a37194fc9a18 Mon Sep 17 00:00:00 2001 From: Navin-S-R Date: Mon, 12 Jan 2026 16:45:04 +0530 Subject: [PATCH] fix: remove the redundant purchase receipt submit --- erpnext/assets/doctype/asset/test_asset.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/assets/doctype/asset/test_asset.py b/erpnext/assets/doctype/asset/test_asset.py index 46edf701c74..600f6126f61 100644 --- a/erpnext/assets/doctype/asset/test_asset.py +++ b/erpnext/assets/doctype/asset/test_asset.py @@ -734,7 +734,7 @@ class TestAsset(AssetSetup): asset_depr_schedule_before_sale.depreciation_schedule[0].get("depreciation_amount"), 83333.33 ) - # make a partial sales againt the asset + # make a partial sales against the asset si = make_sales_invoice( asset=asset.name, item_code="Macbook Pro", company="_Test Company", sell_qty=5 ) @@ -776,7 +776,6 @@ class TestAsset(AssetSetup): location=asset_location, supplier="_Test Supplier", ) - pr.submit() asset = frappe.db.get_value("Asset", {"purchase_receipt": pr.name, "docstatus": 0}, "name") asset_doc = frappe.get_doc("Asset", asset)