mirror of
https://github.com/frappe/books.git
synced 2026-08-24 10:04:45 -05:00
fix: isRequired handling
- add support for default value in fields
This commit is contained in:
@@ -150,5 +150,6 @@ export class CustomField extends Doc {
|
||||
this.fieldtype === 'Select' || this.fieldtype === 'AutoComplete',
|
||||
target: () => this.fieldtype === 'Link' || this.fieldtype === 'Table',
|
||||
references: () => this.fieldtype === 'DynamicLink',
|
||||
default: () => !!this.isRequired,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user