New Party Type Member Added
This commit is contained in:
parent
5dae126f56
commit
3a75a5e9b5
@ -5,6 +5,9 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import frappe
|
import frappe
|
||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
|
from frappe.contacts.address_and_contact import load_address_and_contact, delete_contact_and_address
|
||||||
|
|
||||||
class Member(Document):
|
class Member(Document):
|
||||||
pass
|
def onload(self):
|
||||||
|
"""Load address and contacts in `__onload`"""
|
||||||
|
load_address_and_contact(self)
|
||||||
|
@ -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.delete_gst_doctypes_for_outside_india_accounts
|
||||||
erpnext.patches.v8_9.set_default_fields_in_variant_settings
|
erpnext.patches.v8_9.set_default_fields_in_variant_settings
|
||||||
erpnext.patches.v8_9.update_billing_gstin_for_indian_account
|
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.set_schedule_date_for_material_request_and_purchase_order
|
||||||
erpnext.patches.v9_0.student_admission_childtable_migrate
|
erpnext.patches.v9_0.student_admission_childtable_migrate
|
||||||
erpnext.patches.v9_0.fix_subscription_next_date #2017-10-23
|
erpnext.patches.v9_0.fix_subscription_next_date #2017-10-23
|
||||||
|
7
erpnext/patches/v8_9/set_member_party_type.py
Normal file
7
erpnext/patches/v8_9/set_member_party_type.py
Normal 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()
|
@ -213,6 +213,7 @@ def install(country=None):
|
|||||||
{'doctype': "Party Type", "party_type": "Customer"},
|
{'doctype': "Party Type", "party_type": "Customer"},
|
||||||
{'doctype': "Party Type", "party_type": "Supplier"},
|
{'doctype': "Party Type", "party_type": "Supplier"},
|
||||||
{'doctype': "Party Type", "party_type": "Employee"},
|
{'doctype': "Party Type", "party_type": "Employee"},
|
||||||
|
{'doctype': "Party Type", "party_type": "Member"},
|
||||||
|
|
||||||
{'doctype': "Opportunity Type", "name": "Hub"},
|
{'doctype': "Opportunity Type", "name": "Hub"},
|
||||||
{'doctype': "Opportunity Type", "name": _("Sales")},
|
{'doctype': "Opportunity Type", "name": _("Sales")},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user