Skip to content

Commit

Permalink
fix: unexpected keyword argument 'as_dict' (#27799)
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib authored Oct 5, 2021
1 parent d1480be commit 10c34da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/projects/doctype/project/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def after_insert(self):
frappe.db.set_value("Sales Order", self.sales_order, "project", self.name)

def on_trash(self):
for so in frappe.get_all("Sales Order", {"project": self.name}, ["name"], as_dict=1):
frappe.db.set_value("Sales Order", so.name, "project", "")
for so in frappe.get_all("Sales Order", {"project": self.name}, ["name"]):
frappe.db.set_value("Sales Order", so.get('name'), "project", "")

def update_percent_complete(self):
if self.percent_complete_method == "Manual":
Expand Down

0 comments on commit 10c34da

Please sign in to comment.