Unable to set default pickup_address_name in shipment doctype

I’d like to customize the shipment doctype to automatically set the pickup_address_name with
the companies only address in the system. If I set the default value via customize doctype it does not work.

Any thoughts on how to do this? Do I need to use a custom script? I’m able to set default values for other fields like (description_of_content, value_of_goods). The default settings also has pickup_from_type set to default = Company.

Why can’t I set default pickup_address_name?

Hi,

In my system the default address is automatically populated without any customization.

Thanks,

Divyesh Mangroliya

Hi,

In Address List, edit the address, are Preferred Shipping and Is Your Company Address both checked?

Thanks for the reply.

Is company address was checked but ‘preferred shipping’ was not checked.
Unfortunately, checking preferred shipping still does not get the address to populate
automatically.

When I set the default via customize form I can see the address for a split second when I press reload (but then it vanishes).

Are there any other settings you can think of to check?

Perhaps describe the customization that was made to the form and which doctype.

I don’t have any customizations on the Shipment DocType. I set default values for Description and parcel value but have since reset the doctype by performing the following:
Customize Doctype > actions > Reset All Customizations

Even after reset, the default address does not populate.

I have another site also running V15 and the address automatically populates like @mangroliya describes. The working site does not have erpnext-shipping installed. The site with the issue has erpnext-shipping module installed, perhaps there is something in erpnext-shipping that is breaking it.

Perhaps there is a conflict in the following js file?

On the plus side, if I create a shipment directly from a delivery note, the address is populated as it should. It just won’t automatically fill in if I create the shipment directly.