New Party Type Member Added

This commit is contained in:
Vishal 2017-09-18 16:04:52 +05:30
parent 5dae126f56
commit 3a75a5e9b5
4 changed files with 14 additions and 2 deletions

View File

@ -5,6 +5,9 @@
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe.contacts.address_and_contact import load_address_and_contact, delete_contact_and_address
class Member(Document):
pass
def onload(self):
"""Load address and contacts in `__onload`"""
load_address_and_contact(self)

View File

@ -449,7 +449,8 @@ erpnext.patches.v8_9.remove_employee_from_salary_structure_parent
erpnext.patches.v8_9.delete_gst_doctypes_for_outside_india_accounts
erpnext.patches.v8_9.set_default_fields_in_variant_settings
erpnext.patches.v8_9.update_billing_gstin_for_indian_account
erpnext.patches.v9_0.add_user_to_child_table_in_pos_profile #2017-11-28
erpnext.patches.v8_9.set_member_party_type
erpnext.patches.v9_0.add_user_to_child_table_in_pos_profile
erpnext.patches.v9_0.set_schedule_date_for_material_request_and_purchase_order
erpnext.patches.v9_0.student_admission_childtable_migrate
erpnext.patches.v9_0.fix_subscription_next_date #2017-10-23

View File

@ -0,0 +1,7 @@
import frappe
def execute():
if not frappe.db.exists("Party Type", "Member"):
party = frappe.new_doc("Party Type")
party.party_type = "Member"
party.save()

View File

@ -213,6 +213,7 @@ def install(country=None):
{'doctype': "Party Type", "party_type": "Customer"},
{'doctype': "Party Type", "party_type": "Supplier"},
{'doctype': "Party Type", "party_type": "Employee"},
{'doctype': "Party Type", "party_type": "Member"},
{'doctype': "Opportunity Type", "name": "Hub"},
{'doctype': "Opportunity Type", "name": _("Sales")},