mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
rename Purchase Request to Material Request
This commit is contained in:
6
patches/february_2013/p03_material_request.py
Normal file
6
patches/february_2013/p03_material_request.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
webnotes.reload_doc("core", "doctype", "doctype")
|
||||
webnotes.rename_doc("DocType", "Purchase Request Item", "Material Request Item", force=True)
|
||||
webnotes.rename_doc("DocType", "Purchase Request", "Material Request", force=True)
|
||||
@@ -2,4 +2,4 @@ from __future__ import unicode_literals
|
||||
def execute():
|
||||
import webnotes
|
||||
from webnotes.modules import reload_doc
|
||||
reload_doc('buying', 'DocType Mapper', 'Purchase Request-Purchase Order')
|
||||
reload_doc('buying', 'DocType Mapper', 'Material Request-Purchase Order')
|
||||
@@ -10,6 +10,6 @@ def execute():
|
||||
sync('buying', 'purchase_order_item')
|
||||
|
||||
from webnotes.modules import reload_doc
|
||||
reload_doc('buying', 'DocType Mapper', 'Purchase Request-Supplier Quotation')
|
||||
reload_doc('buying', 'DocType Mapper', 'Material Request-Supplier Quotation')
|
||||
reload_doc('buying', 'DocType Mapper', 'Supplier Quotation-Purchase Order')
|
||||
|
||||
@@ -102,7 +102,7 @@ def create_file_list():
|
||||
'Project', 'Profile', 'Production Order', 'Product', 'Print Format',
|
||||
'Price List', 'Purchase Invoice', 'Page',
|
||||
'Maintenance Visit', 'Maintenance Schedule', 'Letter Head',
|
||||
'Leave Application', 'Lead', 'Journal Voucher', 'Item', 'Purchase Request',
|
||||
'Leave Application', 'Lead', 'Journal Voucher', 'Item', 'Material Request',
|
||||
'Expense Claim', 'Opportunity', 'Employee', 'Delivery Note',
|
||||
'Customer Issue', 'Customer', 'Contact Us Settings', 'Company',
|
||||
'Bulk Rename Tool', 'Blog', 'BOM', 'About Us Settings']
|
||||
|
||||
@@ -4,7 +4,7 @@ def execute():
|
||||
dt_list = webnotes.conn.sql("select parent, fieldname from `tabDocField` where fieldname in ('against_doctype', 'prevdoc_doctype')")
|
||||
|
||||
ren_dt = {
|
||||
'Indent' : 'Purchase Request',
|
||||
'Indent' : 'Material Request',
|
||||
'Enquiry' : 'Opportunity',
|
||||
'Receivable Voucher' : 'Sales Invoice',
|
||||
'Payable Voucher' : 'Purchase Invoice'
|
||||
|
||||
@@ -8,8 +8,8 @@ def execute():
|
||||
'Payable Voucher' : 'Purchase Invoice',
|
||||
'PV Detail' : 'Purchase Invoice Item',
|
||||
'Purchase Tax Detail' : 'Purchase Taxes and Charges',
|
||||
'Indent' : 'Purchase Request',
|
||||
'Indent Detail' : 'Purchase Request Item',
|
||||
'Indent' : 'Material Request',
|
||||
'Indent Detail' : 'Material Request Item',
|
||||
'QA Inspection Report' : 'Quality Inspection',
|
||||
'Ticket' : 'Task',
|
||||
'Manage Account' : 'Global Defaults',
|
||||
|
||||
@@ -173,4 +173,5 @@ patch_list = [
|
||||
"patches.february_2013.p01_event",
|
||||
"execute:webnotes.delete_doc('Page', 'Calendar')",
|
||||
"patches.february_2013.p02_email_digest",
|
||||
"patches.february_2013.p03_material_request",
|
||||
]
|
||||
Reference in New Issue
Block a user