2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

fix: PrintSetting quick edit fields

This commit is contained in:
Faris Ansari 2020-01-02 22:35:01 +05:30
parent 4c12755d16
commit 8133ad0300
2 changed files with 3 additions and 10 deletions

View File

@ -2,7 +2,6 @@ module.exports = {
name: 'PrintSettings',
label: 'Print Settings',
isSingle: 1,
isChild: 0,
fields: [
{
fieldname: 'logo',
@ -70,5 +69,6 @@ module.exports = {
options: ['Inter', 'Roboto'],
default: 'Inter'
}
]
],
quickEditFields: ['email', 'phone', 'address', 'gstin']
};

View File

@ -71,14 +71,7 @@ export default {
return frappe.getMeta('PrintSettings');
},
fields() {
return [
'email',
'phone',
'address',
'gstin',
'template',
'font'
].map(fieldname => this.meta.getField(fieldname));
return this.meta.getQuickEditFields();
}
},
methods: {