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.