In the stock tab we have find search stock level when we click on that advance search opens up and from there we can click on + icon to create new stock, so if I need to pre populate the product code for which I am creating stock. I have tried with ctx.parentObject.code it is not working. The other approach I tried is writing spel expression both of approach is not working.
Any idea how to resolve this.
Thanks in advance