From 392126357d885949c5bf0ec37441894840c36326 Mon Sep 17 00:00:00 2001 From: Henning Wendtland <156231187+HenningWendtland@users.noreply.github.com> Date: Mon, 16 Sep 2024 09:27:45 +0200 Subject: [PATCH] Update simple_subscription/simple_subscription/doctype/simple_subscription_item/simple_subscription_item.py Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com> --- .../simple_subscription_item/simple_subscription_item.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/simple_subscription/simple_subscription/doctype/simple_subscription_item/simple_subscription_item.py b/simple_subscription/simple_subscription/doctype/simple_subscription_item/simple_subscription_item.py index 8b5c1cd..47da803 100644 --- a/simple_subscription/simple_subscription/doctype/simple_subscription_item/simple_subscription_item.py +++ b/simple_subscription/simple_subscription/doctype/simple_subscription_item/simple_subscription_item.py @@ -47,5 +47,4 @@ def current_description(self): @property def item_name(self): - item = frappe.get_doc("Item", self.item) - return item.item_name + return frappe.db.get_value("Item", self.item, "item_name")