Script not working after update

frappe.ui.form.on("Journal Entry", "onload", function(frm) {
	//console.log(frm.get_field('accounts'));
        frm.get_field('accounts').grid.editable_fields = [
            {fieldname: 'account', columns: 2},
            {fieldname: 'party_type', columns: 2},
            {fieldname: 'party', columns: 2},
            {fieldname: 'debit_in_account_currency', columns: 2},
	    {fieldname: 'credit_in_account_currency', columns: 2}
        ];
});

this used to work, it shows the 5 fields/column. But after bench update it will only show 4. Any ideas?

Go to Customize Form and look for the child table you are editing. Click on of the field, you should able to see Print Width, Columns, and Width.

1 Like