fix(minor): fix dynamically changing grid properties

This commit is contained in:
Rushabh Mehta 2021-04-13 12:05:10 +05:30
parent 65f25c27b3
commit 3c58fd4d5e
3 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,9 @@ let add_fields_to_mapping_table = function (frm) {
});
});
frm.fields_dict.bank_transaction_mapping.grid.update_docfield_property('frm.fields_dict.bank_transaction_mapping.grid', 'options', options);
frm.fields_dict.bank_transaction_mapping.grid.update_docfield_property(
'bank_transaction_field', 'options', options
);
};
erpnext.integrations.refreshPlaidLink = class refreshPlaidLink {

View File

@ -235,7 +235,7 @@ erpnext.accounts.PaymentReconciliationController = frappe.ui.form.Controller.ext
if (invoices) {
this.frm.fields_dict.payment.grid.update_docfield_property(
'invoice_number', options, "\n" + invoices.join("\n")
'invoice_number', 'options', "\n" + invoices.join("\n")
)
$.each(me.frm.doc.payments || [], function(i, p) {

View File

@ -17,9 +17,7 @@ frappe.ui.form.on('POS Settings', {
});
frm.fields_dict.invoice_fields.grid.update_docfield_property(
'fieldname',
'options',
[""].concat(fields)
'fieldname', 'options', [""].concat(fields)
);
});