mirror of
https://github.com/frappe/books.git
synced 2025-02-03 12:38:34 +00:00
5489cd979f
- refactor a few imports - move model file into plugin
22 lines
398 B
TypeScript
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'],
|
|
};
|
|
}
|
|
}
|