From 1c67ff10bc2ff1da1c731808becabe9a2d728689 Mon Sep 17 00:00:00 2001 From: tinadn <144137113+tinadn@users.noreply.github.com> Date: Thu, 17 Oct 2024 19:28:49 +0530 Subject: [PATCH] Revert "feat: set status for assets created from purchase receipt" --- erpnext/controllers/buying_controller.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/erpnext/controllers/buying_controller.py b/erpnext/controllers/buying_controller.py index ca96890cbe31..66c91c8fcfb8 100644 --- a/erpnext/controllers/buying_controller.py +++ b/erpnext/controllers/buying_controller.py @@ -810,10 +810,6 @@ def make_asset(self, row, is_grouped_asset=False): asset_quantity = row.qty if is_grouped_asset else 1 purchase_amount = flt(row.valuation_rate) * asset_quantity - # getting default value of status from Asset - asset_meta = frappe.get_meta("Asset") - default_asset_status = asset_meta.get_field("status") - asset = frappe.get_doc( { "doctype": "Asset", @@ -831,7 +827,6 @@ def make_asset(self, row, is_grouped_asset=False): "asset_quantity": asset_quantity, "purchase_receipt": self.name if self.doctype == "Purchase Receipt" else None, "purchase_invoice": self.name if self.doctype == "Purchase Invoice" else None, - "status": default_asset_status.default if default_asset_status.default else None } )