fix: hide fetch_from field for no_value_type fields
This commit is contained in:
parent
5f3268d892
commit
dca31d068c
1 changed files with 7 additions and 0 deletions
|
|
@ -18,6 +18,13 @@ let docfield_df = computed(() => {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (
|
||||
in_list(["fetch_from", "fetch_if_empty"], df.fieldname) &&
|
||||
in_list(frappe.model.no_value_type, store.selected_field.fieldtype)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (df.fieldname === "options") {
|
||||
df.fieldtype = "Small Text";
|
||||
df.options = "";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue