fixed patches
This commit is contained in:
parent
bd00e81ad5
commit
b120520aa8
@ -1,6 +1,6 @@
|
||||
{
|
||||
"autoname": "PP/.SO/.#####",
|
||||
"creation": "2013-02-22 01:27:49.000000",
|
||||
"creation": "2013-02-22 01:27:49",
|
||||
"docstatus": 0,
|
||||
"doctype": "DocType",
|
||||
"fields": [
|
||||
@ -28,6 +28,12 @@
|
||||
"read_only": 1,
|
||||
"width": "120px"
|
||||
},
|
||||
{
|
||||
"fieldname": "col_break1",
|
||||
"fieldtype": "Column Break",
|
||||
"permlevel": 0,
|
||||
"precision": ""
|
||||
},
|
||||
{
|
||||
"fieldname": "customer",
|
||||
"fieldtype": "Link",
|
||||
@ -53,9 +59,10 @@
|
||||
],
|
||||
"idx": 1,
|
||||
"istable": 1,
|
||||
"modified": "2013-12-20 19:23:25.000000",
|
||||
"modified": "2015-02-17 14:29:14.479541",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Manufacturing",
|
||||
"name": "Production Plan Sales Order",
|
||||
"owner": "Administrator"
|
||||
"owner": "Administrator",
|
||||
"permissions": []
|
||||
}
|
@ -97,6 +97,8 @@ execute:frappe.db.sql("update `tabItem` i set apply_warehouse_wise_reorder_level
|
||||
execute:frappe.rename_doc("DocType", "Support Ticket", "Issue", force=True)
|
||||
erpnext.patches.v5_0.set_default_company_in_bom
|
||||
erpnext.patches.v5_0.capacity_planning
|
||||
execute:frappe.reload_doc('crm', 'doctype', 'lead')
|
||||
execute:frappe.reload_doc('crm', 'doctype', 'opportunity')
|
||||
erpnext.patches.v5_0.rename_table_fieldnames
|
||||
execute:frappe.db.sql("update `tabJournal Entry` set voucher_type='Journal Entry' where ifnull(voucher_type, '')=''")
|
||||
erpnext.patches.v4_2.party_model
|
||||
@ -108,6 +110,6 @@ erpnext.patches.v5_0.remove_shopping_cart_app
|
||||
erpnext.patches.v5_0.update_companywise_payment_account
|
||||
erpnext.patches.v5_0.remove_birthday_events
|
||||
erpnext.patches.v5_0.update_item_name_in_bom
|
||||
execute:frappe.reload_doc('crm', 'doctype', 'lead')
|
||||
execute:frappe.reload_doc('crm', 'doctype', 'opportunity')
|
||||
erpnext.patches.v5_0.rename_customer_issue
|
||||
erpnext.patches.v5_0.rename_total_fields
|
||||
erpnext.patches.v5_0.replace_renamed_fields_in_custom_script_and_print_formats
|
||||
|
@ -2,4 +2,4 @@ import frappe
|
||||
|
||||
def execute():
|
||||
if frappe.db.table_exists("tabCustomer Issue"):
|
||||
frappe.rename_doc("DocType", "Customer Issue", "Warrany Claim")
|
||||
frappe.rename_doc("DocType", "Customer Issue", "Warranty Claim")
|
||||
|
@ -105,7 +105,6 @@ rename_map = {
|
||||
["experience_in_company_details", "internal_work_history"]
|
||||
],
|
||||
"Event": [
|
||||
["event_individuals", "users"],
|
||||
["event_roles", "roles"]
|
||||
],
|
||||
"Expense Claim": [
|
||||
|
@ -8,7 +8,7 @@ from frappe.modules import scrub, get_doctype_module
|
||||
|
||||
selling_doctypes = ("Quotation", "Sales Order", "Delivery Note", "Sales Invoice")
|
||||
|
||||
selling_doctypes = ("Supplier Quotation", "Purchase Order", "Purchase Receipt", "Purchase Invoice")
|
||||
buying_doctypes = ("Supplier Quotation", "Purchase Order", "Purchase Receipt", "Purchase Invoice")
|
||||
|
||||
selling_renamed_fields = (
|
||||
("net_total", "base_net_total"),
|
||||
@ -47,4 +47,5 @@ def execute():
|
||||
rename_field(dt, f[0], f[1])
|
||||
|
||||
# Added new field "total_taxes_and_charges" in buying cycle, updating value
|
||||
frappe.db.sql("update `tab{0}` set total_taxes_and_charges=round(base_total_taxes_and_charges/conversion_rate), 2")
|
||||
frappe.db.sql("""update `tab{0}`
|
||||
set total_taxes_and_charges = round(base_total_taxes_and_charges/conversion_rate, 2)""".format(dt))
|
||||
|
@ -43,7 +43,7 @@ def get_all_renamed_fields():
|
||||
)
|
||||
|
||||
for fields in rename_map.values():
|
||||
renamed_fields += fields
|
||||
renamed_fields += tuple(fields)
|
||||
|
||||
return renamed_fields
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user