chore: fix set_title - use Opportunity.title instead of non-existent opportunity_name
This commit is contained in:
parent
9f2cad6b59
commit
95047f3c33
2 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
# Service Factory — ERPNext Custom App Project
|
# 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
|
## Project Overview
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ class EngagementCard(Document):
|
||||||
customer_name = frappe.db.get_value("Customer", self.customer, "customer_name")
|
customer_name = frappe.db.get_value("Customer", self.customer, "customer_name")
|
||||||
parts.append(customer_name or self.customer)
|
parts.append(customer_name or self.customer)
|
||||||
if self.opportunity:
|
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)
|
parts.append(opp_name or self.opportunity)
|
||||||
if self.task:
|
if self.task:
|
||||||
parts.append(self.task)
|
parts.append(self.task)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue