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
fix: Use set instead of db_set as it is called from validate (#34967)

(cherry picked from commit 72b5c1f)

Co-authored-by: Nabin Hait <nabinhait@gmail.com>
  • Loading branch information
mergify[bot] and nabinhait authored Apr 25, 2023
1 parent 5923a80 commit 6650212
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 @@ -60,7 +60,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 6650212

Please sign in to comment.