2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 11:29:03 +00:00
books/model/index.js

41 lines
1.0 KiB
JavaScript
Raw Normal View History

2018-01-12 12:25:07 +00:00
module.exports = {
2018-01-31 13:04:46 +00:00
common_fields: [
2018-01-12 12:25:07 +00:00
{
fieldname: 'name', fieldtype: 'Data', reqd: 1
2018-01-31 12:56:21 +00:00
}
2018-01-31 13:04:46 +00:00
],
2018-01-31 12:56:21 +00:00
parent_fields: [
2018-01-12 12:25:07 +00:00
{
fieldname: 'owner', fieldtype: 'Link', reqd: 1, options: 'User'
},
{
fieldname: 'modified_by', fieldtype: 'Link', reqd: 1, options: 'User'
},
{
fieldname: 'creation', fieldtype: 'Datetime', reqd: 1
},
{
fieldname: 'modified', fieldtype: 'Datetime', reqd: 1
},
{
fieldname: 'keywords', fieldtype: 'Text'
},
{
fieldname: 'docstatus', fieldtype: 'Int', reqd: 1, default: 0
}
],
child_fields: [
{
fieldname: 'idx', fieldtype: 'Int', reqd: 1
},
{
fieldname: 'parent', fieldtype: 'Data', reqd: 1
},
{
fieldname: 'parenttype', fieldtype: 'Link', reqd: 1, options: 'DocType'
},
{
fieldname: 'parentfield', fieldtype: 'Data', reqd: 1
}
]
};