mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 22:18:27 +00:00
[mappers] cleanup, remove dt_map, map_doclist and other such functions
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
from webnotes.model import delete_doc
|
||||
for d in ["Project-Sales Order", "Project-Delivery Note", "Project-Sales Invoice"]:
|
||||
delete_doc("DocType Mapper", d)
|
||||
@@ -1,7 +0,0 @@
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
webnotes.reload_doc("buying", "DocType Mapper", "Material Request-Purchase Order")
|
||||
webnotes.reload_doc("buying", "DocType Mapper", "Material Request-Supplier Quotation")
|
||||
webnotes.reload_doc("buying", "DocType Mapper", "Sales Order-Material Request")
|
||||
webnotes.reload_doc("stock", "DocType Mapper", "Material Request-Stock Entry")
|
||||
@@ -1,5 +0,0 @@
|
||||
from __future__ import unicode_literals
|
||||
def execute():
|
||||
import webnotes
|
||||
from webnotes.modules import reload_doc
|
||||
reload_doc('buying', 'DocType Mapper', 'Material Request-Purchase Order')
|
||||
@@ -1,14 +0,0 @@
|
||||
from __future__ import unicode_literals
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
"""sync supplier quotatoin and create supplier quotation mappers"""
|
||||
webnotes.reload_doc('buying', 'doctype', 'supplier_quotation')
|
||||
webnotes.reload_doc('buying', 'doctype', 'supplier_quotation_item')
|
||||
webnotes.reload_doc('buying', 'doctype', 'purchase_order')
|
||||
webnotes.reload_doc('buying', 'doctype', 'purchase_order_item')
|
||||
|
||||
from webnotes.modules import reload_doc
|
||||
reload_doc('buying', 'DocType Mapper', 'Material Request-Supplier Quotation')
|
||||
reload_doc('buying', 'DocType Mapper', 'Supplier Quotation-Purchase Order')
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
import webnotes
|
||||
def execute():
|
||||
for m in webnotes.conn.sql("select name from `tabDocType Mapper`"):
|
||||
webnotes.delete_doc("DocType Mapper", m[0])
|
||||
webnotes.conn.sql("""drop table if exists `tabDocType Mapper`""")
|
||||
webnotes.conn.sql("""drop table if exists `tabTable Mapper Detail`""")
|
||||
webnotes.conn.sql("""drop table if exists `tabField Mapper Detail`""")
|
||||
webnotes.delete_doc("DocType", "DocType Mapper")
|
||||
webnotes.delete_doc("DocType", "Table Mapper Detail")
|
||||
webnotes.delete_doc("DocType", "Field Mapper Detail")
|
||||
@@ -1,11 +0,0 @@
|
||||
from __future__ import unicode_literals
|
||||
def execute():
|
||||
import webnotes
|
||||
count = webnotes.conn.sql("""SELECT COUNT(*) FROM `tabTable Mapper Detail`
|
||||
WHERE parent='Sales Order-Sales Invoice'
|
||||
AND from_table='Sales Order Item'""")
|
||||
if count and count[0][0]==2:
|
||||
webnotes.conn.sql("""DELETE FROM `tabTable Mapper Detail`
|
||||
WHERE parent='Sales Order-Sales Invoice'
|
||||
AND from_table='Sales Order Item'
|
||||
AND validation_logic='docstatus = 1'""")
|
||||
@@ -1,6 +0,0 @@
|
||||
def execute():
|
||||
return # deprecated
|
||||
import webnotes
|
||||
from webnotes.modules import reload_doc
|
||||
reload_doc("accounts", "GL Mapper", "Purchase Invoice")
|
||||
reload_doc("accounts", "GL Mapper", "Purchase Invoice with write off")
|
||||
@@ -20,7 +20,6 @@ patch_list = [
|
||||
"execute:webnotes.reload_doc('core', 'doctype', 'docperm') # 2013-04-07",
|
||||
"execute:webnotes.reload_doc('core', 'doctype', 'report')",
|
||||
"execute:webnotes.reload_doc('core', 'doctype', 'doctype') # 2013-07-04",
|
||||
"patches.mar_2012.so_rv_mapper_fix",
|
||||
"patches.mar_2012.clean_property_setter",
|
||||
"patches.april_2012.naming_series_patch",
|
||||
"patches.mar_2012.cleanup_control_panel",
|
||||
@@ -73,7 +72,6 @@ patch_list = [
|
||||
"patches.july_2012.bin_permission",
|
||||
"patches.july_2012.project_patch_repeat",
|
||||
"patches.july_2012.repost_stock_due_to_wrong_packing_list",
|
||||
"patches.july_2012.supplier_quotation",
|
||||
"patches.august_2012.task_allocated_to_assigned",
|
||||
"patches.august_2012.change_profile_permission",
|
||||
"patches.august_2012.repost_billed_amt",
|
||||
@@ -89,7 +87,6 @@ patch_list = [
|
||||
"patches.september_2012.deprecate_account_balance",
|
||||
"patches.september_2012.profile_delete_permission",
|
||||
"patches.october_2012.update_permission",
|
||||
"patches.october_2012.reload_gl_mapper",
|
||||
"patches.october_2012.fix_wrong_vouchers",
|
||||
"patches.october_2012.company_fiscal_year_docstatus_patch",
|
||||
"patches.october_2012.update_account_property",
|
||||
@@ -124,7 +121,6 @@ patch_list = [
|
||||
"patches.december_2012.rebuild_item_group_tree",
|
||||
"patches.december_2012.address_title",
|
||||
"patches.december_2012.delete_form16_print_format",
|
||||
"patches.december_2012.remove_project_mapper",
|
||||
"patches.december_2012.update_print_width",
|
||||
"patches.january_2013.remove_bad_permissions",
|
||||
"patches.january_2013.holiday_list_patch",
|
||||
@@ -171,7 +167,6 @@ patch_list = [
|
||||
"execute:webnotes.delete_doc('DocType', 'Service Quotation')",
|
||||
"execute:webnotes.delete_doc('DocType', 'Service Order Detail')",
|
||||
"execute:webnotes.delete_doc('DocType', 'Service Quotation Detail')",
|
||||
"patches.february_2013.p06_material_request_mappers",
|
||||
"execute:webnotes.delete_doc('Page', 'Query Report')",
|
||||
"patches.february_2013.repost_reserved_qty",
|
||||
"execute:webnotes.reload_doc('core', 'doctype', 'report') # 2013-02-25",
|
||||
@@ -221,7 +216,6 @@ patch_list = [
|
||||
"patches.april_2013.p05_update_file_data",
|
||||
"patches.april_2013.p06_update_file_size",
|
||||
"patches.april_2013.p05_fixes_in_reverse_modules",
|
||||
"execute:webnotes.delete_doc('DocType Mapper', 'Delivery Note-Packing Slip')",
|
||||
"patches.april_2013.p07_rename_cost_center_other_charges",
|
||||
"patches.april_2013.p06_default_cost_center",
|
||||
"execute:webnotes.reset_perms('File Data')",
|
||||
|
||||
Reference in New Issue
Block a user