mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 14:39:19 +00:00
feat: add custom field debtor_creditor_number to Party Account
This commit is contained in:
@@ -1,6 +1,18 @@
|
|||||||
import os
|
import os
|
||||||
import frappe
|
import frappe
|
||||||
|
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
|
||||||
|
|
||||||
|
|
||||||
def setup(company=None, patch=True):
|
def setup(company=None, patch=True):
|
||||||
pass
|
make_custom_fields()
|
||||||
|
|
||||||
|
|
||||||
|
def make_custom_fields():
|
||||||
|
custom_fields = {
|
||||||
|
'Party Account': [
|
||||||
|
dict(fieldname='debtor_creditor_number', label='Debtor/Creditor Number',
|
||||||
|
fieldtype='Data', insert_after='account')
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
create_custom_fields(custom_fields)
|
||||||
|
|||||||
Reference in New Issue
Block a user