Skip to content

Commit

Permalink
fix: Use set instead of db_set as it is called from validate
Browse files Browse the repository at this point in the history
  • Loading branch information
nabinhait committed Apr 20, 2023
1 parent f218df4 commit f77d448
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 f77d448

Please sign in to comment.