2
0
mirror of https://github.com/frappe/books.git synced 2024-12-22 02:49:03 +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"
}
],
"tableFields": ["label", "fieldname", "fieldtype"],
"tableFields": ["label", "fieldname", "fieldtype", "isRequired"],
"quickEditFields": [
"label",
"fieldname",
"fieldtype",
"required",
"isRequired",
"options",
"target",
"references",

View File

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