Skip to content

Commit

Permalink
fix: Use set instead of db_set as it is called from validate (#34967)
Browse files Browse the repository at this point in the history
  • Loading branch information
nabinhait committed Apr 25, 2023
1 parent ecea9b4 commit 72b5c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/crm/doctype/opportunity/opportunity.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def map_fields(self):
if not self.get(field) and frappe.db.field_exists(self.opportunity_from, field):
try:
value = frappe.db.get_value(self.opportunity_from, self.party_name, field)
self.db_set(field, value)
self.set(field, value)
except Exception:
continue

Expand Down

0 comments on commit 72b5c1f

Please sign in to comment.