[fixes][rename-field-name] drop_ship to is_drop_ship

This commit is contained in:
Saurabh 2015-10-19 16:45:46 +05:30
parent bd65cb8817
commit 1a9646739a
3 changed files with 5 additions and 5 deletions

View File

@ -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",

View File

@ -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:

View File

@ -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")