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

Category:
Author: zemna
Date: April 17, 2021
Share this:

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.

Share this:

Leave a Reply

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

Let's connect and create
something awesome together!
2023 - Copyright, All Rights Reserved, Made by ZEMNA.NET with ❤️
crossmenu linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram