mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +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:
@@ -120,7 +120,6 @@ class MaterialRequest(BuyingController):
|
||||
self.title = _("{0} Request for {1}").format(self.material_request_type, items)[:100]
|
||||
|
||||
def on_submit(self):
|
||||
# frappe.db.set(self, 'status', 'Submitted')
|
||||
self.update_requested_qty()
|
||||
self.update_requested_qty_in_production_plan()
|
||||
if self.material_request_type == "Purchase":
|
||||
|
||||
@@ -216,7 +216,7 @@ class TestMaterialRequest(FrappeTestCase):
|
||||
po.load_from_db()
|
||||
mr.update_status("Stopped")
|
||||
self.assertRaises(frappe.InvalidStatusError, po.submit)
|
||||
frappe.db.set(po, "docstatus", 1)
|
||||
po.db_set("docstatus", 1)
|
||||
self.assertRaises(frappe.InvalidStatusError, po.cancel)
|
||||
|
||||
# resubmit and check for per complete
|
||||
|
||||
Reference in New Issue
Block a user