mirror of
https://github.com/frappe/books.git
synced 2024-12-22 19:09:01 +00:00
fix: show Is Required
- show Custom Form in search only if enabled
This commit is contained in:
parent
93ad5d6a9a
commit
ef5b1c80e4
@ -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",
|
||||||
|
@ -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[];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user