You have to loop in sales order item table and call that function for each item to retrieve volume. Then you should set return value in test volume field of that row.
But this will only solve the purpose when sales order will be loaded through mapper.
But for new item directly added, you should write add_fetch function.
--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/ea3ee4de-dd61-40b1-ae55-93a5a55e7de0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.