I am working with Frappe Rest in order to generate Sales Invoice. However, we are stuck with this thing where we want to generate Sales Invoice in Bulk.
This was helpful when we were generating single invoices. However, now when we have to generate bulk invoices, we are not able to do so.
One solution we thought was, to send the array of objects. For instance, if I am creating multiple users -
[
{“first_name”: “Robert 1”},
{“first_name”: “Robert 2”},
{“first_name”: “Robert 3”}
]
But it seems that this is not allowed.
Another way is calling rest call with async. But that doesnt feel to be a good solution.
docs = []
(add docs to list of docs)
(docs will look like [ {"field1": "value1", "field2":"value2"}, {"field1":"value3".....}]
session = [path to FrappeClient class](URL, username, password)
session.bulk_update(docs)