Solution for [TypeError: ‘builtin_function_or_method’ object is not iterable] error in ERPNext

When I use doc.items in Webhooks on ERPNext, I got [TypeError: ‘builtin_function_or_method’ object is not iterable] error message in Error Log.

It happens because Python dict has a built-in function “items()”.

We can solve this error by using doc[“items”] than doc.items.

Leave a Reply

Your email address will not be published. Required fields are marked *