From d461d462aabda0658a1e1fa8508a10c34a287fcb Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 10 Sep 2015 10:30:41 +0530 Subject: [PATCH] [minor] rename notified_modifed > notified_update. Merge with #1296 --- erpnext/buying/doctype/purchase_order/purchase_order.py | 2 +- erpnext/controllers/status_updater.py | 2 +- .../manufacturing/doctype/production_order/production_order.py | 2 +- erpnext/selling/doctype/sales_order/sales_order.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.py b/erpnext/buying/doctype/purchase_order/purchase_order.py index 0764440408..e8c79d8e7a 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.py +++ b/erpnext/buying/doctype/purchase_order/purchase_order.py @@ -166,7 +166,7 @@ class PurchaseOrder(BuyingController): self.update_ordered_qty() msgprint(_("Status of {0} {1} is now {2}").format(self.doctype, self.name, status)) - self.notify_modified() + self.notify_update() clear_doctype_notifications(self) def on_submit(self): diff --git a/erpnext/controllers/status_updater.py b/erpnext/controllers/status_updater.py index 9c67e9a1b8..c43493cd55 100644 --- a/erpnext/controllers/status_updater.py +++ b/erpnext/controllers/status_updater.py @@ -222,7 +222,7 @@ class StatusUpdater(Document): where name='%(name)s'""" % args) if args.get("set_modified"): - frappe.get_doc(args["target_parent_dt"], name).notify_modified() + frappe.get_doc(args["target_parent_dt"], name).notify_update() def update_billing_status_for_zero_amount_refdoc(self, ref_dt): ref_fieldname = ref_dt.lower().replace(" ", "_") diff --git a/erpnext/manufacturing/doctype/production_order/production_order.py b/erpnext/manufacturing/doctype/production_order/production_order.py index 3e380a54eb..e5e0a964bc 100644 --- a/erpnext/manufacturing/doctype/production_order/production_order.py +++ b/erpnext/manufacturing/doctype/production_order/production_order.py @@ -109,7 +109,7 @@ class ProductionOrder(Document): self.update_status(status) self.update_planned_qty() frappe.msgprint(_("Production Order status is {0}").format(status)) - self.notify_modified() + self.notify_update() def update_status(self, status=None): diff --git a/erpnext/selling/doctype/sales_order/sales_order.py b/erpnext/selling/doctype/sales_order/sales_order.py index 8fcff10477..3e689038a0 100644 --- a/erpnext/selling/doctype/sales_order/sales_order.py +++ b/erpnext/selling/doctype/sales_order/sales_order.py @@ -226,7 +226,7 @@ class SalesOrder(SellingController): frappe.db.set(self, 'status', 'Stopped') self.update_reserved_qty() frappe.msgprint(_("{0} {1} status is Stopped").format(self.doctype, self.name)) - self.notify_modified() + self.notify_update() clear_doctype_notifications(self) def unstop_sales_order(self):