mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
Replace create_custom_fields with create_custom_field (#11420)
This commit is contained in:
committed by
Nabin Hait
parent
a829b3cc82
commit
40a43d3260
@@ -4,7 +4,7 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import frappe, os, json
|
import frappe, os, json
|
||||||
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
|
from frappe.custom.doctype.custom_field.custom_field import create_custom_field
|
||||||
from frappe.permissions import add_permission
|
from frappe.permissions import add_permission
|
||||||
from erpnext.regional.india import states
|
from erpnext.regional.india import states
|
||||||
|
|
||||||
@@ -148,7 +148,11 @@ def make_custom_fields():
|
|||||||
'Purchase Invoice Item': [hsn_sac_field]
|
'Purchase Invoice Item': [hsn_sac_field]
|
||||||
}
|
}
|
||||||
|
|
||||||
create_custom_fields(custom_fields)
|
for dt, data in custom_fields.iteritems():
|
||||||
|
for df in data:
|
||||||
|
create_custom_field(dt, df)
|
||||||
|
|
||||||
|
# create_custom_fields(custom_fields)
|
||||||
|
|
||||||
def make_fixtures():
|
def make_fixtures():
|
||||||
docs = [
|
docs = [
|
||||||
|
|||||||
Reference in New Issue
Block a user