{ "name": "PriceList", "label": "Price List", "naming": "manual", "fields": [ { "fieldname": "name", "label": "Name", "fieldtype": "Data", "required": true }, { "fieldname": "isEnabled", "label": "Is Price List Enabled", "fieldtype": "Check", "default": true }, { "fieldname": "isSales", "label": "For Sales", "fieldtype": "Check", "default": true, "required": true }, { "fieldname": "isPurchase", "label": "For Purchase", "fieldtype": "Check", "default": false, "required": true }, { "fieldname": "priceListItem", "label": "Item Prices", "fieldtype": "Table", "target": "PriceListItem", "edit": true, "required": true, "section": "Item Prices" } ] }