mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +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;
|
|
}
|
|
} |