mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
fix: address not being set issue
This commit is contained in:
parent
ad70b64e0c
commit
2e1b8bfa13
@ -181,6 +181,9 @@ let TwoColumnForm = {
|
||||
return this.doc.rename(value);
|
||||
}
|
||||
|
||||
this.onChangeCommon(df, value);
|
||||
},
|
||||
onChangeCommon(df, value) {
|
||||
this.doc.set(df.fieldname, value).catch((e) => {
|
||||
// set error message for this field
|
||||
this.$set(this.errors, df.fieldname, getErrorMessage(e, this.doc));
|
||||
@ -214,7 +217,7 @@ let TwoColumnForm = {
|
||||
if (!this.doc[df.fieldname]) {
|
||||
this.inlineEditDoc = await frappe.getNewDoc(df.target);
|
||||
this.inlineEditDoc.once('afterInsert', () => {
|
||||
this.onChange(df, this.inlineEditDoc.name);
|
||||
this.onChangeCommon(df, this.inlineEditDoc.name);
|
||||
});
|
||||
} else {
|
||||
this.inlineEditDoc = this.doc.getLink(df.fieldname);
|
||||
|
Loading…
Reference in New Issue
Block a user