[patch][update] naming_series field in member patch

This commit is contained in:
Prateeksha Singh 2018-06-04 16:36:12 +05:30
parent 37678d4838
commit 2141bfab89
2 changed files with 3 additions and 1 deletions

View File

@ -544,4 +544,4 @@ erpnext.patches.v11_0.refactor_erpnext_shopify
erpnext.patches.v11_0.move_item_defaults_to_child_table_for_multicompany
erpnext.patches.v11_0.rename_overproduction_percent_field
erpnext.patches.v10_0.update_status_in_purchase_receipt
erpnext.patches.v11_0.rename_members_with_naming_series
erpnext.patches.v11_0.rename_members_with_naming_series #04-06-2018

View File

@ -8,3 +8,5 @@ def execute():
for member in old_named_members:
current_index += 1
frappe.rename_doc("Member", member["name"], "MEM-" + str(current_index).zfill(5))
frappe.db.sql("""update `tabMember` set naming_series = 'MEM-'""")