Then, when I print that statement, I would expect something like
["Item", "101", "Clock"]
Instead, I get this:
<erpnext.stock.doctype.item.item.Item object at 0x7f89bc9f2310>
Is there a way, to format this into an array, where I can also modify values, so “101” for example would become “G-10”? Or is it not meant to be read like this?
Since item is a save only doctype you only need save. However there are other doctypes that are submittable. You can use the submit() method just as I used for save.
You can try this out in bench console.
In case if you don’t want an object but rather a list of values you can try for get_values function.