diff --git a/erpnext/accounts/doctype/account/account_tree.js b/erpnext/accounts/doctype/account/account_tree.js index a9cbdd5dee..1047f51c98 100644 --- a/erpnext/accounts/doctype/account/account_tree.js +++ b/erpnext/accounts/doctype/account/account_tree.js @@ -61,13 +61,13 @@ frappe.treeview_settings["Account"] = { frappe.set_route('List', 'Period Closing Voucher', {company: get_company()}); }, __('View')); - // make + treeview.page.add_inner_button(__("Journal Entry"), function() { frappe.new_doc('Journal Entry', {company: get_company()}); - }, __('Make')); + }, __('Create')); treeview.page.add_inner_button(__("New Company"), function() { frappe.new_doc('Company'); - }, __('Make')); + }, __('Create')); // financial statements for (let report of ['Trial Balance', 'General Ledger', 'Balance Sheet', diff --git a/erpnext/accounts/doctype/exchange_rate_revaluation/exchange_rate_revaluation.js b/erpnext/accounts/doctype/exchange_rate_revaluation/exchange_rate_revaluation.js index c18057eb40..dad75b4ba1 100644 --- a/erpnext/accounts/doctype/exchange_rate_revaluation/exchange_rate_revaluation.js +++ b/erpnext/accounts/doctype/exchange_rate_revaluation/exchange_rate_revaluation.js @@ -21,7 +21,7 @@ frappe.ui.form.on('Exchange Rate Revaluation', { refresh: function(frm) { if(frm.doc.docstatus==1) { - frm.add_custom_button(__('Make Journal Entry'), function() { + frm.add_custom_button(__('Create Journal Entry'), function() { return frm.events.make_jv(frm); }); } @@ -52,7 +52,7 @@ frappe.ui.form.on('Exchange Rate Revaluation', { d.gain_loss = flt(d.new_balance_in_base_currency, precision("new_balance_in_base_currency", d)) - flt(d.balance_in_base_currency, precision("balance_in_base_currency", d)); total_gain_loss += flt(d.gain_loss, precision("gain_loss", d)); }); - + frm.set_value("total_gain_loss", flt(total_gain_loss, precision("total_gain_loss"))); frm.refresh_fields(); }, diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.js b/erpnext/accounts/doctype/journal_entry/journal_entry.js index 8d50811a6c..490b9ebad2 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.js +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.js @@ -40,7 +40,7 @@ frappe.ui.form.on("Journal Entry", { erpnext.journal_entry.toggle_fields_based_on_currency(frm); if ((frm.doc.voucher_type == "Inter Company Journal Entry") && (frm.doc.docstatus == 1) && (!frm.doc.inter_company_journal_entry_reference)) { - frm.add_custom_button(__("Make Inter Company Journal Entry"), + frm.add_custom_button(__("Create Inter Company Journal Entry"), function() { frm.trigger("make_inter_company_journal_entry"); } @@ -68,7 +68,7 @@ frappe.ui.form.on("Journal Entry", { } ], }); - d.set_primary_action(__("Make"), function() { + d.set_primary_action(__('Create'), function() { d.hide(); var args = d.get_values(); frappe.call({ @@ -92,10 +92,10 @@ frappe.ui.form.on("Journal Entry", { multi_currency: function(frm) { erpnext.journal_entry.toggle_fields_based_on_currency(frm); }, - + posting_date: function(frm) { if(!frm.doc.multi_currency || !frm.doc.posting_date) return; - + $.each(frm.doc.accounts || [], function(i, row) { erpnext.journal_entry.set_exchange_rate(frm, row.doctype, row.name); }) @@ -367,7 +367,7 @@ cur_frm.cscript.voucher_type = function(doc, cdt, cdn) { }); refresh_field("accounts"); } - + if((!(doc.accounts || []).length) || ((doc.accounts || []).length==1 && !doc.accounts[0].account)) { if(in_list(["Bank Entry", "Cash Entry"], doc.voucher_type)) { return frappe.call({ @@ -427,7 +427,7 @@ frappe.ui.form.on("Journal Entry Account", { account: function(frm, dt, dn) { erpnext.journal_entry.set_account_balance(frm, dt, dn); }, - + debit_in_account_currency: function(frm, cdt, cdn) { erpnext.journal_entry.set_exchange_rate(frm, cdt, cdn); }, diff --git a/erpnext/accounts/doctype/opening_invoice_creation_tool/opening_invoice_creation_tool.js b/erpnext/accounts/doctype/opening_invoice_creation_tool/opening_invoice_creation_tool.js index 7c7d3a4600..c742e64f1e 100644 --- a/erpnext/accounts/doctype/opening_invoice_creation_tool/opening_invoice_creation_tool.js +++ b/erpnext/accounts/doctype/opening_invoice_creation_tool/opening_invoice_creation_tool.js @@ -15,7 +15,7 @@ frappe.ui.form.on('Opening Invoice Creation Tool', { refresh: function(frm) { frm.disable_save(); frm.trigger("make_dashboard"); - frm.page.set_primary_action(__("Make Invoices"), () => { + frm.page.set_primary_action(__('Create Invoices'), () => { let btn_primary = frm.page.btn_primary.get(0); return frm.call({ doc: frm.doc, diff --git a/erpnext/accounts/doctype/payment_order/payment_order.js b/erpnext/accounts/doctype/payment_order/payment_order.js index a4ec05c002..10e199580b 100644 --- a/erpnext/accounts/doctype/payment_order/payment_order.js +++ b/erpnext/accounts/doctype/payment_order/payment_order.js @@ -11,10 +11,10 @@ frappe.ui.form.on('Payment Order', { // payment Entry if (frm.doc.docstatus==1) { - frm.add_custom_button(__('Make Payment Entries'), - function() { - frm.trigger("make_payment_records") - }); + frm.add_custom_button(__('Create Payment Entries'), + function() { + frm.trigger("make_payment_records"); + }); } }, @@ -79,5 +79,5 @@ frappe.ui.form.on('Payment Order', { dialog.show(); }, - + }); diff --git a/erpnext/accounts/doctype/payment_request/payment_request.js b/erpnext/accounts/doctype/payment_request/payment_request.js index ef930d0497..bd021b14b2 100644 --- a/erpnext/accounts/doctype/payment_request/payment_request.js +++ b/erpnext/accounts/doctype/payment_request/payment_request.js @@ -34,7 +34,7 @@ frappe.ui.form.on("Payment Request", "refresh", function(frm) { } if(!frm.doc.payment_gateway_account && frm.doc.status == "Initiated") { - frm.add_custom_button(__('Make Payment Entry'), function(){ + frm.add_custom_button(__('Create Payment Entry'), function(){ frappe.call({ method: "erpnext.accounts.doctype.payment_request.payment_request.make_payment_entry", args: {"docname": frm.doc.name}, diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js index 263b5bb75e..3ab863ecf3 100644 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js @@ -46,40 +46,40 @@ erpnext.accounts.PurchaseInvoice = erpnext.buying.BuyingController.extend({ this.frm.add_custom_button( __('Unblock Invoice'), function() {me.unblock_invoice()}, - __('Make') + __('Create') ); } else if (!doc.on_hold) { this.frm.add_custom_button( __('Block Invoice'), function() {me.block_invoice()}, - __('Make') + __('Create') ); } } if(doc.docstatus == 1 && doc.outstanding_amount != 0 && !(doc.is_return && doc.return_against)) { - this.frm.add_custom_button(__('Payment'), this.make_payment_entry, __("Make")); - cur_frm.page.set_inner_btn_group_as_primary(__("Make")); + this.frm.add_custom_button(__('Payment'), this.make_payment_entry, __('Create')); + cur_frm.page.set_inner_btn_group_as_primary(__('Create')); } if(!doc.is_return && doc.docstatus==1) { if(doc.outstanding_amount >= 0 || Math.abs(flt(doc.outstanding_amount)) < flt(doc.grand_total)) { cur_frm.add_custom_button(__('Return / Debit Note'), - this.make_debit_note, __("Make")); + this.make_debit_note, __('Create')); } if(!doc.auto_repeat) { cur_frm.add_custom_button(__('Subscription'), function() { erpnext.utils.make_subscription(doc.doctype, doc.name) - }, __("Make")) + }, __('Create')) } } if (doc.outstanding_amount > 0 && !cint(doc.is_return)) { cur_frm.add_custom_button(__('Payment Request'), function() { me.make_payment_request() - }, __("Make")); + }, __('Create')); } if(doc.docstatus===0) { @@ -128,7 +128,7 @@ erpnext.accounts.PurchaseInvoice = erpnext.buying.BuyingController.extend({ if (internal == 1 && disabled == 0) { me.frm.add_custom_button("Inter Company Invoice", function() { me.make_inter_company_invoice(me.frm); - }, __("Make")); + }, __('Create')); } }); } diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js index 91a44b377d..5b007526dc 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js @@ -51,8 +51,8 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte if (doc.docstatus == 1 && doc.outstanding_amount!=0 && !(cint(doc.is_return) && doc.return_against)) { cur_frm.add_custom_button(__('Payment'), - this.make_payment_entry, __("Make")); - cur_frm.page.set_inner_btn_group_as_primary(__("Make")); + this.make_payment_entry, __('Create')); + cur_frm.page.set_inner_btn_group_as_primary(__('Create')); } if(doc.docstatus==1 && !doc.is_return) { @@ -65,8 +65,8 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte if(doc.outstanding_amount >= 0 || Math.abs(flt(doc.outstanding_amount)) < flt(doc.grand_total)) { cur_frm.add_custom_button(__('Return / Credit Note'), - this.make_sales_return, __("Make")); - cur_frm.page.set_inner_btn_group_as_primary(__("Make")); + this.make_sales_return, __('Create')); + cur_frm.page.set_inner_btn_group_as_primary(__('Create')); } if(cint(doc.update_stock)!=1) { @@ -79,20 +79,20 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte if(!from_delivery_note && !is_delivered_by_supplier) { cur_frm.add_custom_button(__('Delivery'), - cur_frm.cscript['Make Delivery Note'], __("Make")); + cur_frm.cscript['Make Delivery Note'], __('Create')); } } if (doc.outstanding_amount>0 && !cint(doc.is_return)) { cur_frm.add_custom_button(__('Payment Request'), function() { me.make_payment_request(); - }, __("Make")); + }, __('Create')); } if(!doc.auto_repeat) { cur_frm.add_custom_button(__('Subscription'), function() { erpnext.utils.make_subscription(doc.doctype, doc.name) - }, __("Make")) + }, __('Create')) } } @@ -112,7 +112,7 @@ erpnext.accounts.SalesInvoiceController = erpnext.selling.SellingController.exte if (internal == 1 && disabled == 0) { me.frm.add_custom_button("Inter Company Invoice", function() { me.make_inter_company_invoice(); - }, __("Make")); + }, __('Create')); } }); } diff --git a/erpnext/accounts/doctype/share_transfer/share_transfer.js b/erpnext/accounts/doctype/share_transfer/share_transfer.js index af23b2656d..446ae689fc 100644 --- a/erpnext/accounts/doctype/share_transfer/share_transfer.js +++ b/erpnext/accounts/doctype/share_transfer/share_transfer.js @@ -17,7 +17,7 @@ frappe.ui.form.on('Share Transfer', { }; }); if (frm.doc.docstatus == 1) { - frm.add_custom_button(__('Make Journal Entry'), function () { + frm.add_custom_button(__('Create Journal Entry'), function () { erpnext.share_transfer.make_jv(frm); }); } diff --git a/erpnext/assets/doctype/asset/asset.js b/erpnext/assets/doctype/asset/asset.js index ed02d87e44..f68cfc3ce5 100644 --- a/erpnext/assets/doctype/asset/asset.js +++ b/erpnext/assets/doctype/asset/asset.js @@ -31,7 +31,7 @@ frappe.ui.form.on('Asset', { } }; }); - + frm.set_query("cost_center", function() { return { "filters": { @@ -81,26 +81,26 @@ frappe.ui.form.on('Asset', { if (frm.doc.status=='Submitted' && !frm.doc.is_existing_asset && !frm.doc.purchase_invoice) { frm.add_custom_button(__("Purchase Invoice"), function() { frm.trigger("make_purchase_invoice"); - }, __("Make")); + }, __('Create')); } if (frm.doc.maintenance_required && !frm.doc.maintenance_schedule) { frm.add_custom_button(__("Asset Maintenance"), function() { frm.trigger("create_asset_maintenance"); - }, __("Make")); + }, __('Create')); } if (frm.doc.status != 'Fully Depreciated') { frm.add_custom_button(__("Asset Value Adjustment"), function() { frm.trigger("create_asset_adjustment"); - }, __("Make")); + }, __('Create')); } if (!frm.doc.calculate_depreciation) { frm.add_custom_button(__("Depreciation Entry"), function() { frm.trigger("make_journal_entry"); - }, __("Make")); + }, __('Create')); } - frm.page.set_inner_btn_group_as_primary(__("Make")); + frm.page.set_inner_btn_group_as_primary(__('Create')); frm.trigger("setup_chart"); } diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.js b/erpnext/buying/doctype/purchase_order/purchase_order.js index 019d0de470..da7db42a29 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.js +++ b/erpnext/buying/doctype/purchase_order/purchase_order.js @@ -119,7 +119,7 @@ erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend( if(doc.docstatus == 1 && doc.status != "Closed") { if(flt(doc.per_received, 2) < 100 && allow_receipt) { - cur_frm.add_custom_button(__('Receipt'), this.make_purchase_receipt, __("Make")); + cur_frm.add_custom_button(__('Receipt'), this.make_purchase_receipt, __('Create')); if(doc.is_subcontracted==="Yes") { cur_frm.add_custom_button(__('Material to Supplier'), @@ -129,24 +129,24 @@ erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend( if(flt(doc.per_billed, 2) < 100) cur_frm.add_custom_button(__('Invoice'), - this.make_purchase_invoice, __("Make")); + this.make_purchase_invoice, __('Create')); if(flt(doc.per_billed)==0 && doc.status != "Delivered") { - cur_frm.add_custom_button(__('Payment'), cur_frm.cscript.make_payment_entry, __("Make")); + cur_frm.add_custom_button(__('Payment'), cur_frm.cscript.make_payment_entry, __('Create')); } if(!doc.auto_repeat) { cur_frm.add_custom_button(__('Subscription'), function() { erpnext.utils.make_subscription(doc.doctype, doc.name) - }, __("Make")) + }, __('Create')) } if(flt(doc.per_billed)==0) { this.frm.add_custom_button(__('Payment Request'), - function() { me.make_payment_request() }, __("Make")); + function() { me.make_payment_request() }, __('Create')); } - cur_frm.page.set_inner_btn_group_as_primary(__("Make")); + cur_frm.page.set_inner_btn_group_as_primary(__('Create')); } }, diff --git a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js index 873d210749..0052a53b47 100644 --- a/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js +++ b/erpnext/buying/doctype/request_for_quotation/request_for_quotation.js @@ -31,7 +31,7 @@ frappe.ui.form.on("Request for Quotation",{ refresh: function(frm, cdt, cdn) { if (frm.doc.docstatus === 1) { - frm.add_custom_button(__("Make"), + frm.add_custom_button(__('Create'), function(){ frm.trigger("make_suppplier_quotation") }, __("Supplier Quotation")); frm.add_custom_button(__("View"), @@ -147,7 +147,7 @@ frappe.ui.form.on("Request for Quotation",{ "fieldname": "supplier", "options": doc.suppliers.map(d => d.supplier), "reqd": 1 }, - { "fieldtype": "Button", "label": __("Make Supplier Quotation"), + { "fieldtype": "Button", "label": __('Create Supplier Quotation"), "fieldname": "make_supplier_quotation", "cssClass": "btn-primary" }, ] }); diff --git a/erpnext/buying/doctype/supplier/supplier.js b/erpnext/buying/doctype/supplier/supplier.js index be58df25ca..db6b8ca825 100644 --- a/erpnext/buying/doctype/supplier/supplier.js +++ b/erpnext/buying/doctype/supplier/supplier.js @@ -47,11 +47,11 @@ frappe.ui.form.on("Supplier", { frm.add_custom_button(__('Bank Account'), function () { erpnext.utils.make_bank_account(frm.doc.doctype, frm.doc.name); - }, __("Make")); + }, __('Create')); frm.add_custom_button(__('Pricing Rule'), function () { erpnext.utils.make_pricing_rule(frm.doc.doctype, frm.doc.name); - }, __("Make")); + }, __('Create')); // indicators erpnext.utils.set_party_dashboard_indicators(frm); diff --git a/erpnext/buying/doctype/supplier_quotation/supplier_quotation.js b/erpnext/buying/doctype/supplier_quotation/supplier_quotation.js index 1b4ce6a5ea..39042b8b06 100644 --- a/erpnext/buying/doctype/supplier_quotation/supplier_quotation.js +++ b/erpnext/buying/doctype/supplier_quotation/supplier_quotation.js @@ -18,15 +18,15 @@ erpnext.buying.SupplierQuotationController = erpnext.buying.BuyingController.ext this._super(); if (this.frm.doc.docstatus === 1) { cur_frm.add_custom_button(__("Purchase Order"), this.make_purchase_order, - __("Make")); - cur_frm.page.set_inner_btn_group_as_primary(__("Make")); + __('Create')); + cur_frm.page.set_inner_btn_group_as_primary(__('Create')); cur_frm.add_custom_button(__("Quotation"), this.make_quotation, - __("Make")); - - if(!this.frm.doc.auto_repeat) { + __('Create')); + + if(!this.frm.doc.auto_repeat) { cur_frm.add_custom_button(__('Subscription'), function() { erpnext.utils.make_subscription(me.frm.doc.doctype, me.frm.doc.name) - }, __("Make")) + }, __('Create')) } } else if (this.frm.doc.docstatus===0) { diff --git a/erpnext/config/accounts.py b/erpnext/config/accounts.py index 15996c3a44..855b877873 100644 --- a/erpnext/config/accounts.py +++ b/erpnext/config/accounts.py @@ -242,7 +242,7 @@ def get_data(): { "type": "doctype", "name": "Opening Invoice Creation Tool", - "description": _("Make Opening Sales and Purchase Invoices") + "description": _("Create Opening Sales and Purchase Invoices") }, ] }, diff --git a/erpnext/crm/doctype/lead/lead.js b/erpnext/crm/doctype/lead/lead.js index 1af45504d4..208b1f55fa 100644 --- a/erpnext/crm/doctype/lead/lead.js +++ b/erpnext/crm/doctype/lead/lead.js @@ -30,9 +30,9 @@ erpnext.LeadController = frappe.ui.form.Controller.extend({ frappe.dynamic_link = {doc: doc, fieldname: 'name', doctype: 'Lead'} if(!doc.__islocal && doc.__onload && !doc.__onload.is_customer) { - this.frm.add_custom_button(__("Customer"), this.create_customer, __("Make")); - this.frm.add_custom_button(__("Opportunity"), this.create_opportunity, __("Make")); - this.frm.add_custom_button(__("Quotation"), this.make_quotation, __("Make")); + this.frm.add_custom_button(__("Customer"), this.create_customer, __('Create')); + this.frm.add_custom_button(__("Opportunity"), this.create_opportunity, __('Create')); + this.frm.add_custom_button(__("Quotation"), this.make_quotation, __('Create')); } if(!this.frm.doc.__islocal) { diff --git a/erpnext/crm/doctype/opportunity/opportunity.js b/erpnext/crm/doctype/opportunity/opportunity.js index abe560ba5e..b80e8a12a3 100644 --- a/erpnext/crm/doctype/opportunity/opportunity.js +++ b/erpnext/crm/doctype/opportunity/opportunity.js @@ -47,11 +47,11 @@ frappe.ui.form.on("Opportunity", { frm.add_custom_button(__('Supplier Quotation'), function() { frm.trigger("make_supplier_quotation") - }, __("Make")); + }, __('Create')); } frm.add_custom_button(__('Quotation'), - cur_frm.cscript.create_quotation, __("Make")); + cur_frm.cscript.create_quotation, __('Create')); if(doc.status!=="Quotation") { frm.add_custom_button(__('Lost'), diff --git a/erpnext/education/doctype/fee_structure/fee_structure.js b/erpnext/education/doctype/fee_structure/fee_structure.js index 812456c2bd..7606565fad 100644 --- a/erpnext/education/doctype/fee_structure/fee_structure.js +++ b/erpnext/education/doctype/fee_structure/fee_structure.js @@ -31,7 +31,7 @@ frappe.ui.form.on('Fee Structure', { refresh: function(frm) { if(frm.doc.docstatus === 1) { - frm.add_custom_button(__("Make Fee Schedule"), function() { + frm.add_custom_button(__('Create Fee Schedule'), function() { frm.events.make_fee_schedule(frm); }); } diff --git a/erpnext/education/doctype/fees/fees.js b/erpnext/education/doctype/fees/fees.js index 7346a8d55b..e2c6f1d856 100644 --- a/erpnext/education/doctype/fees/fees.js +++ b/erpnext/education/doctype/fees/fees.js @@ -73,14 +73,14 @@ frappe.ui.form.on("Fees", { if(frm.doc.docstatus===1 && frm.doc.outstanding_amount>0) { frm.add_custom_button(__("Payment Request"), function() { frm.events.make_payment_request(frm); - }, __("Make")); - frm.page.set_inner_btn_group_as_primary(__("Make")); + }, __('Create')); + frm.page.set_inner_btn_group_as_primary(__('Create')); } if(frm.doc.docstatus===1 && frm.doc.outstanding_amount!=0) { frm.add_custom_button(__("Payment"), function() { frm.events.make_payment_entry(frm); - }, __("Make")); - frm.page.set_inner_btn_group_as_primary(__("Make")); + }, __('Create')); + frm.page.set_inner_btn_group_as_primary(__('Create')); } }, diff --git a/erpnext/hotels/doctype/hotel_room_reservation/hotel_room_reservation.js b/erpnext/hotels/doctype/hotel_room_reservation/hotel_room_reservation.js index 2c9fd7b73b..e58d763e47 100644 --- a/erpnext/hotels/doctype/hotel_room_reservation/hotel_room_reservation.js +++ b/erpnext/hotels/doctype/hotel_room_reservation/hotel_room_reservation.js @@ -4,7 +4,7 @@ frappe.ui.form.on('Hotel Room Reservation', { refresh: function(frm) { if(frm.doc.docstatus == 1){ - frm.add_custom_button(__("Make Invoice"), ()=> { + frm.add_custom_button(__('Create Invoice'), ()=> { frm.trigger("make_invoice"); }); } diff --git a/erpnext/hr/doctype/employee_advance/employee_advance.js b/erpnext/hr/doctype/employee_advance/employee_advance.js index c73df624e2..af7205b5d9 100644 --- a/erpnext/hr/doctype/employee_advance/employee_advance.js +++ b/erpnext/hr/doctype/employee_advance/employee_advance.js @@ -31,7 +31,7 @@ frappe.ui.form.on('Employee Advance', { && (flt(frm.doc.paid_amount) < flt(frm.doc.advance_amount)) && frappe.model.can_create("Payment Entry")) { frm.add_custom_button(__('Payment'), - function() { frm.events.make_payment_entry(frm); }, __("Make")); + function() { frm.events.make_payment_entry(frm); }, __('Create')); } else if ( frm.doc.docstatus === 1 @@ -43,7 +43,7 @@ frappe.ui.form.on('Employee Advance', { function() { frm.events.make_expense_claim(frm); }, - __("Make") + __('Create') ); } }, diff --git a/erpnext/hr/doctype/employee_loan/employee_loan.js b/erpnext/hr/doctype/employee_loan/employee_loan.js index e089e29911..c948be1b0f 100644 --- a/erpnext/hr/doctype/employee_loan/employee_loan.js +++ b/erpnext/hr/doctype/employee_loan/employee_loan.js @@ -46,7 +46,7 @@ frappe.ui.form.on('Employee Loan', { refresh: function (frm) { if (frm.doc.docstatus == 1 && (frm.doc.status == "Sanctioned" || frm.doc.status == "Partially Disbursed")) { - frm.add_custom_button(__('Make Disbursement Entry'), function () { + frm.add_custom_button(__('Create Disbursement Entry'), function () { frm.trigger("make_jv"); }) } diff --git a/erpnext/hr/doctype/employee_onboarding/employee_onboarding.js b/erpnext/hr/doctype/employee_onboarding/employee_onboarding.js index 08615888d3..ce235756e1 100644 --- a/erpnext/hr/doctype/employee_onboarding/employee_onboarding.js +++ b/erpnext/hr/doctype/employee_onboarding/employee_onboarding.js @@ -29,8 +29,8 @@ frappe.ui.form.on('Employee Onboarding', { method: "erpnext.hr.doctype.employee_onboarding.employee_onboarding.make_employee", frm: frm }); - }, __("Make")); - frm.page.set_inner_btn_group_as_primary(__("Make")); + }, __('Create')); + frm.page.set_inner_btn_group_as_primary(__('Create')); } if (frm.doc.docstatus === 1 && frm.doc.project) { frappe.call({ diff --git a/erpnext/hr/doctype/expense_claim/expense_claim.js b/erpnext/hr/doctype/expense_claim/expense_claim.js index 6bdab61d9d..1aeb8a621a 100644 --- a/erpnext/hr/doctype/expense_claim/expense_claim.js +++ b/erpnext/hr/doctype/expense_claim/expense_claim.js @@ -192,7 +192,7 @@ frappe.ui.form.on("Expense Claim", { && (cint(frm.doc.total_amount_reimbursed) < cint(frm.doc.total_sanctioned_amount)) && frappe.model.can_create("Payment Entry")) { frm.add_custom_button(__('Payment'), - function() { frm.events.make_payment_entry(frm); }, __("Make")); + function() { frm.events.make_payment_entry(frm); }, __('Create')); } }, diff --git a/erpnext/hr/doctype/job_offer/job_offer.js b/erpnext/hr/doctype/job_offer/job_offer.js index 4217a782a8..1ee35afe10 100755 --- a/erpnext/hr/doctype/job_offer/job_offer.js +++ b/erpnext/hr/doctype/job_offer/job_offer.js @@ -15,7 +15,7 @@ frappe.ui.form.on("Job Offer", { refresh: function (frm) { if ((!frm.doc.__islocal) && (frm.doc.status == 'Accepted') && (frm.doc.docstatus === 1) && (!frm.doc.__onload || !frm.doc.__onload.employee)) { - frm.add_custom_button(__('Make Employee'), + frm.add_custom_button(__('Create Employee'), function () { erpnext.job_offer.make_employee(frm); } diff --git a/erpnext/hr/doctype/loan/loan.js b/erpnext/hr/doctype/loan/loan.js index b4013242b5..7140bea270 100644 --- a/erpnext/hr/doctype/loan/loan.js +++ b/erpnext/hr/doctype/loan/loan.js @@ -40,7 +40,7 @@ frappe.ui.form.on('Loan', { refresh: function (frm) { if (frm.doc.docstatus == 1 && frm.doc.status == "Sanctioned") { - frm.add_custom_button(__('Make Disbursement Entry'), function() { + frm.add_custom_button(__('Create Disbursement Entry'), function() { frm.trigger("make_jv"); }) } @@ -54,7 +54,7 @@ frappe.ui.form.on('Loan', { frm.set_value("total_amount_paid", total_amount_paid); ; } if (frm.doc.docstatus == 1 && frm.doc.repayment_start_date && (frm.doc.applicant_type == 'Member' || frm.doc.repay_from_salary == 0)) { - frm.add_custom_button(__('Make Repayment Entry'), function() { + frm.add_custom_button(__('Create Repayment Entry'), function() { frm.trigger("make_repayment_entry"); }) } @@ -146,7 +146,7 @@ frappe.ui.form.on('Loan', { 'payment_date': payment.payment_date, 'principal_amount': payment.principal_amount, 'interest_amount': payment.interest_amount, - 'total_payment': payment.total_payment + 'total_payment': payment.total_payment }); dialog.fields_dict.payments.grid.refresh(); $(dialog.wrapper.find(".grid-buttons")).hide(); @@ -157,7 +157,7 @@ frappe.ui.form.on('Loan', { } dialog.show() - dialog.set_primary_action(__('Make Repayment Entry'), function() { + dialog.set_primary_action(__('Create Repayment Entry'), function() { frm.values = dialog.get_values(); if(frm.values) { _make_repayment_entry(frm, dialog.fields_dict.payments.grid.get_selected_children()); diff --git a/erpnext/hr/doctype/vehicle_log/vehicle_log.js b/erpnext/hr/doctype/vehicle_log/vehicle_log.js index e8c6b7e608..7694cfed7c 100644 --- a/erpnext/hr/doctype/vehicle_log/vehicle_log.js +++ b/erpnext/hr/doctype/vehicle_log/vehicle_log.js @@ -20,8 +20,8 @@ frappe.ui.form.on("Vehicle Log", { if(frm.doc.docstatus == 1) { frm.add_custom_button(__('Expense Claim'), function() { frm.events.expense_claim(frm) - }, __("Make")); - frm.page.set_inner_btn_group_as_primary(__("Make")); + }, __('Create')); + frm.page.set_inner_btn_group_as_primary(__('Create')); } }, diff --git a/erpnext/hr/report/vehicle_expenses/vehicle_expenses.py b/erpnext/hr/report/vehicle_expenses/vehicle_expenses.py index 62b70bfb33..e2989e29c0 100644 --- a/erpnext/hr/report/vehicle_expenses/vehicle_expenses.py +++ b/erpnext/hr/report/vehicle_expenses/vehicle_expenses.py @@ -19,7 +19,7 @@ def execute(filters=None): return columns, data, None, chart def get_columns(): - columns = [_("License") + ":Link/Vehicle:100", _("Make") + ":data:50", + columns = [_("License") + ":Link/Vehicle:100", _('Create') + ":data:50", _("Model") + ":data:50", _("Location") + ":data:100", _("Log") + ":Link/Vehicle Log:100", _("Odometer") + ":Int:80", _("Date") + ":Date:100", _("Fuel Qty") + ":Float:80", diff --git a/erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.js b/erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.js index de7cd8c589..79f9e63250 100644 --- a/erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.js +++ b/erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.js @@ -44,13 +44,13 @@ erpnext.maintenance.MaintenanceSchedule = frappe.ui.form.Controller.extend({ }); }, __("Get items from")); } else if (this.frm.doc.docstatus === 1) { - this.frm.add_custom_button(__("Make Maintenance Visit"), function() { + this.frm.add_custom_button(__('Create Maintenance Visit'), function() { frappe.model.open_mapped_doc({ method: "erpnext.maintenance.doctype.maintenance_schedule.maintenance_schedule.make_maintenance_visit", source_name: me.frm.doc.name, frm: me.frm - }) - }, __("Make")); + }); + }, __('Create')); } }, diff --git a/erpnext/manufacturing/doctype/production_plan/production_plan.js b/erpnext/manufacturing/doctype/production_plan/production_plan.js index dbbf3d33f7..ad3c0f12d7 100644 --- a/erpnext/manufacturing/doctype/production_plan/production_plan.js +++ b/erpnext/manufacturing/doctype/production_plan/production_plan.js @@ -39,14 +39,14 @@ frappe.ui.form.on('Production Plan', { && frm.doc.status != 'Completed') { frm.add_custom_button(__("Work Order"), ()=> { frm.trigger("make_work_order"); - }, __("Make")); + }, __('Create')); } if (frm.doc.docstatus === 1 && frm.doc.mr_items && !in_list(['Material Requested', 'Completed'], frm.doc.status)) { frm.add_custom_button(__("Material Request"), ()=> { frm.trigger("make_material_request"); - }, __("Make")); + }, __('Create')); } frm.trigger("material_requirement"); diff --git a/erpnext/manufacturing/doctype/work_order/work_order.js b/erpnext/manufacturing/doctype/work_order/work_order.js index e85b0a5411..a0e2ec64bf 100644 --- a/erpnext/manufacturing/doctype/work_order/work_order.js +++ b/erpnext/manufacturing/doctype/work_order/work_order.js @@ -114,8 +114,8 @@ frappe.ui.form.on("Work Order", { if (frm.doc.docstatus === 1 && frm.doc.operations && frm.doc.qty != frm.doc.material_transferred_for_manufacturing) { - frm.add_custom_button(__('Make Job Card'), () => { - frm.trigger("make_job_card") + frm.add_custom_button(__('Create Job Card'), () => { + frm.trigger("make_job_card"); }).addClass('btn-primary'); } @@ -139,7 +139,7 @@ frappe.ui.form.on("Work Order", { if (frm.doc.status == "Completed" && frm.doc.__onload.backflush_raw_materials_based_on == "Material Transferred for Manufacture") { - frm.add_custom_button(__("Make BOM"), () => { + frm.add_custom_button(__('Create BOM"), () => { frm.trigger("make_bom"); }); } @@ -546,7 +546,7 @@ erpnext.work_order = { frappe.set_route("Form", doclist[0].doctype, doclist[0].name); } }); - }, __("Select Quantity"), __("Make")); + }, __("Select Quantity"), __('Create')); }, make_consumption_se: function(frm, backflush_raw_materials_based_on) { diff --git a/erpnext/projects/doctype/timesheet/timesheet.js b/erpnext/projects/doctype/timesheet/timesheet.js index e890befd1a..1f060691d4 100644 --- a/erpnext/projects/doctype/timesheet/timesheet.js +++ b/erpnext/projects/doctype/timesheet/timesheet.js @@ -41,12 +41,12 @@ frappe.ui.form.on("Timesheet", { refresh: function(frm) { if(frm.doc.docstatus==1) { if(frm.doc.per_billed < 100 && frm.doc.total_billable_hours && frm.doc.total_billable_hours > frm.doc.total_billed_hours){ - frm.add_custom_button(__("Make Sales Invoice"), function() { frm.trigger("make_invoice") }, + frm.add_custom_button(__('Create Sales Invoice'), function() { frm.trigger("make_invoice") }, "fa fa-file-alt"); } if(!frm.doc.salary_slip && frm.doc.employee){ - frm.add_custom_button(__("Make Salary Slip"), function() { frm.trigger("make_salary_slip") }, + frm.add_custom_button(__('Create Salary Slip'), function() { frm.trigger("make_salary_slip") }, "fa fa-file-alt"); } } @@ -106,7 +106,7 @@ frappe.ui.form.on("Timesheet", { ] }); - dialog.set_primary_action(__("Make Sales Invoice"), () => { + dialog.set_primary_action(__('Create Sales Invoice"), () => { var args = dialog.get_values(); if(!args) return; dialog.hide(); diff --git a/erpnext/public/js/communication.js b/erpnext/public/js/communication.js index e85107e77a..49701b88b6 100644 --- a/erpnext/public/js/communication.js +++ b/erpnext/public/js/communication.js @@ -21,13 +21,13 @@ frappe.ui.form.on("Communication", { frappe.confirm(__(confirm_msg, [__("Lead")]), () => { frm.trigger('make_lead_from_communication'); }) - }, __("Make")); + }, __('Create')); frm.add_custom_button(__("Opportunity"), () => { frappe.confirm(__(confirm_msg, [__("Opportunity")]), () => { frm.trigger('make_opportunity_from_communication'); }) - }, __("Make")); + }, __('Create')); } }, diff --git a/erpnext/selling/doctype/customer/customer.js b/erpnext/selling/doctype/customer/customer.js index d687c85e3a..8fde81b912 100644 --- a/erpnext/selling/doctype/customer/customer.js +++ b/erpnext/selling/doctype/customer/customer.js @@ -108,7 +108,7 @@ frappe.ui.form.on("Customer", { frm.add_custom_button(__('Pricing Rule'), function () { erpnext.utils.make_pricing_rule(frm.doc.doctype, frm.doc.name); - }, __("Make")); + }, __('Create')); // indicator erpnext.utils.set_party_dashboard_indicators(frm); diff --git a/erpnext/selling/doctype/quotation/quotation.js b/erpnext/selling/doctype/quotation/quotation.js index 6f7bfb3feb..a8e48477d6 100644 --- a/erpnext/selling/doctype/quotation/quotation.js +++ b/erpnext/selling/doctype/quotation/quotation.js @@ -52,7 +52,7 @@ erpnext.selling.QuotationController = erpnext.selling.SellingController.extend({ if(doc.docstatus == 1 && doc.status!=='Lost') { if(!doc.valid_till || frappe.datetime.get_diff(doc.valid_till, frappe.datetime.get_today()) > 0) { cur_frm.add_custom_button(__('Sales Order'), - cur_frm.cscript['Make Sales Order'], __("Make")); + cur_frm.cscript['Make Sales Order'], __('Create')); } if(doc.status!=="Ordered") { @@ -63,10 +63,10 @@ erpnext.selling.QuotationController = erpnext.selling.SellingController.extend({ if(!doc.auto_repeat) { cur_frm.add_custom_button(__('Subscription'), function() { erpnext.utils.make_subscription(doc.doctype, doc.name) - }, __("Make")) + }, __('Create')) } - cur_frm.page.set_inner_btn_group_as_primary(__("Make")); + cur_frm.page.set_inner_btn_group_as_primary(__('Create')); } if (this.frm.doc.docstatus===0) { diff --git a/erpnext/selling/doctype/sales_order/sales_order.js b/erpnext/selling/doctype/sales_order/sales_order.js index 54d7654c2d..0592740119 100644 --- a/erpnext/selling/doctype/sales_order/sales_order.js +++ b/erpnext/selling/doctype/sales_order/sales_order.js @@ -132,61 +132,61 @@ erpnext.selling.SalesOrderController = erpnext.selling.SellingController.extend( // delivery note if(flt(doc.per_delivered, 6) < 100 && ["Sales", "Shopping Cart"].indexOf(doc.order_type)!==-1 && allow_delivery) { this.frm.add_custom_button(__('Delivery'), - function() { me.make_delivery_note_based_on_delivery_date(); }, __("Make")); + function() { me.make_delivery_note_based_on_delivery_date(); }, __('Create')); this.frm.add_custom_button(__('Work Order'), - function() { me.make_work_order() }, __("Make")); + function() { me.make_work_order() }, __('Create')); - this.frm.page.set_inner_btn_group_as_primary(__("Make")); + this.frm.page.set_inner_btn_group_as_primary(__('Create')); } // sales invoice if(flt(doc.per_billed, 6) < 100) { this.frm.add_custom_button(__('Invoice'), - function() { me.make_sales_invoice() }, __("Make")); + function() { me.make_sales_invoice() }, __('Create')); } // material request if(!doc.order_type || ["Sales", "Shopping Cart"].indexOf(doc.order_type)!==-1 && flt(doc.per_delivered, 6) < 100) { this.frm.add_custom_button(__('Material Request'), - function() { me.make_material_request() }, __("Make")); + function() { me.make_material_request() }, __('Create')); this.frm.add_custom_button(__('Request for Raw Materials'), - function() { me.make_raw_material_request() }, __("Make")); + function() { me.make_raw_material_request() }, __('Create')); } // make purchase order if(flt(doc.per_delivered, 6) < 100 && allow_purchase) { this.frm.add_custom_button(__('Purchase Order'), - function() { me.make_purchase_order() }, __("Make")); + function() { me.make_purchase_order() }, __('Create')); } // payment request if(flt(doc.per_billed)==0) { this.frm.add_custom_button(__('Payment Request'), - function() { me.make_payment_request() }, __("Make")); + function() { me.make_payment_request() }, __('Create')); this.frm.add_custom_button(__('Payment'), - function() { me.make_payment_entry() }, __("Make")); + function() { me.make_payment_entry() }, __('Create')); } // maintenance if(flt(doc.per_delivered, 2) < 100 && ["Sales", "Shopping Cart"].indexOf(doc.order_type)===-1) { this.frm.add_custom_button(__('Maintenance Visit'), - function() { me.make_maintenance_visit() }, __("Make")); + function() { me.make_maintenance_visit() }, __('Create')); this.frm.add_custom_button(__('Maintenance Schedule'), - function() { me.make_maintenance_schedule() }, __("Make")); + function() { me.make_maintenance_schedule() }, __('Create')); } // project if(flt(doc.per_delivered, 2) < 100 && ["Sales", "Shopping Cart"].indexOf(doc.order_type)!==-1 && allow_delivery) { this.frm.add_custom_button(__('Project'), - function() { me.make_project() }, __("Make")); + function() { me.make_project() }, __('Create')); } if(!doc.auto_repeat) { this.frm.add_custom_button(__('Subscription'), function() { erpnext.utils.make_subscription(doc.doctype, doc.name) - }, __("Make")) + }, __('Create')) } } else { @@ -292,7 +292,7 @@ erpnext.selling.SalesOrderController = erpnext.selling.SellingController.extend( } }); }, - primary_action_label: __('Make') + primary_action_label: __('Create') }); d.show(); } @@ -390,7 +390,7 @@ erpnext.selling.SalesOrderController = erpnext.selling.SellingController.extend( } }); }, - primary_action_label: __('Make') + primary_action_label: __('Create') }); d.show(); }, @@ -506,7 +506,7 @@ erpnext.selling.SalesOrderController = erpnext.selling.SellingController.extend( } }}, - {"fieldtype": "Button", "label": __("Make Purchase Order"), "fieldname": "make_purchase_order", "cssClass": "btn-primary"}, + {"fieldtype": "Button", "label": __('Create Purchase Order"), "fieldname": "make_purchase_order", "cssClass": "btn-primary"}, ] }); diff --git a/erpnext/setup/doctype/company/company.js b/erpnext/setup/doctype/company/company.js index 16676ac78a..8a595b07df 100644 --- a/erpnext/setup/doctype/company/company.js +++ b/erpnext/setup/doctype/company/company.js @@ -52,7 +52,7 @@ frappe.ui.form.on("Company", { frm.toggle_enable("default_currency", (frm.doc.__onload && !frm.doc.__onload.transactions_exist)); - frm.add_custom_button(__('Make Tax Template'), function() { + frm.add_custom_button(__('Create Tax Template'), function() { frm.trigger("make_default_tax_template"); }); @@ -74,7 +74,7 @@ frappe.ui.form.on("Company", { frm.add_custom_button(__('Default Tax Template'), function() { frm.trigger("make_default_tax_template"); - }, __("Make")); + }, __('Create')); } erpnext.company.set_chart_of_accounts_options(frm.doc); diff --git a/erpnext/stock/doctype/delivery_note/delivery_note.js b/erpnext/stock/doctype/delivery_note/delivery_note.js index f8a34972b7..4d719b287a 100644 --- a/erpnext/stock/doctype/delivery_note/delivery_note.js +++ b/erpnext/stock/doctype/delivery_note/delivery_note.js @@ -104,16 +104,16 @@ erpnext.stock.DeliveryNoteController = erpnext.selling.SellingController.extend( if (!doc.is_return && doc.status!="Closed") { if(flt(doc.per_installed, 2) < 100 && doc.docstatus==1) this.frm.add_custom_button(__('Installation Note'), function() { - me.make_installation_note() }, __("Make")); + me.make_installation_note() }, __('Create')); if (doc.docstatus==1) { this.frm.add_custom_button(__('Sales Return'), function() { - me.make_sales_return() }, __("Make")); + me.make_sales_return() }, __('Create')); } if (doc.docstatus==1) { this.frm.add_custom_button(__('Delivery Trip'), function() { - me.make_delivery_trip() }, __("Make")); + me.make_delivery_trip() }, __('Create')); } if(doc.docstatus==0 && !doc.__islocal) { @@ -121,11 +121,11 @@ erpnext.stock.DeliveryNoteController = erpnext.selling.SellingController.extend( frappe.model.open_mapped_doc({ method: "erpnext.stock.doctype.delivery_note.delivery_note.make_packing_slip", frm: me.frm - }) }, __("Make")); + }) }, __('Create')); } if (!doc.__islocal && doc.docstatus==1) { - this.frm.page.set_inner_btn_group_as_primary(__("Make")); + this.frm.page.set_inner_btn_group_as_primary(__('Create')); } if (this.frm.doc.docstatus===0) { @@ -170,7 +170,7 @@ erpnext.stock.DeliveryNoteController = erpnext.selling.SellingController.extend( if(!from_sales_invoice) { this.frm.add_custom_button(__('Invoice'), function() { me.make_sales_invoice() }, - __("Make")); + __('Create')); } } @@ -183,7 +183,7 @@ erpnext.stock.DeliveryNoteController = erpnext.selling.SellingController.extend( if(doc.docstatus==1 && !doc.is_return && !doc.auto_repeat) { cur_frm.add_custom_button(__('Subscription'), function() { erpnext.utils.make_subscription(doc.doctype, doc.name) - }, __("Make")) + }, __('Create')) } }, diff --git a/erpnext/stock/doctype/item/item.js b/erpnext/stock/doctype/item/item.js index 388b64325d..8016e7a543 100644 --- a/erpnext/stock/doctype/item/item.js +++ b/erpnext/stock/doctype/item/item.js @@ -66,17 +66,17 @@ frappe.ui.form.on("Item", { if(frm.doc.variant_based_on==="Item Attribute") { frm.add_custom_button(__("Single Variant"), function() { erpnext.item.show_single_variant_dialog(frm); - }, __("Make")); + }, __('Create')); frm.add_custom_button(__("Multiple Variants"), function() { erpnext.item.show_multiple_variants_dialog(frm); - }, __("Make")); + }, __('Create')); } else { frm.add_custom_button(__("Variant"), function() { erpnext.item.show_modal_for_manufacturers(frm); - }, __("Make")); + }, __('Create')); } - frm.page.set_inner_btn_group_as_primary(__("Make")); + frm.page.set_inner_btn_group_as_primary(__('Create')); } if (frm.doc.variant_of) { frm.set_intro(__('This Item is a Variant of {0} (Template).', @@ -372,7 +372,7 @@ $.extend(erpnext.item, { ] }); - dialog.set_primary_action(__('Make'), function() { + dialog.set_primary_action(__('Create'), function() { var data = dialog.get_values(); if(!data) return; @@ -418,7 +418,7 @@ $.extend(erpnext.item, { lengths.push(selected_attributes[key].length); }); if(lengths.includes(0)) { - me.multiple_variant_dialog.get_primary_btn().html(__("Make Variants")); + me.multiple_variant_dialog.get_primary_btn().html(__('Create Variants')); me.multiple_variant_dialog.disable_primary_action(); } else { let no_of_combinations = lengths.reduce((a, b) => a * b, 1); @@ -449,7 +449,7 @@ $.extend(erpnext.item, { ].concat(fields) }); - me.multiple_variant_dialog.set_primary_action(__("Make Variants"), () => { + me.multiple_variant_dialog.set_primary_action(__('Create Variants"), () => { let selected_attributes = get_selected_attributes(); me.multiple_variant_dialog.hide(); @@ -581,11 +581,11 @@ $.extend(erpnext.item, { } var d = new frappe.ui.Dialog({ - title: __("Make Variant"), + title: __('Create Variant"), fields: fields }); - d.set_primary_action(__("Make"), function() { + d.set_primary_action(__('Create'), function() { var args = d.get_values(); if(!args) return; frappe.call({ diff --git a/erpnext/stock/doctype/material_request/material_request.js b/erpnext/stock/doctype/material_request/material_request.js index 2b0ed38e93..4692f7c31c 100644 --- a/erpnext/stock/doctype/material_request/material_request.js +++ b/erpnext/stock/doctype/material_request/material_request.js @@ -53,35 +53,35 @@ frappe.ui.form.on('Material Request', { // make if (frm.doc.material_request_type === "Material Transfer") { frm.add_custom_button(__("Transfer Material"), - () => frm.events.make_stock_entry(frm), __("Make")); + () => frm.events.make_stock_entry(frm), __('Create')); } if (frm.doc.material_request_type === "Material Issue") { frm.add_custom_button(__("Issue Material"), - () => frm.events.make_stock_entry(frm), __("Make")); + () => frm.events.make_stock_entry(frm), __('Create')); } if (frm.doc.material_request_type === "Purchase") { frm.add_custom_button(__('Purchase Order'), - () => frm.events.make_purchase_order(frm), __("Make")); + () => frm.events.make_purchase_order(frm), __('Create')); } if (frm.doc.material_request_type === "Purchase") { frm.add_custom_button(__("Request for Quotation"), - () => frm.events.make_request_for_quotation(frm), __("Make")); + () => frm.events.make_request_for_quotation(frm), __('Create')); } if (frm.doc.material_request_type === "Purchase") { frm.add_custom_button(__("Supplier Quotation"), - () => frm.events.make_supplier_quotation(frm), __("Make")); + () => frm.events.make_supplier_quotation(frm), __('Create')); } if (frm.doc.material_request_type === "Manufacture") { frm.add_custom_button(__("Work Order"), - () => frm.events.raise_work_orders(frm), __("Make")); + () => frm.events.raise_work_orders(frm), __('Create')); } - frm.page.set_inner_btn_group_as_primary(__("Make")); + frm.page.set_inner_btn_group_as_primary(__('Create')); // stop frm.add_custom_button(__('Stop'), diff --git a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.js b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.js index 1d9eb9965b..a7fc8456f3 100644 --- a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.js +++ b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.js @@ -101,20 +101,20 @@ erpnext.stock.PurchaseReceiptController = erpnext.buying.BuyingController.extend cur_frm.add_custom_button(__("Close"), this.close_purchase_receipt, __("Status")) } - cur_frm.add_custom_button(__('Return'), this.make_purchase_return, __("Make")); + cur_frm.add_custom_button(__('Return'), this.make_purchase_return, __('Create')); if(flt(this.frm.doc.per_billed) < 100) { - cur_frm.add_custom_button(__('Invoice'), this.make_purchase_invoice, __("Make")); + cur_frm.add_custom_button(__('Invoice'), this.make_purchase_invoice, __('Create')); } - cur_frm.add_custom_button(__('Retention Stock Entry'), this.make_retention_stock_entry, __("Make")); + cur_frm.add_custom_button(__('Retention Stock Entry'), this.make_retention_stock_entry, __('Create')); if(!this.frm.doc.auto_repeat) { cur_frm.add_custom_button(__('Subscription'), function() { erpnext.utils.make_subscription(me.frm.doc.doctype, me.frm.doc.name) - }, __("Make")) + }, __('Create')) } - cur_frm.page.set_inner_btn_group_as_primary(__("Make")); + cur_frm.page.set_inner_btn_group_as_primary(__('Create')); } } diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.js b/erpnext/stock/doctype/stock_entry/stock_entry.js index ccd5f363a4..6039939755 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.js +++ b/erpnext/stock/doctype/stock_entry/stock_entry.js @@ -95,7 +95,7 @@ frappe.ui.form.on('Stock Entry', { refresh: function(frm) { if(!frm.doc.docstatus) { frm.trigger('validate_purpose_consumption'); - frm.add_custom_button(__('Make Material Request'), function() { + frm.add_custom_button(__('Create Material Request'), function() { frappe.model.with_doctype('Material Request', function() { var mr = frappe.model.get_new_doc('Material Request'); var items = frm.get_field('items').grid.get_selected_children(); @@ -184,7 +184,7 @@ frappe.ui.form.on('Stock Entry', { } if(frm.doc.docstatus==1 && frm.doc.purpose == "Material Receipt" && frm.get_sum('items', 'sample_quantity')) { - frm.add_custom_button(__('Make Sample Retention Stock Entry'), function () { + frm.add_custom_button(__('Create Sample Retention Stock Entry'), function () { frm.trigger("make_retention_stock_entry"); }); } @@ -710,7 +710,7 @@ erpnext.stock.StockEntry = erpnext.stock.StockController.extend({ excise = locals['Journal Entry'][excise]; excise.voucher_type = 'Excise Entry'; frappe.set_route('Form', 'Journal Entry', excise.name); - }, __("Make")); + }, __('Create')); }, items_add: function(doc, cdt, cdn) { diff --git a/erpnext/utilities/activation.py b/erpnext/utilities/activation.py index 8ad042b74a..fbab65cd5a 100644 --- a/erpnext/utilities/activation.py +++ b/erpnext/utilities/activation.py @@ -62,7 +62,7 @@ def get_help_messages(): doctype='Lead', title=_('Create Leads'), description=_('Leads help you get business, add all your contacts and more as your leads'), - action=_('Make Lead'), + action=_('Create Lead'), route='List/Lead', domain=('Manufacturing', 'Retail', 'Services', 'Distribution'), target=3 @@ -71,7 +71,7 @@ def get_help_messages(): doctype='Quotation', title=_('Create customer quotes'), description=_('Quotations are proposals, bids you have sent to your customers'), - action=_('Make Quotation'), + action=_('Create Quotation'), route='List/Quotation', domain=('Manufacturing', 'Retail', 'Services', 'Distribution'), target=3 @@ -79,8 +79,8 @@ def get_help_messages(): frappe._dict( doctype='Sales Order', title=_('Manage your orders'), - description=_('Make Sales Orders to help you plan your work and deliver on-time'), - action=_('Make Sales Order'), + description=_('Create Sales Orders to help you plan your work and deliver on-time'), + action=_('Create Sales Order'), route='List/Sales Order', domain=('Manufacturing', 'Retail', 'Services', 'Distribution'), target=3 @@ -89,7 +89,7 @@ def get_help_messages(): doctype='Purchase Order', title=_('Create Purchase Orders'), description=_('Purchase orders help you plan and follow up on your purchases'), - action=_('Make Purchase Order'), + action=_('Create Purchase Order'), route='List/Purchase Order', domain=('Manufacturing', 'Retail', 'Services', 'Distribution'), target=3 @@ -98,7 +98,7 @@ def get_help_messages(): doctype='User', title=_('Create Users'), description=_('Add the rest of your organization as your users. You can also add invite Customers to your portal by adding them from Contacts'), - action=_('Make User'), + action=_('Create User'), route='List/User', domain=('Manufacturing', 'Retail', 'Services', 'Distribution'), target=3 @@ -107,7 +107,7 @@ def get_help_messages(): doctype='Timesheet', title=_('Add Timesheets'), description=_('Timesheets help keep track of time, cost and billing for activites done by your team'), - action=_('Make Timesheet'), + action=_('Create Timesheet'), route='List/Timesheet', domain=('Services',), target=5 @@ -116,7 +116,7 @@ def get_help_messages(): doctype='Student', title=_('Add Students'), description=_('Students are at the heart of the system, add all your students'), - action=_('Make Student'), + action=_('Create Student'), route='List/Student', domain=('Education',), target=5 @@ -125,7 +125,7 @@ def get_help_messages(): doctype='Student Batch', title=_('Group your students in batches'), description=_('Student Batches help you track attendance, assessments and fees for students'), - action=_('Make Student Batch'), + action=_('Create Student Batch'), route='List/Student Batch', domain=('Education',), target=3 @@ -134,7 +134,7 @@ def get_help_messages(): doctype='Employee', title=_('Create Employee Records'), description=_('Create Employee records to manage leaves, expense claims and payroll'), - action=_('Make Employee'), + action=_('Create Employee'), route='List/Employee', target=3 )