mirror of
https://github.com/frappe/books.git
synced 2025-01-03 15:17:30 +00:00
fix: check if setup complete for parent req
This commit is contained in:
parent
7023ce2171
commit
d92641f181
@ -5,7 +5,7 @@ import {
|
||||
FiltersMap,
|
||||
ListViewSettings,
|
||||
RequiredMap,
|
||||
TreeViewSettings,
|
||||
TreeViewSettings
|
||||
} from 'fyo/model/types';
|
||||
import { QueryFilter } from 'utils/db/types';
|
||||
import { AccountRootType, AccountRootTypeEnum, AccountType } from './types';
|
||||
@ -34,7 +34,7 @@ export class Account extends Doc {
|
||||
* added to the schema it will cause NOT NULL errors
|
||||
*/
|
||||
|
||||
parentAccount: () => true,
|
||||
parentAccount: () => !!this.fyo.singles?.AccountingSettings?.setupComplete,
|
||||
};
|
||||
|
||||
static defaults: DefaultMap = {
|
||||
|
Loading…
Reference in New Issue
Block a user