Unable to create dropship invoice - address does not belong to company

There seems to be a bug in ERPNext with creating dropship invoices. I am able to create dropship PO’s from customer SO’s without an issue - the PO is raised with the shipping address set to the customers address, but when trying to convert that PO to a PI, the system does not let me set the customers address.

From the UI, I only get to see the addresses owned by the company - the customer addresses are not presented. Using the API, I get an error like:

{\“exception\”:\“frappe.exceptions.ValidationError: Select Shipping Address does not belong to the Company {company abc}.\”,\“exc_type\”:\“ValidationError\”,

I am currently running v15.106.0.

Is this a known bug that is being worked on to fix? Being unable to set the shipping address correctly makes sales tax a bit of a headache.

Fixed

1 Like

Good call on flagging this one. I ran into the same headache before, and the address filter made dropship taxes feel like pushing rope. Since the team already patched it, you might want to clear your browser cache or reload the form once to get the new behavior. I also found it handy to re-save the customer address so it pops up cleanly in the picker.