2
0
mirror of https://github.com/frappe/books.git synced 2024-12-25 04:06:04 +00:00

fix: Only validate model fields

This commit is contained in:
Faris Ansari 2019-12-27 22:03:16 +05:30
parent 879b57f698
commit 25f7e51312

View File

@ -230,7 +230,7 @@ module.exports = class BaseDocument extends Observable {
}
async validateFields() {
let fields = this.meta.getValidFields();
let fields = this.meta.fields;
for (let field of fields) {
await this.validateField(field.fieldname, this.get(field.fieldname));
}