Deepesh Garg
3 years ago
5 changed files with 45 additions and 18 deletions
@ -0,0 +1,25 @@ |
|||
import frappe |
|||
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields |
|||
|
|||
|
|||
def execute(): |
|||
custom_fields = { |
|||
'Supplier': [ |
|||
{ |
|||
'fieldname': 'pan', |
|||
'label': 'PAN', |
|||
'fieldtype': 'Data', |
|||
'insert_after': 'supplier_type' |
|||
} |
|||
], |
|||
'Customer': [ |
|||
{ |
|||
'fieldname': 'pan', |
|||
'label': 'PAN', |
|||
'fieldtype': 'Data', |
|||
'insert_after': 'customer_type' |
|||
} |
|||
] |
|||
} |
|||
|
|||
create_custom_fields(custom_fields, update=True) |
Loading…
Reference in new issue