2
0
mirror of https://github.com/frappe/books.git synced 2025-04-06 18:21:51 +00:00
books/fyo/models/Plugin.ts

23 lines
415 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;
data?: string;
/*
override get canDelete(): boolean {
return false;
}
*/
static getListViewSettings(): ListViewSettings {
return {
formRoute: (name) => `/plugin/${name}`,
columns: ['name'],
};
}
}