I’m on ERPNext: v14.3.1 (version-14).
When I try to create a picklist based on a material request, I get a an exception: “TypeError: ‘NoneType’ object is not iterable” - it tries to iterate over the locations in “for location in self.get(“locations”)”.
I use the following payload to post to “…/resource/Pick List” (the material request exists):
thank you for your answer! Well, I only use the API, and as far as I understood the system should fetch die target location from the material request, and the source location should be filled in automatically?
When creating a picklist using API, you don’t need to include the locations field in your payload. The system will automatically fetch the target location from the material request and populate the source location based on the parent warehouse you provide. Simply include the necessary information like company, purpose, material request ID, parent warehouse, etc., in your payload, and the system will take care of the rest.
has anyone an idea? Has anyone ever created a Picklist doc via API?
I would really appreciate some help here, it’s blocking my effort in using ERPNext in a warehouse.