mirror of
https://github.com/frappe/books.git
synced 2024-11-15 01:44:04 +00:00
12 lines
404 B
JavaScript
12 lines
404 B
JavaScript
const BaseList = require('frappejs/client/view/list');
|
|
const BaseForm = require('frappejs/client/view/form');
|
|
const frappe = require('frappejs');
|
|
|
|
module.exports = {
|
|
getFormClass(doctype) {
|
|
return (frappe.views['Form'] && frappe.views['Form'][doctype]) || BaseForm;
|
|
},
|
|
getListClass(doctype) {
|
|
return (frappe.views['List'] && frappe.views['List'][doctype]) || BaseList;
|
|
}
|
|
} |