fix: show only link, dynamic link and data fields

This commit is contained in:
prssanna 2020-11-12 15:26:24 +05:30
parent e230ddf4d3
commit 4e49f0f0ca

View file

@ -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) {