patch for renaming project feilds

This commit is contained in:
Neil Trini Lasrado 2015-04-15 18:21:53 +05:30
parent 4cffbe26dc
commit e7ddb72e7f
2 changed files with 7 additions and 0 deletions

View File

@ -143,3 +143,4 @@ execute:frappe.permissions.reset_perms("Expense Claim Type") #2014-06-19
erpnext.patches.v5_0.execute_on_doctype_update
erpnext.patches.v4_2.fix_recurring_orders
erpnext.patches.v4_2.delete_gl_entries_for_cancelled_invoices
erpnext.patches.v5_0.project_costing

View File

@ -0,0 +1,6 @@
import frappe
def execute():
frappe.db.sql("update `tabProject` set expected_start_date = project_start_date, \
expected_end_date = completion_date, actual_end_date = act_completion_date, \
estimated_costing = project_value, gross_margin = gross_margin_value")