From 95047f3c33d6e7e92589480f3e2e9fa0546ab0c2 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 17 Jul 2026 09:47:16 +0000 Subject: [PATCH] chore: fix set_title - use Opportunity.title instead of non-existent opportunity_name --- AGENTS.md | 2 +- .../service_factory/doctype/engagement_card/engagement_card.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 567f898..18ea559 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,6 +1,6 @@ # Service Factory — ERPNext Custom App Project -> **Current Version: V0.1.0027** — Each completed prompt/step increments the patch number by 1 (V0.1.0000 → V0.1.0001 → V0.1.0002…). The agent automatically commits and pushes after every step. +> **Current Version: V0.1.0028** — Each completed prompt/step increments the patch number by 1 (V0.1.0000 → V0.1.0001 → V0.1.0002…). The agent automatically commits and pushes after every step. ## Project Overview diff --git a/service_factory/service_factory/service_factory/doctype/engagement_card/engagement_card.py b/service_factory/service_factory/service_factory/doctype/engagement_card/engagement_card.py index c7dce56..7a95c72 100644 --- a/service_factory/service_factory/service_factory/doctype/engagement_card/engagement_card.py +++ b/service_factory/service_factory/service_factory/doctype/engagement_card/engagement_card.py @@ -19,7 +19,7 @@ class EngagementCard(Document): customer_name = frappe.db.get_value("Customer", self.customer, "customer_name") parts.append(customer_name or self.customer) if self.opportunity: - opp_name = frappe.db.get_value("Opportunity", self.opportunity, "opportunity_name") + opp_name = frappe.db.get_value("Opportunity", self.opportunity, "title") parts.append(opp_name or self.opportunity) if self.task: parts.append(self.task)