2
0
mirror of https://github.com/frappe/books.git synced 2025-02-03 12:38:34 +00:00
books/fyo/models/Plugin.ts
18alantom 5489cd979f incr: add registration of models onload
- refactor a few imports
- move model file into plugin
2023-07-24 14:53:57 +05:30

22 lines
398 B
TypeScript

import { Doc } from 'fyo/model/doc';
import { ListViewSettings } from 'fyo/model/types';
export class Plugin extends Doc {
name?: string;
version?: string;
info?: string;
/*
override get canDelete(): boolean {
return false;
}
*/
static getListViewSettings(): ListViewSettings {
return {
formRoute: (name) => `/plugin/${name}`,
columns: ['name'],
};
}
}