fix: Rename methods

This commit is contained in:
Suraj Shetty 2019-08-01 12:54:33 +05:30
parent bb7a2dbb6a
commit e06f486aee
2 changed files with 4 additions and 4 deletions

View File

@ -110,7 +110,7 @@ erpnext.selling.SalesOrderController = erpnext.selling.SellingController.extend(
let allow_delivery = false;
if (doc.docstatus==1) {
this.frm.add_custom_button(__('Pick List'), () => this.make_pick_ticket(), __('Create'));
this.frm.add_custom_button(__('Pick List'), () => this.make_pick_list(), __('Create'));
if(this.frm.has_perm("submit")) {
if(doc.status === 'On Hold') {
@ -235,9 +235,9 @@ erpnext.selling.SalesOrderController = erpnext.selling.SellingController.extend(
this.order_type(doc);
},
make_pick_ticket() {
make_pick_list() {
frappe.model.open_mapped_doc({
method: "erpnext.selling.doctype.sales_order.sales_order.make_pick_ticket",
method: "erpnext.selling.doctype.sales_order.sales_order.make_pick_list",
frm: this.frm
})
},

View File

@ -998,7 +998,7 @@ def make_inter_company_purchase_order(source_name, target_doc=None):
return make_inter_company_transaction("Sales Order", source_name, target_doc)
@frappe.whitelist()
def make_pick_ticket(source_name, target_doc=None):
def make_pick_list(source_name, target_doc=None):
doc = get_mapped_doc("Sales Order", source_name, {
"Sales Order": {
"doctype": "Pick List",