|
|
@ -2,15 +2,12 @@ import frappe |
|
|
|
from erpnext.regional.india.setup import make_custom_fields |
|
|
|
|
|
|
|
def execute(): |
|
|
|
company = frappe.get_all('Company', filters = {'country': 'India'}) |
|
|
|
if not company: |
|
|
|
return |
|
|
|
if frappe.get_all('Company', filters = {'country': 'India'}): |
|
|
|
make_custom_fields() |
|
|
|
|
|
|
|
make_custom_fields() |
|
|
|
|
|
|
|
if not frappe.db.exists('Party Type', 'Donor'): |
|
|
|
frappe.get_doc({ |
|
|
|
'doctype': 'Party Type', |
|
|
|
'party_type': 'Donor', |
|
|
|
'account_type': 'Receivable' |
|
|
|
}).insert(ignore_permissions=True) |
|
|
|
if not frappe.db.exists('Party Type', 'Donor'): |
|
|
|
frappe.get_doc({ |
|
|
|
'doctype': 'Party Type', |
|
|
|
'party_type': 'Donor', |
|
|
|
'account_type': 'Receivable' |
|
|
|
}).insert(ignore_permissions=True) |
|
|
|