mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
fix(minor): patch add_state_code_for_ladakh
This commit is contained in:
@@ -11,6 +11,7 @@ def execute():
|
|||||||
|
|
||||||
# Update options in gst_state custom fields
|
# Update options in gst_state custom fields
|
||||||
for field in custom_fields:
|
for field in custom_fields:
|
||||||
gst_state_field = frappe.get_doc('Custom Field', field)
|
if frappe.db.exists('Custom Field', field):
|
||||||
gst_state_field.options = '\n'.join(states)
|
gst_state_field = frappe.get_doc('Custom Field', field)
|
||||||
gst_state_field.save()
|
gst_state_field.options = '\n'.join(states)
|
||||||
|
gst_state_field.save()
|
||||||
|
|||||||
@@ -2,15 +2,12 @@ import frappe
|
|||||||
from erpnext.regional.india.setup import make_custom_fields
|
from erpnext.regional.india.setup import make_custom_fields
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
company = frappe.get_all('Company', filters = {'country': 'India'})
|
if frappe.get_all('Company', filters = {'country': 'India'}):
|
||||||
if not company:
|
make_custom_fields()
|
||||||
return
|
|
||||||
|
|
||||||
make_custom_fields()
|
if not frappe.db.exists('Party Type', 'Donor'):
|
||||||
|
frappe.get_doc({
|
||||||
if not frappe.db.exists('Party Type', 'Donor'):
|
'doctype': 'Party Type',
|
||||||
frappe.get_doc({
|
'party_type': 'Donor',
|
||||||
'doctype': 'Party Type',
|
'account_type': 'Receivable'
|
||||||
'party_type': 'Donor',
|
}).insert(ignore_permissions=True)
|
||||||
'account_type': 'Receivable'
|
|
||||||
}).insert(ignore_permissions=True)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user