[fixes][rename-field-name] drop_ship to is_drop_ship
This commit is contained in:
parent
bd65cb8817
commit
1a9646739a
@ -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",
|
||||
|
@ -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:
|
||||
|
@ -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")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user