mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
* refactor: Remove usage of deprecated methods (#32914)
Warn: Just used regex to replace all usage.
```regex
s/frappe.db.set(\(.*\),\(.*\),\(.*\))/\1.db_set(\2, \3)/g
```
Required after: https://github.com/frappe/frappe/pull/18815
(cherry picked from commit 7e1742956c)
# Conflicts:
# erpnext/accounts/doctype/sales_invoice/sales_invoice.py
* chore: conflicts
* style: black
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -60,7 +60,7 @@ class Opportunity(TransactionBase, CRMNote):
|
||||
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)
|
||||
frappe.db.set(self, field, value)
|
||||
self.db_set(field, value)
|
||||
except Exception:
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user