2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 03:29:00 +00:00
books/schemas/app/Party.json
18alantom 4b65fbb50d fix: CommonForm name field readonly
- CommonForm clear tempname on focus
- remove inline editing of inline docs
- remove "inline" config on schema fields
- show select placeholder only if no label
- rename inlineEditDisplayField to linkDisplayField
2023-03-02 13:42:16 +05:30

96 lines
1.8 KiB
JSON

{
"name": "Party",
"label": "Party",
"naming": "manual",
"fields": [
{
"fieldname": "name",
"label": "Name",
"fieldtype": "Data",
"required": true,
"placeholder": "Full Name"
},
{
"fieldname": "image",
"label": "Image",
"fieldtype": "AttachImage"
},
{
"fieldname": "role",
"label": "Role",
"fieldtype": "Select",
"default": "Both",
"options": [
{
"value": "Both",
"label": "Both"
},
{
"value": "Supplier",
"label": "Supplier"
},
{
"value": "Customer",
"label": "Customer"
}
],
"required": true
},
{
"fieldname": "defaultAccount",
"label": "Default Account",
"fieldtype": "Link",
"target": "Account",
"create": true
},
{
"fieldname": "outstandingAmount",
"label": "Outstanding Amount",
"fieldtype": "Currency",
"hidden": true
},
{
"fieldname": "currency",
"label": "Currency",
"fieldtype": "Link",
"target": "Currency",
"placeholder": "INR",
"create": true
},
{
"fieldname": "email",
"label": "Email",
"fieldtype": "Data",
"placeholder": "john@doe.com"
},
{
"fieldname": "phone",
"label": "Phone",
"fieldtype": "Data",
"placeholder": "Phone"
},
{
"fieldname": "address",
"label": "Address",
"fieldtype": "Link",
"target": "Address",
"create": true
},
{
"fieldname": "taxId",
"label": "Tax ID",
"fieldtype": "Data"
}
],
"quickEditFields": [
"email",
"phone",
"address",
"defaultAccount",
"currency",
"role",
"taxId"
],
"keywordFields": ["name", "email", "role"]
}