2
0
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:
18alantom 2022-09-15 14:36:32 +05:30
parent 7023ce2171
commit d92641f181

View File

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