fix: show only link, dynamic link and data fields
This commit is contained in:
parent
e230ddf4d3
commit
4e49f0f0ca
1 changed files with 2 additions and 1 deletions
|
|
@ -57,7 +57,8 @@ frappe.ui.form.on('Assignment Rule', {
|
|||
frm.set_fields_as_options(
|
||||
'field',
|
||||
doctype,
|
||||
() => true,
|
||||
(df) => ['Dynamic Link', 'Data'].includes(df.fieldtype)
|
||||
|| (df.fieldtype == 'Link' && df.options == 'User'),
|
||||
[{ label: 'Owner', value: 'owner' }]
|
||||
);
|
||||
if (doctype) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue