Merge pull request #14345 from pratu16x7/members-patch
[patch][update] naming_series field in member patch
This commit is contained in:
commit
03644f2a9d
@ -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
|
||||
|
@ -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-'""")
|
||||
|
Loading…
Reference in New Issue
Block a user