add the student as party type (#13348)
This commit is contained in:
parent
2b88ac948e
commit
c711445b91
@ -496,3 +496,4 @@ erpnext.patches.v10_0.update_territory_and_customer_group
|
||||
erpnext.patches.v10_0.update_warehouse_address_details
|
||||
erpnext.patches.v10_0.update_reserved_qty_for_purchase_order
|
||||
erpnext.patches.v10_0.update_hub_connector_domain
|
||||
erpnext.patches.v10_0.set_student_party_type
|
||||
|
7
erpnext/patches/v10_0/set_student_party_type.py
Normal file
7
erpnext/patches/v10_0/set_student_party_type.py
Normal file
@ -0,0 +1,7 @@
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
if not frappe.db.exists("Party Type", "Student"):
|
||||
party = frappe.new_doc("Party Type")
|
||||
party.party_type = "Student"
|
||||
party.save()
|
@ -216,6 +216,7 @@ def install(country=None):
|
||||
{'doctype': "Party Type", "party_type": "Supplier"},
|
||||
{'doctype': "Party Type", "party_type": "Employee"},
|
||||
{'doctype': "Party Type", "party_type": "Member"},
|
||||
{'doctype': "Party Type", "party_type": "Student"},
|
||||
|
||||
{'doctype': "Opportunity Type", "name": "Hub"},
|
||||
{'doctype': "Opportunity Type", "name": _("Sales")},
|
||||
|
Loading…
x
Reference in New Issue
Block a user