from __future__ import unicode_literals
import frappe
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
def execute():
make_custom_fields()
def make_custom_fields():
user_fields = [
dict( fieldname='prefix',
label='Prefix',
fieldtype='Select', options=' \nKSA-\nUAE-\nEGYPT-\nQATAR-\nGCC-\nEGP-',
insert_after='full_name'
)
]
custom_fields = {
"User":user_fields
}
create_custom_fields(custom_fields)
import frappe
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
def execute():
make_custom_fields()
def make_custom_fields():
user_fields = [
dict( fieldname='prefix',
label='Prefix',
fieldtype='Select', options=' \nKSA-\nUAE-\nEGYPT-\nQATAR-\nGCC-\nEGP-',
insert_after='full_name'
)
]
custom_fields = {
"User":user_fields
}
create_custom_fields(custom_fields)