2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 19:29:02 +00:00
books/client/view/index.js

12 lines
403 B
JavaScript
Raw Normal View History

2018-01-30 12:03:04 +00:00
const BaseList = require('frappejs/client/view/list');
const BaseForm = require('frappejs/client/view/form');
const frappe = require('frappejs');
2018-01-30 12:03:04 +00:00
module.exports = {
getFormClass(doctype) {
return (frappe.views['Form'] && frappe.views['Form'][doctype]) || BaseForm;
2018-01-30 12:03:04 +00:00
},
geListClass(doctype) {
return (frappe.views['List'] && frappe.views['List'][doctype]) || BaseList;
2018-01-30 12:03:04 +00:00
}
}