From 1a9646739a97595ee13f64364f0f44e24aeb687c Mon Sep 17 00:00:00 2001 From: Saurabh Date: Mon, 19 Oct 2015 16:45:46 +0530 Subject: [PATCH] [fixes][rename-field-name] drop_ship to is_drop_ship --- erpnext/buying/doctype/purchase_order/purchase_order.py | 4 ++-- erpnext/controllers/status_updater.py | 4 ++-- erpnext/selling/doctype/sales_order/sales_order.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.py b/erpnext/buying/doctype/purchase_order/purchase_order.py index 234c6436423..8f5c63d1382 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.py +++ b/erpnext/buying/doctype/purchase_order/purchase_order.py @@ -162,7 +162,7 @@ class PurchaseOrder(BuyingController): clear_doctype_notifications(self) def on_submit(self): - if self.drop_ship == 1: + if self.is_drop_ship == 1: self.status_updater[0].update({ "target_parent_dt": "Sales Order", "target_parent_field": "per_ordered", @@ -184,7 +184,7 @@ class PurchaseOrder(BuyingController): purchase_controller.update_last_purchase_rate(self, is_submit = 1) def on_cancel(self): - if self.drop_ship == 1: + if self.is_drop_ship == 1: self.status_updater[0].update({ "target_parent_dt": "Sales Order", "target_parent_field": "per_ordered", diff --git a/erpnext/controllers/status_updater.py b/erpnext/controllers/status_updater.py index 69e2d3e7b21..0861f37f5bf 100644 --- a/erpnext/controllers/status_updater.py +++ b/erpnext/controllers/status_updater.py @@ -215,8 +215,8 @@ class StatusUpdater(Document): args["drop_ship_cond"] = '' - if getattr(self, "drop_ship", None): - if self.drop_ship == 1: + if getattr(self, "is_drop_ship", None): + if self.is_drop_ship == 1: args["drop_ship_cond"] = " and is_drop_ship=1 " else: diff --git a/erpnext/selling/doctype/sales_order/sales_order.py b/erpnext/selling/doctype/sales_order/sales_order.py index 911f4b7f750..0e7ca963358 100644 --- a/erpnext/selling/doctype/sales_order/sales_order.py +++ b/erpnext/selling/doctype/sales_order/sales_order.py @@ -500,7 +500,7 @@ def make_drop_shipment(source_name, for_supplier, target_doc=None): target.contact_mobile = "" target.contact_email = "" target.contact_person = "" - target.drop_ship = 1 + target.is_drop_ship = 1 target.run_method("set_missing_values") target.run_method("calculate_taxes_and_totals")