2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 10:58:59 +00:00

fix: show Is Required

- show Custom Form in search only if enabled
This commit is contained in:
18alantom 2023-08-09 12:02:15 +05:30
parent 93ad5d6a9a
commit ef5b1c80e4
2 changed files with 6 additions and 2 deletions

View File

@ -122,12 +122,12 @@
"fieldtype": "AutoComplete" "fieldtype": "AutoComplete"
} }
], ],
"tableFields": ["label", "fieldname", "fieldtype"], "tableFields": ["label", "fieldname", "fieldtype", "isRequired"],
"quickEditFields": [ "quickEditFields": [
"label", "label",
"fieldname", "fieldname",
"fieldtype", "fieldtype",
"required", "isRequired",
"options", "options",
"target", "target",
"references", "references",

View File

@ -217,6 +217,10 @@ function getListViewList(fyo: Fyo): SearchItem[] {
schemaNames.push(ModelNameEnum.SerialNumber); schemaNames.push(ModelNameEnum.SerialNumber);
} }
if (fyo.doc.singles.AccountingSettings?.enableFormCustomization) {
schemaNames.push(ModelNameEnum.CustomForm);
}
if (fyo.store.isDevelopment) { if (fyo.store.isDevelopment) {
schemaNames = Object.keys(fyo.schemaMap) as ModelNameEnum[]; schemaNames = Object.keys(fyo.schemaMap) as ModelNameEnum[];
} }