I'm using ERPNext 3.6.1. If I wanted to add a new row to the Items table in Opportunity with certain Item Code already determined, via a script, how would I do this?
I'm currently using a very hackish solution to get a new row started by using $('.grid-add-row').trigger('click'); in opportunity.js, but even then I do not know how to set the Item Code field automatically to the desired value.
Thanks!