mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-01 07:37:04 +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:
@@ -35,7 +35,7 @@ class WarrantyClaim(TransactionBase):
|
||||
lst1 = ",".join(x[0] for x in lst)
|
||||
frappe.throw(_("Cancel Material Visit {0} before cancelling this Warranty Claim").format(lst1))
|
||||
else:
|
||||
frappe.db.set(self, "status", "Cancelled")
|
||||
self.db_set("status", "Cancelled")
|
||||
|
||||
def on_update(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user